diff --git a/templates/includes/forms/log.html.tera b/templates/includes/forms/log.html.tera index fc5e78c..ca71edd 100644 --- a/templates/includes/forms/log.html.tera +++ b/templates/includes/forms/log.html.tera @@ -4,24 +4,38 @@ #} {% macro show_boats() %} {% for amount_seats, grouped_boats in boats | group_by(attribute="amount_seats") %} -
-
- {{ amount_seats }}x +
+ + + {% if grouped_boats[0].amount_seats < 9 or grouped_boats[0].amount_seats == 24 %} + {{ amount_seats }}x + {% elif grouped_boats[0].amount_seats == 9 %} + {{ grouped_boats[0].amount_seats - 1 }}+ + {% else %} + Vereinsfremde Boote + {% endif %} + + + ({{ grouped_boats | length }}) + + +
+ {% for boat in grouped_boats | sort(attribute="name") %} +
+ + {{ boat.name }} + {% if boat.owner %}(privat){% endif %} + +
+ {% endfor %}
- {% for boat in grouped_boats | sort(attribute="name") %} -
- - {{ boat.name }} - {% if boat.owner %}(privat){% endif %} - -
- {% endfor %} -
+ {% endfor %} {% endmacro show_boats %} + {# Shows the form for creating a new logbook entry. #} {% macro new(shipmaster) %}
Boote
{{ log::show_boats(only_ones=false) }}
+ -
-

Neue Ausfahrt

-
{{ log::new(only_ones=false, shipmaster=-1) }}
+
+
+

Neue Ausfahrt

+
{{ log::new(only_ones=false, shipmaster=-1) }}
+
diff --git a/templates/log.html.tera b/templates/log.html.tera index 11fac2d..741186c 100644 --- a/templates/log.html.tera +++ b/templates/log.html.tera @@ -6,14 +6,16 @@

Logbuch

- -
-

Neue Ausfahrt

-
{{ log::new(shipmaster=loggedin_user.id) }}
+
+
+

Neue Ausfahrt

+
{{ log::new(shipmaster=loggedin_user.id) }}
+