boatshouse #258

Merged
philipp merged 5 commits from boatshouse into main 2024-03-09 17:00:12 +01:00
Showing only changes of commit 69edb63ddd - Show all commits

View File

@ -8,7 +8,9 @@
{% set place = boathouse[aisle][side_name] %} {% set place = boathouse[aisle][side_name] %}
{% if place[level] %} {% if place[level] %}
{{ place[level].1.name }} <a href="/board/boathouse/{{ place[level].0 }}/delete">X</a> {{ place[level].1.name }} <a href="/board/boathouse/{{ place[level].0 }}/delete">X</a>
{% else %} {% elif boats | length > 0 %}
<details>
<summary>Kein Boot</summary>
<form action="/board/boathouse" method="post" class="grid gap-3"> <form action="/board/boathouse" method="post" class="grid gap-3">
{{ macros::select(label="Boot", data=boats, name="boat_id", id="boat_id", display=["name", " (","amount_seats", " x)"], wrapper_class="col-span-4") }} {{ macros::select(label="Boot", data=boats, name="boat_id", id="boat_id", display=["name", " (","amount_seats", " x)"], wrapper_class="col-span-4") }}
<input type="hidden" name="aisle" value="{{ aisle_name }}" /> <input type="hidden" name="aisle" value="{{ aisle_name }}" />
@ -18,6 +20,9 @@
class="btn btn-primary w-full col-span-4" class="btn btn-primary w-full col-span-4"
value="Boot eintragen" /> value="Boot eintragen" />
</form> </form>
</details>
{% else %}
Kein Boot
{% endif %} {% endif %}
</li> </li>
{% endmacro show_place %} {% endmacro show_place %}