{% 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='hangesteuert', name='default_shipmaster_only_steering', id=uuid , checked=boat.default_shipmaster_only_steering) }} {{ 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 %}