fix: registration template rm autofill, fix urls

master
Aravinth Manivannan 2022-06-10 22:29:26 +05:30
parent 1104cb4db2
commit 2c25eba73a
Signed by untrusted user: realaravinth
GPG Key ID: AD9F0F08E855ED88
1 changed files with 10 additions and 18 deletions

View File

@ -1,9 +1,9 @@
{% extends 'authbase' %} {% extends 'accounts/auth/base.html' %}
{% block title_name %}Sign Up {% endblock %}
{% block login %} {% block login %}
<h2>Sign Up</h2> <h2>Sign Up</h2>
<form action="{{ page.auth.register }}" method="POST" class="form" accept-charset="utf-8"> <form action="{% url 'accounts.register' %}" method="POST" class="form" accept-charset="utf-8">
{% include "error_comp" %} {% include "common/components/error.html" %}
{% csrf_token %}
<label class="form__label" for="username"> <label class="form__label" for="username">
Username Username
<input <input
@ -13,21 +13,21 @@
required required
id="username" id="username"
type="text" type="text"
{% if payload.username %} {% if username %}
value={{ payload.username }} value={{ username }}
{% endif %} {% endif %}
/> />
</label> </label>
<label class="form__label" for="email"> <label class="form__label" for="email">
Email(optional) Email
<input <input
class="form__input" class="form__input"
name="email" name="email"
id="email" id="email"
type="email" type="email"
{% if payload.email %} {% if email %}
value={{ payload.email }} value={{ email }}
{% endif %} {% endif %}
/> />
@ -41,9 +41,6 @@
required required
id="password" id="password"
type="password" type="password"
{% if payload.password %}
value={{ payload.password }}
{% endif %}
/> />
</label> </label>
@ -55,20 +52,15 @@
required required
id="confirm_password" id="confirm_password"
type="password" type="password"
{% if payload.confirm_password %}
value={{ payload.confirm_password }}
{% endif %}
/> />
</label> </label>
<div class="form__action-container"> <div class="form__action-container">
<a href="/forgot-password">Forgot password?</a>
<button class="form__submit" type="submit">Sign Up</button> <button class="form__submit" type="submit">Sign Up</button>
</div> </div>
</form> </form>
<p class="form__alt-action"> <p class="form__alt-action">
Already have an account? Already have an account?
<a href="{{ page.auth.login }}"> Login </a> <a href="{% url 'accounts.login' %}"> Login </a>
</p> </p>
{% include "demo_banner" %}
{% endblock %} {% endblock %}