diff options
author | Joris | 2021-10-10 18:20:57 +0200 |
---|---|---|
committer | Joris | 2021-10-10 21:21:34 +0200 |
commit | 8ccd762bfc3d7da2716749d709cf5cc216882a23 (patch) | |
tree | 0629f749da8b06698e760b275070ba6a2e8bde0c /templates/category/update.html | |
parent | af1177e814d19e63ce39c42fc7c5888e4b3d9604 (diff) |
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/update.html')
-rw-r--r-- | templates/category/update.html | 49 |
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 %} |