{% import "includes/macros" as macros %} {% extends "base" %} {% block content %}
{% if flash %} {{ macros::alert(message=flash.1, type=flash.0, class="sm:col-span-2 lg:col-span-3") }} {% endif %}

Boats

Neues Boot hinzufügen

{{ macros::select(data=locations, label='location', select_name='location_id', selected_id=1) }} {{ macros::select(data=users, label='users', select_name='owner', default="Vereinsboot") }}
default_shipmaster_only_steering:
skull:
external:
{% for boat in boats %}
{{ boat.name }}
{{ macros::input(label='Name', name='name', type='text', value=boat.name) }} {{ macros::input(label='Amount Seats', name='amount_seats', type='number', min=0, value=boat.amount_seats) }} {{ macros::select(data=locations, label='location', select_name='location_id', selected_id=boat.location_id) }} {{ macros::select(data=users, label='users', select_name='owner', selected_id=boat.owner, default="Vereinsboot") }} {{ macros::input(label='Baujahr', name='year_built', type='number', min=1950, value=boat.year_built) }} {{ macros::input(label='Bootsbauer', name='boatbuilder', type='text', value=boat.boatbuilder) }} {{ macros::checkbox(label='default_shipmaster_only_steering', name='default_shipmaster_only_steering', id=loop.index , checked=boat.default_shipmaster_only_steering) }} {{ macros::checkbox(label='skull', name='skull', id=loop.index , checked=boat.skull) }} {{ macros::checkbox(label='external', name='external', id=loop.index , checked=boat.external) }}
{% endfor %}
{% endblock content %}