musik/base/templates/auth/user_form.html

25 lines
983 B
HTML
Raw Normal View History

{% extends "base.html" %}
{% load form %}
{% block content %}
<h1>Créer mon compte</h1>
{% for error in form.non_field_errors %}<article class="message error">{{ error }}</article>{% endfor %}
<form method="post" {% if action %}action="{% url action %}"{% endif %}>
{% csrf_token %}
<fieldset>
{% for field in form %}
<label for="{{ field.id_for_label }}">
{{ field.label }}
{{ field }}
{% if field.errors %}
<small id="{{ field.errors.field_id }}_error" class="form-error">{{ field.errors|join:", " }}</small>
{% endif %}
</label>
{% endfor %}
</fieldset>
<button type="submit">Créer mon compte</button>
<fieldset>
<a href="{% url "login" %}" role="button" class="secondary">J'ai déjà un compte</a>
</fieldset>
</form>
{% endblock content %}