Refactor music management UI: separate group musics into its own template, enhance form structure, and improve responsiveness
Fix #5
This commit is contained in:
parent
b30ee77132
commit
c7b907f115
5 changed files with 113 additions and 76 deletions
|
@ -1,6 +1,24 @@
|
|||
{% extends "base.html" %}
|
||||
{% load form %}
|
||||
{% block content %}
|
||||
<h1>Créer un compte</h1>
|
||||
{% form form submit="Créer mon compte" %}
|
||||
{% endblock 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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue