From 93e5fc380a3a02446f2d57c5a42d4b91b0e145a5 Mon Sep 17 00:00:00 2001 From: Lephe Date: Sat, 31 Oct 2020 09:51:00 +0100 Subject: [PATCH] admin: improve display of trophies --- app/templates/admin/edit_trophy.html | 5 +++++ app/templates/admin/trophies.html | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/templates/admin/edit_trophy.html b/app/templates/admin/edit_trophy.html index d56f7a0..ec4f375 100644 --- a/app/templates/admin/edit_trophy.html +++ b/app/templates/admin/edit_trophy.html @@ -10,6 +10,11 @@ {{ form.hidden_tag() }}

Éditer le trophée

+
+ + {{ trophy.name }} +
+
{{ form.name.label }} {{ form.name(value=trophy.name) }} diff --git a/app/templates/admin/trophies.html b/app/templates/admin/trophies.html index 88b06c7..c6f2349 100644 --- a/app/templates/admin/trophies.html +++ b/app/templates/admin/trophies.html @@ -13,17 +13,17 @@

Titres et trophées

- + {% for trophy in trophies %} - - + {% if trophy | is_title %} - + {% else %} - + {% endif %}
IDIcôneNomTitre
NomTitre StyleModifierSupprimer
{{ trophy.id }}{{ trophy.name }}
+ {{ trophy.name }} {{ trophy.name }}OuiOuiNonNon{{ trophy.css }} Modifier