From 52b245b14ef9d38ba20ed56d5141ed648c5b9b4e Mon Sep 17 00:00:00 2001 From: Marie Birner Date: Mon, 23 Oct 2023 22:36:57 +0200 Subject: [PATCH] [TASK] correct sorting verified and style input / btn combi --- templates/boatdamages.html.tera | 18 +++++++++--------- templates/kiosk.html.tera | 4 +++- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/templates/boatdamages.html.tera b/templates/boatdamages.html.tera index 09d39eb..0bfadbd 100644 --- a/templates/boatdamages.html.tera +++ b/templates/boatdamages.html.tera @@ -45,9 +45,9 @@
- {% for boatdamage in boatdamages %} + {% for boatdamage in boatdamages | sort(attribute="verified") %}
-
+
{{ boatdamage.created_at | date(format='%d.%m.%Y') }} ({{ boatdamage.boat.name }}){% if boatdamage.boat.damage %}(Boot gesperrt){% endif %}
{{ boatdamage.desc }}
@@ -58,12 +58,12 @@ Repariert von {{ boatdamage.user_fixed.name }} am/um {{ boatdamage.fixed_at | date(format='%d.%m.%Y (%H:%M)') }} {% else %} {% if loggedin_user.is_cox %} -
- + + {% if loggedin_user.is_tech %} - + {% else %} - + {% endif %}
{% endif %} @@ -73,9 +73,9 @@ Verifziert von {{ boatdamage.user_verified.name }} am/um {{ boatdamage.verified_at | date(format='%d.%m.%Y (%H:%M)') }} {% else %} {% if loggedin_user.is_tech and boatdamage.fixed_at %} -
- - + + +
{% endif %} {% endif %} diff --git a/templates/kiosk.html.tera b/templates/kiosk.html.tera index e3243cf..35b8018 100644 --- a/templates/kiosk.html.tera +++ b/templates/kiosk.html.tera @@ -9,7 +9,9 @@

Logbuch

{% if flash %} - {{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }} +
+ {{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }} +
{% endif %}