aboutsummaryrefslogtreecommitdiff
path: root/templates/category/create.html
diff options
context:
space:
mode:
authorJoris2021-10-10 18:20:57 +0200
committerJoris2021-10-10 21:21:34 +0200
commit8ccd762bfc3d7da2716749d709cf5cc216882a23 (patch)
tree0629f749da8b06698e760b275070ba6a2e8bde0c /templates/category/create.html
parentaf1177e814d19e63ce39c42fc7c5888e4b3d9604 (diff)
downloadbudget-8ccd762bfc3d7da2716749d709cf5cc216882a23.tar.gz
budget-8ccd762bfc3d7da2716749d709cf5cc216882a23.tar.bz2
budget-8ccd762bfc3d7da2716749d709cf5cc216882a23.zip
Search payments by categories explicitely
It was already possible to search by categories in the full text input, but it could have matched other fields as well. Explicitely add a select to search by categories. Also put the search form in a left aside. The mobile view is not done for the moment.
Diffstat (limited to 'templates/category/create.html')
-rw-r--r--templates/category/create.html44
1 files changed, 23 insertions, 21 deletions
diff --git a/templates/category/create.html b/templates/category/create.html
index e206898..af95e16 100644
--- a/templates/category/create.html
+++ b/templates/category/create.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 categories
@@ -22,30 +22,32 @@
<div class="g-Form__Error">{{ error }}</div>
{% endif %}
- <label class="g-Form__Label" for="name">Nom</label>
- <input
- name="name"
- class="g-Form__Input"
- id="name"
- value="{{ form.name | default(value="") }}"
- required
- {% if not form %} autofocus {% endif %}
- />
-
- <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="") }}"
- required
- />
+ <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>
- </div>
+ </section>
{% endblock main %}