diff --git a/templates/includes/forms/log.html.tera b/templates/includes/forms/log.html.tera index 1f79d6c..f3c7533 100644 --- a/templates/includes/forms/log.html.tera +++ b/templates/includes/forms/log.html.tera @@ -7,7 +7,7 @@ var selectedOption = selectElement.selectedOptions[0]; var shipmaster_only_steering = selectedOption.getAttribute("extra-default_shipmaster_only_steering") === 'true'; document.getElementById('shipmaster_only_steering').checked = shipmaster_only_steering; - document.getElementById('max_rower_allowed').innerHTML = selectedOption.getAttribute("extra-amount_seats"); + document.getElementById('new-rower-max_rower_allowed').innerHTML = selectedOption.getAttribute("extra-amount_seats"); } document.getElementById('boat_id').addEventListener('change', updateElementsBasedOnSelectedOption); @@ -35,18 +35,7 @@ {{ macros::input(label="Distanz", name="distance_in_km", type="number", min=0) }} {{ macros::input(label="Kommentar", name="comments", type="text") }} {{ macros::select(data=logtypes, select_name='logtype', default="Normal") }} - - - / Ruderer ausgewählt + {{ log::rower_select(id="new-rower", selected=[]) }} +/{{amount_seats}} Ruderer ausgewählt +{% endmacro rower_select %}