{% macro new() %}

Neues Boot {% include "includes/plus-icon" %} Neues Boot anlegen

{% endmacro new %} {% macro edit(boat, uuid) %}
{{ boat.name }}
{{ macros::input(label='Name', name='name', type='text', value=boat.name) }} {{ macros::input(label='Plätze', name='amount_seats', type='number', min=0, value=boat.amount_seats) }} {{ macros::select(data=locations, label='Standort', name='location_id', selected_id=boat.location_id) }} {{ macros::select(data=users, label='Besitzer', 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='handgesteuert', name='default_shipmaster_only_steering', id=uuid , checked=boat.default_shipmaster_only_steering) }} {{ macros::checkbox(label='Umbau Hand-/Fußsteuerung möglich', name='convert_handoperated_possible', id=uuid , checked=boat.convert_handoperated_possible) }} {{ macros::input(label='Default destination', name='default_destination', type='text', value=boat.default_destination) }} {{ macros::checkbox(label='Skull', name='skull', id=uuid , checked=boat.skull) }} {{ macros::checkbox(label='Externes Boot', name='external', id=uuid , checked=boat.external) }}
{% endmacro edit %}