aboutsummaryrefslogtreecommitdiff
path: root/templates/category/update.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/category/update.html')
-rw-r--r--templates/category/update.html49
1 files changed, 25 insertions, 24 deletions
diff --git a/templates/category/update.html b/templates/category/update.html
index a4c1481..48dda06 100644
--- a/templates/category/update.html
+++ b/templates/category/update.html
@@ -6,7 +6,7 @@
{% block main %}
- <div>
+ <section class="g-Section">
<p class="g-Paragraph">
<a class="g-Link g-Media__Large" href="/categories">
Retour aux catégories
@@ -30,24 +30,26 @@
>
<h1 class="g-H1">Modification</h1>
- <label class="g-Form__Label" for="name">Nom</label>
- <input
- name="name"
- class="g-Form__Input"
- id="name"
- value="{{ form.name | default(value=category.name) }}"
- required
- />
-
- <label class="g-Form__Label" for="color">Couleur</label>
- <input
- name="color"
- type="color"
- class="g-Form__Input g-Form__InputColor"
- id="color"
- value="{{ form.color | default(value=category.color) }}"
- required
- />
+ <label class="g-Form__Label">
+ Nom
+ <input
+ name="name"
+ class="g-Form__Input"
+ value="{{ form.name | default(value=category.name) }}"
+ required
+ />
+ </label>
+
+ <label class="g-Form__Label">
+ Couleur
+ <input
+ name="color"
+ type="color"
+ class="g-Form__Input g-Form__InputColor"
+ value="{{ form.color | default(value=category.color) }}"
+ required
+ />
+ </label>
<div>
<input class="g-Button__Validate" type="submit" value="Modifier" />
@@ -67,19 +69,18 @@
utilisée.
</p>
{% else %}
- <label class="g-Form__Label" for="remove-input">
+ <label class="g-Form__Label">
Veuillez recopier le nom de la catégorie : « {{ category.name }} ».
+ <input name="remove-input" class="g-Form__Input" data-name="{{ category.name }}" />
</label>
- <input name="remove-input" class="g-Form__Input" id="remove-input" data-name="{{ category.name }}" />
-
<div>
- <input class="g-Button__Danger" type="submit" value="Supprimer" id="remove-button" disabled />
+ <input id="remove-button" class="g-Button__Danger" type="submit" value="Supprimer" disabled />
</div>
{% endif %}
</form>
{% endif %}
- </div>
+ </section>
{% endblock main %}