89 lines
3.0 KiB
HTML
89 lines
3.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Registration</title>
|
|
</head>
|
|
<body>
|
|
<!-- <form action="{% url 'accounts:register' %}" method="post">
|
|
{% csrf_token %}
|
|
<fieldset>
|
|
<legend><h1>{{ Registration }}</h1></legend>
|
|
</fieldset>
|
|
<fieldset>
|
|
<label for="email">
|
|
<b>Email</b>
|
|
<input type="text" placeholder="Enter Email" name="email" id="email" required>
|
|
</label>
|
|
|
|
</fieldset>
|
|
|
|
<fieldset>
|
|
<label for="psw">
|
|
<b>Password</b>
|
|
<input type="password" placeholder="Enter Password" name="psw" id="psw" required>
|
|
</label>
|
|
|
|
</fieldset>
|
|
<fieldset>
|
|
<label for="cnf-psw">
|
|
<b>Password</b>
|
|
<input type="password" placeholder="Confirn Password" name="cnf-psw" id="cnf-psw" required>
|
|
</label>
|
|
</fieldset>
|
|
<input type="submit" value="register">
|
|
</form> -->
|
|
|
|
<form action="{% url 'accounts:register' %}" method="post" class="form" accept-charset="utf-8">
|
|
{% if error %}
|
|
<div class="error__container">
|
|
<h3 class="error__title">ERROR: {{ error.title }}</h3>
|
|
<p class="error__message">{{ error.reason }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% csrf_token %}
|
|
<div class="container">
|
|
<h1>Register</h1>
|
|
<p>Welcome to mystiq registration.</p>
|
|
<hr>
|
|
|
|
<label for="email">
|
|
<b>Email</b>
|
|
<input
|
|
type="text"
|
|
placeholder="Enter Email"
|
|
name="email"
|
|
id="email"
|
|
required
|
|
{% if email %}
|
|
value={{ username }}
|
|
{% endif %}
|
|
>
|
|
</label>
|
|
|
|
|
|
<label for="password">
|
|
<b>Password</b>
|
|
<input type="password" placeholder="Enter Password" name="password" id="password" required>
|
|
</label>
|
|
|
|
|
|
<label for="password-confirm">
|
|
<b>Confirm Password</b>
|
|
<input type="password" placeholder="Confirm Password" name="password-confirm" id="password-confirm" required>
|
|
</label>
|
|
|
|
<hr>
|
|
|
|
<p>By creating an account you agree to our <a href="#">Terms & Privacy</a>.</p>
|
|
<button type="submit" class="form_submit">Register</button>
|
|
</div>
|
|
|
|
<div class="container signin">
|
|
<p>Already have an account? <a href="{% url 'accounts:login' %}">Sign in</a>.</p>
|
|
</div>
|
|
</form>
|
|
</body>
|
|
</html> |