Refactor registration form
This commit is contained in:
parent
1c602e618a
commit
2c04f25da3
1 changed files with 2 additions and 15 deletions
|
|
@ -1,22 +1,9 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main class="main">
|
<main class="main">
|
||||||
<form class="form register-form" method="POST">
|
{% url "accounts:login" as cancel_url %}
|
||||||
{% csrf_token %}
|
{% include "form/form.html" with form=form title="Register" cancel_url=cancel_url confirm_text="Register" %}
|
||||||
<div class="form__header">
|
|
||||||
<h1 class="form__title">Register</h1>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<fieldset class="fieldset register-form__fieldset">
|
|
||||||
{{ form }}
|
|
||||||
</fieldset>
|
|
||||||
<fieldset class="fieldset register-form__fieldset">
|
|
||||||
<a class="button button--cancel" href="{% url 'accounts:login' %}">Cancel</a>
|
|
||||||
<button class="button button--confirm" type="submit">Register</button>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</main>
|
</main>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue