feat: step input for room type selection

This commit is contained in:
Björn Fromme
2026-03-16 11:59:11 +01:00
parent b73a02048e
commit c6678d16a6
6 changed files with 104 additions and 18 deletions
+19
View File
@@ -318,3 +318,22 @@
{{- parent() -}}
{%- endif -%}
{% endblock %}
{% block step_select_choice_widget %}
<div {{ stimulus_controller('step-input', { 'min': form.vars.min_value, 'max': form.vars.max_value }) }}>
{{ form_widget(form, { 'attr': {
'data-step-input-target': 'field',
'class': 'hidden',
} }) }}
<div class="flex space-x-2">
<button type="button" class="button button--small bg-button" {{ stimulus_target('step-input', 'buttonDec') }} {{ stimulus_action('step-input', 'decrease') }}>
-
</button>
<div {{ stimulus_target('step-input', 'display') }}></div>
<button type="button" class="button button--small bg-button--secondary" {{ stimulus_target('step-input', 'buttonInc') }} {{ stimulus_action('step-input', 'increase') }}>
+
</button>
</div>
</div>
{% endblock %}