diff --git a/templates/includes/forms/log.html.tera b/templates/includes/forms/log.html.tera index 4e5db7c..53d4552 100644 --- a/templates/includes/forms/log.html.tera +++ b/templates/includes/forms/log.html.tera @@ -27,11 +27,10 @@ {% endmacro show_boats %} {# Shows the form for creating a new logbook entry. #} -{% macro new(only_ones, allow_any_shipmaster, shipmaster) %} +{% macro new(only_ones, shipmaster) %}
{{ log::boat_select(only_ones=only_ones) }} - {% if allow_any_shipmaster %}
@@ -56,9 +55,6 @@
- {% else %} - - {% endif %} {% if not only_ones %}
Bootssteuerung
@@ -161,6 +157,9 @@
{{ log::home(log=log, only_ones=only_ones) }}
+
+ LÖSCHEN +
{% endif %}
{% if log.destination %} @@ -178,6 +177,10 @@ {% for rower in log.rowers %}

{{ rower.name }}

{% endfor %} + + {% if allowed_to_close and state == "on_water" %} + LÖSCHEN + {% endif %}
diff --git a/templates/kiosk.html.tera b/templates/kiosk.html.tera index 95cfb92..e3243cf 100644 --- a/templates/kiosk.html.tera +++ b/templates/kiosk.html.tera @@ -23,7 +23,7 @@

Neue Ausfahrt

- {{ log::new(only_ones=false, allow_any_shipmaster=true, shipmaster=-1) }} + {{ log::new(only_ones=false, shipmaster=-1) }}
diff --git a/templates/log.html.tera b/templates/log.html.tera index 09c24b5..d762149 100644 --- a/templates/log.html.tera +++ b/templates/log.html.tera @@ -25,7 +25,7 @@

Neue Ausfahrt

- {{ log::new(only_ones=loggedin_user.is_cox==false, allow_any_shipmaster=loggedin_user.is_cox, shipmaster=loggedin_user.id) }} + {{ log::new(only_ones=loggedin_user.is_cox==false, shipmaster=loggedin_user.id) }}