|
51 | 51 | ) }}
|
52 | 52 |
|
53 | 53 | {% set connection_options_fields %}
|
54 |
| - <div class="d-flex"> |
| 54 | + <div class="d-flex flex-wrap mb-n2"> |
55 | 55 | {% set type_value = connect_opts['type'] is not empty ? ('/' ~ connect_opts['type']) : '' %}
|
56 |
| - {{ fields.dropdownArrayField('server_type', type_value, protocol_choices, '', { |
| 56 | + {% set options = { |
57 | 57 | no_label: true,
|
58 | 58 | 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) }} |
61 | 63 | {% set ssl_value = connect_opts['ssl'] ? '/ssl' : '' %}
|
62 | 64 | {{ fields.dropdownArrayField('server_ssl', ssl_value, {
|
63 | 65 | '/ssl': __('SSL')
|
64 |
| - }, '', { |
65 |
| - no_label: true, |
66 |
| - display_emptychoice: true, |
67 |
| - field_class: 'me-2' |
68 |
| - }) }} |
| 66 | + }, '', options) }} |
69 | 67 | {% set tls_value = connect_opts['tls'] is same as(true) ? '/tls' : (connect_opts['tls'] is same as (false) ? '/notls' : '') %}
|
70 | 68 | {{ fields.dropdownArrayField('server_tls', tls_value, {
|
71 | 69 | '/tls': __('TLS'),
|
72 | 70 | '/notls': __('NO-TLS')
|
73 |
| - }, '', { |
74 |
| - no_label: true, |
75 |
| - display_emptychoice: true, |
76 |
| - field_class: 'me-2' |
77 |
| - }) }} |
| 71 | + }, '', options) }} |
78 | 72 | {% set cert_value = connect_opts['validate-cert']is same as(true) ? '/validate-cert' : (connect_opts['validate-cert'] is same as(false) ? '/novalidate-cert' : '') %}
|
79 | 73 | {{ fields.dropdownArrayField('server_cert', cert_value, {
|
80 | 74 | '/novalidate-cert': __('NO-VALIDATE-CERT'),
|
81 | 75 | '/validate-cert': __('VALIDATE-CERT')
|
82 |
| - }, '', { |
83 |
| - no_label: true, |
84 |
| - display_emptychoice: true, |
85 |
| - field_class: 'me-2' |
86 |
| - }) }} |
| 76 | + }, '', options) }} |
87 | 77 | {{ fields.dropdownArrayField('server_rsh', connect_opts['norsh'] == true ? '/norsh' : '', {
|
88 | 78 | '/norsh': __('NORSH'),
|
89 |
| - }, '', { |
90 |
| - no_label: true, |
91 |
| - display_emptychoice: true, |
92 |
| - field_class: 'me-2' |
93 |
| - }) }} |
| 79 | + }, '', options) }} |
94 | 80 | {{ fields.dropdownArrayField('server_secure', connect_opts['secure'] == true ? '/secure' : '', {
|
95 | 81 | '/secure': __('SECURE'),
|
96 |
| - }, '', { |
97 |
| - no_label: true, |
98 |
| - display_emptychoice: true, |
99 |
| - field_class: 'me-2' |
100 |
| - }) }} |
| 82 | + }, '', options) }} |
101 | 83 | {{ fields.dropdownArrayField('server_debug', connect_opts['debug'] == true ? '/debug' : '', {
|
102 | 84 | '/debug': __('DEBUG'),
|
103 |
| - }, '', { |
104 |
| - no_label: true, |
105 |
| - display_emptychoice: true, |
106 |
| - field_class: 'me-2' |
107 |
| - }) }} |
| 85 | + }, '', options) }} |
108 | 86 | </div>
|
109 | 87 | {% endset %}
|
110 | 88 | {{ fields.htmlField(
|
111 | 89 | '',
|
112 | 90 | connection_options_fields,
|
113 |
| - __('Connection options') |
| 91 | + __('Connection options'), |
| 92 | + { |
| 93 | + full_width: true, |
| 94 | + } |
114 | 95 | ) }}
|
115 | 96 | {% if connect_string is not empty %}
|
116 | 97 | {{ fields.htmlField('', connect_string, __('Connection string'), {
|
117 |
| - add_field_class: 'fw-bold' |
| 98 | + add_field_class: 'fw-bold', |
| 99 | + full_width: true, |
118 | 100 | }) }}
|
119 | 101 | {% endif %}
|
0 commit comments