feat: step input for room type selection
This commit is contained in:
@@ -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 %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user