|
36 | 36 | 'itemtype',
|
37 | 37 | item.fields['itemtype'],
|
38 | 38 | _n('Dropdown', 'Dropdowns', 1),
|
39 |
| - { on_change: 'plugin_formcreator.changeQuestionType(this)' } |
| 39 | + { |
| 40 | + on_change: 'plugin_formcreator.changeQuestionType(this)', |
| 41 | + label_class: 'col-xxl-4', |
| 42 | + input_class: 'col-xxl-8', |
| 43 | + } |
40 | 44 | ) }}
|
41 | 45 |
|
42 | 46 | {{ fields.dropdownYesNo(
|
43 | 47 | 'required',
|
44 | 48 | item.fields['required'],
|
45 |
| - __('Required', 'formcreator') |
| 49 | + __('Required', 'formcreator'), { |
| 50 | + label_class: 'col-xxl-4', |
| 51 | + input_class: 'col-xxl-8', |
| 52 | + } |
46 | 53 | ) }}
|
47 | 54 |
|
48 | 55 | {{ fields.dropdownYesNo(
|
49 | 56 | 'show_empty',
|
50 | 57 | item.fields['show_empty'],
|
51 |
| - __('Show empty', 'formcreator') |
| 58 | + __('Show empty', 'formcreator'), { |
| 59 | + label_class: 'col-xxl-4', |
| 60 | + input_class: 'col-xxl-8', |
| 61 | + } |
52 | 62 | ) }}
|
53 | 63 |
|
54 | 64 | {% if item.fields['itemtype'] is defined and item.fields['itemtype'] != '0' %}
|
55 | 65 | {{ fields.dropdownField(
|
56 | 66 | item.fields['itemtype'],
|
57 | 67 | 'default_values',
|
58 | 68 | item.fields['default_values'],
|
59 |
| - __('Default values'), |
| 69 | + __('Default values'), { |
| 70 | + label_class: 'col-xxl-4', |
| 71 | + input_class: 'col-xxl-8', |
| 72 | + } |
60 | 73 | ) }}
|
61 | 74 | {% else %}
|
62 |
| - {{ fields.nullField() }} |
| 75 | + {{ fields.nullField({ |
| 76 | + label_class: 'col-xxl-4', |
| 77 | + input_class: 'col-xxl-8', |
| 78 | + }) }} |
63 | 79 | {% endif %}
|
64 | 80 |
|
65 |
| - {{ fields.nullField() }} |
| 81 | + {{ fields.nullField({ |
| 82 | + label_class: 'col-xxl-4', |
| 83 | + input_class: 'col-xxl-8', |
| 84 | + }) }} |
66 | 85 |
|
67 | 86 | {% if item.fields['itemtype'] is defined and item.fields['itemtype'] == 'ITILCategory' %}
|
68 | 87 | {{ formcreatorFields.dropdownItilCategoryFilter(
|
69 | 88 | 'show_ticket_categories',
|
70 | 89 | item.fields['_show_ticket_categories'],
|
71 |
| - __('Show ticket categories', 'formcreator') |
| 90 | + __('Show ticket categories', 'formcreator'), { |
| 91 | + label_class: 'col-xxl-4', |
| 92 | + input_class: 'col-xxl-8', |
| 93 | + } |
72 | 94 | ) }}
|
73 | 95 |
|
74 |
| - {{ fields.nullField() }} |
| 96 | + {{ fields.nullField({ |
| 97 | + label_class: 'col-xxl-4', |
| 98 | + input_class: 'col-xxl-8', |
| 99 | + }) }} |
75 | 100 | {% endif %}
|
76 | 101 |
|
77 | 102 | {# _is_tree is set in the showForm method, and helps to find if the itemtype is a tree #}
|
|
81 | 106 | item.fields['itemtype'],
|
82 | 107 | 'show_tree_root',
|
83 | 108 | item.fields['_tree_root'],
|
84 |
| - __('Subtree root', 'formcreator'), |
| 109 | + __('Subtree root', 'formcreator'), { |
| 110 | + label_class: 'col-xxl-4', |
| 111 | + input_class: 'col-xxl-8', |
| 112 | + } |
85 | 113 | ) }}
|
86 | 114 |
|
87 | 115 | {{ fields.numberField(
|
88 | 116 | 'show_tree_depth',
|
89 | 117 | item.fields['_show_tree_depth'],
|
90 |
| - __('Limit subtree depth', 'formcreator'), |
| 118 | + __('Limit subtree depth', 'formcreator'), { |
| 119 | + label_class: 'col-xxl-4', |
| 120 | + input_class: 'col-xxl-8', |
| 121 | + } |
91 | 122 | ) }}
|
92 | 123 |
|
93 | 124 | {{ fields.dropdownYesNo(
|
94 | 125 | 'selectable_tree_root',
|
95 | 126 | item.fields['_tree_root_selectable'],
|
96 |
| - __('Selectable root', 'formcreator') |
| 127 | + __('Selectable root', 'formcreator'), { |
| 128 | + label_class: 'col-xxl-4', |
| 129 | + input_class: 'col-xxl-8', |
| 130 | + } |
97 | 131 | ) }}
|
98 | 132 |
|
99 |
| - {{ fields.nullField() }} |
| 133 | + {{ fields.nullField({ |
| 134 | + label_class: 'col-xxl-4', |
| 135 | + input_class: 'col-xxl-8', |
| 136 | + }) }} |
100 | 137 | {% endif %}
|
101 | 138 |
|
102 | 139 | {% if item.fields['itemtype'] is defined and item.fields['_is_entity_restrict'] == '1' %}
|
103 | 140 | {{ formcreatorFields.dropdownEntityRestrict(
|
104 | 141 | 'entity_restrict',
|
105 | 142 | item.fields['_entity_restrict'],
|
106 | 143 | __('Entity restriction', 'formcreator'),
|
| 144 | + { |
| 145 | + label_class: 'col-xxl-4', |
| 146 | + input_class: 'col-xxl-8', |
| 147 | + } |
107 | 148 | ) }}
|
108 | 149 |
|
109 |
| - {{ fields.nullField() }} |
| 150 | + {{ fields.nullField({ |
| 151 | + label_class: 'col-xxl-4', |
| 152 | + input_class: 'col-xxl-8', |
| 153 | + }) }} |
110 | 154 | {% endif %}
|
111 | 155 | {% endblock %}
|
0 commit comments