Skip to content

Commit f117b4d

Browse files
AdrienClairembaultcedric-anne
authored andcommitted
Fix collector options wrap
1 parent 061b2f2 commit f117b4d

File tree

1 file changed

+18
-36
lines changed

1 file changed

+18
-36
lines changed

templates/pages/setup/mailcollector/server_config_fields.html.twig

Lines changed: 18 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -51,69 +51,51 @@
5151
) }}
5252

5353
{% set connection_options_fields %}
54-
<div class="d-flex">
54+
<div class="d-flex flex-wrap mb-n2">
5555
{% set type_value = connect_opts['type'] is not empty ? ('/' ~ connect_opts['type']) : '' %}
56-
{{ fields.dropdownArrayField('server_type', type_value, protocol_choices, '', {
56+
{% set options = {
5757
no_label: true,
5858
display_emptychoice: true,
59-
field_class: 'me-2'
60-
}) }}
59+
field_class: 'me-2',
60+
mb: 'mb-0',
61+
} %}
62+
{{ fields.dropdownArrayField('server_type', type_value, protocol_choices, '', options) }}
6163
{% set ssl_value = connect_opts['ssl'] ? '/ssl' : '' %}
6264
{{ fields.dropdownArrayField('server_ssl', ssl_value, {
6365
'/ssl': __('SSL')
64-
}, '', {
65-
no_label: true,
66-
display_emptychoice: true,
67-
field_class: 'me-2'
68-
}) }}
66+
}, '', options) }}
6967
{% set tls_value = connect_opts['tls'] is same as(true) ? '/tls' : (connect_opts['tls'] is same as (false) ? '/notls' : '') %}
7068
{{ fields.dropdownArrayField('server_tls', tls_value, {
7169
'/tls': __('TLS'),
7270
'/notls': __('NO-TLS')
73-
}, '', {
74-
no_label: true,
75-
display_emptychoice: true,
76-
field_class: 'me-2'
77-
}) }}
71+
}, '', options) }}
7872
{% set cert_value = connect_opts['validate-cert']is same as(true) ? '/validate-cert' : (connect_opts['validate-cert'] is same as(false) ? '/novalidate-cert' : '') %}
7973
{{ fields.dropdownArrayField('server_cert', cert_value, {
8074
'/novalidate-cert': __('NO-VALIDATE-CERT'),
8175
'/validate-cert': __('VALIDATE-CERT')
82-
}, '', {
83-
no_label: true,
84-
display_emptychoice: true,
85-
field_class: 'me-2'
86-
}) }}
76+
}, '', options) }}
8777
{{ fields.dropdownArrayField('server_rsh', connect_opts['norsh'] == true ? '/norsh' : '', {
8878
'/norsh': __('NORSH'),
89-
}, '', {
90-
no_label: true,
91-
display_emptychoice: true,
92-
field_class: 'me-2'
93-
}) }}
79+
}, '', options) }}
9480
{{ fields.dropdownArrayField('server_secure', connect_opts['secure'] == true ? '/secure' : '', {
9581
'/secure': __('SECURE'),
96-
}, '', {
97-
no_label: true,
98-
display_emptychoice: true,
99-
field_class: 'me-2'
100-
}) }}
82+
}, '', options) }}
10183
{{ fields.dropdownArrayField('server_debug', connect_opts['debug'] == true ? '/debug' : '', {
10284
'/debug': __('DEBUG'),
103-
}, '', {
104-
no_label: true,
105-
display_emptychoice: true,
106-
field_class: 'me-2'
107-
}) }}
85+
}, '', options) }}
10886
</div>
10987
{% endset %}
11088
{{ fields.htmlField(
11189
'',
11290
connection_options_fields,
113-
__('Connection options')
91+
__('Connection options'),
92+
{
93+
full_width: true,
94+
}
11495
) }}
11596
{% if connect_string is not empty %}
11697
{{ fields.htmlField('', connect_string, __('Connection string'), {
117-
add_field_class: 'fw-bold'
98+
add_field_class: 'fw-bold',
99+
full_width: true,
118100
}) }}
119101
{% endif %}

0 commit comments

Comments
 (0)