blob: af95e16735c6d4d82aac89e406ee75b70c23ff71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{% extends "base.html" %}
{% block title %}
Nouvelle catégorie
{% endblock title %}
{% block main %}
<section class="g-Section">
<p class="g-Paragraph">
<a class="g-Link g-Media__Large" href="/categories">
Retour aux categories
</a>
</p>
<form class="g-Form" action="/category/create" method="POST">
<h1 class="g-H1">
Nouvelle catégorie
</h1>
{% if error %}
<div class="g-Form__Error">{{ error }}</div>
{% endif %}
<label class="g-Form__Label">
Nom
<input
name="name"
class="g-Form__Input"
value="{{ form.name | default(value="") }}"
required
{% if not form %} autofocus {% endif %}
/>
</label>
<label class="g-Form__Label">
Couleur
<input
name="color"
type="color"
class="g-Form__Input g-Form__InputColor"
value="{{ form.color | default(value="") }}"
required
/>
</label>
<div>
<input class="g-Button__Validate" type="submit" value="Créer" />
</div>
</form>
</section>
{% endblock main %}
|