forked from Ruderverein-Donau-Linz/rowt
implement first draft of switching handoperatable boats
This commit is contained in:
@ -24,6 +24,7 @@
|
||||
{{ macros::input(label='Default destination', name='default_destination', type='text') }}
|
||||
<div>
|
||||
{{ macros::checkbox(label="handgesteuert", name="default_shipmaster_only_steering") }}
|
||||
{{ macros::checkbox(label="Umbau Hand-/Fußsteuerung möglich", name="convert_handoperated_possible") }}
|
||||
{{ macros::checkbox(label="Skull", name="skull", checked=true) }}
|
||||
{{ macros::checkbox(label="Externes Boot (anderer Verein)", name="external") }}
|
||||
</div>
|
||||
@ -66,6 +67,7 @@
|
||||
{{ 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) }}
|
||||
|
@ -7,12 +7,12 @@
|
||||
<details>
|
||||
<summary class="font-bold cursor-pointer text-primary-900 dark:text-white border-t p-3 hover:bg-gray-100 dark:hover:bg-primary-950">
|
||||
<span>
|
||||
{% if grouped_boats[0].amount_seats < 9 or grouped_boats[0].amount_seats == 24 %}
|
||||
{{ amount_seats }}x
|
||||
{% elif grouped_boats[0].amount_seats == 9 %}
|
||||
{% if grouped_boats[0].external %}
|
||||
Vereinsfremde Boote
|
||||
{% elif grouped_boats[0].default_shipmaster_only_steering %}
|
||||
{{ grouped_boats[0].amount_seats - 1 }}+
|
||||
{% else %}
|
||||
Vereinsfremde Boote
|
||||
{{ amount_seats }}x
|
||||
{% endif %}
|
||||
</span>
|
||||
<small class="text-gray-500 dark:text-gray-100">({{ grouped_boats | length }})</small>
|
||||
|
Reference in New Issue
Block a user