Skip to content

Commit

Permalink
fix: horizontalField set class
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom1-B authored and trasher committed Sep 27, 2023
1 parent e7a1819 commit 69100ea
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions templates/components/form/fields_macros.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -845,13 +845,18 @@
'align_label_right': true,
'mb': 'mb-2',
'field_class': 'col-12 col-sm-6',
'label_class': 'col-xxl-5',
'input_class': 'col-xxl-7',
'add_field_class': '',
'add_field_attribs': {},
'center': false,
}|merge(options) %}

{% if options.icon_label %}
{% set options = {
label_class: 'col-2',
input_class: 'col-10',
}|merge(options) %}
{% endif %}

{% if options.full_width %}
{% set options = options|merge({
field_class: 'col-12',
Expand All @@ -865,12 +870,10 @@
{% endif %}
{% endif %}

{% if options.icon_label %}
{% set options = {
label_class: 'col-2',
input_class: 'col-10',
}|merge(options) %}
{% endif %}
{% set options = {
label_class: 'col-xxl-5',
input_class: 'col-xxl-7',
}|merge(options) %}

{% if options.align_label_right %}
{% set options = options|merge({
Expand Down

0 comments on commit 69100ea

Please sign in to comment.