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" %}
|
||||
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
<main class="main">
|
||||
<form class="form register-form" method="POST">
|
||||
{% csrf_token %}
|
||||
<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>
|
||||
{% url "accounts:login" as cancel_url %}
|
||||
{% include "form/form.html" with form=form title="Register" cancel_url=cancel_url confirm_text="Register" %}
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue