2025-06-14 10:01:45 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
{% load form %}
|
|
|
|
{% block content %}
|
2025-06-15 16:37:09 +02:00
|
|
|
<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 %}
|