improv
This commit is contained in:
parent
66c4c1fe4f
commit
2c2e34b71e
42 changed files with 910 additions and 939 deletions
23
templates/form/theme.html.twig
Normal file
23
templates/form/theme.html.twig
Normal file
|
@ -0,0 +1,23 @@
|
|||
{% use 'bootstrap_5_layout.html.twig' %}
|
||||
|
||||
{%- block number_widget -%}
|
||||
{%- set type = type|default('number') -%}
|
||||
{%- set attr = attr|merge({
|
||||
'class': (attr.class|default('') ~ ' form-control number-input')|trim,
|
||||
'step': attr.step|default('1'),
|
||||
'min': attr.min|default(null),
|
||||
'max': attr.max|default(null)
|
||||
}) -%}
|
||||
|
||||
<div class="number-input-wrapper">
|
||||
<div class="input-group">
|
||||
<button class="btn btn-outline-secondary number-decrease" type="button" data-action="decrease">
|
||||
-
|
||||
</button>
|
||||
{{- block('form_widget_simple') -}}
|
||||
<button class="btn btn-outline-secondary number-increase" type="button" data-action="increase">
|
||||
+
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{%- endblock number_widget -%}
|
Loading…
Add table
Add a link
Reference in a new issue