View | Details | Raw Unified | Return to bug 19482
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt (-9 / +12 lines)
Lines 183-201 a.add, a.delete { Link Here
183
                </thead>
183
                </thead>
184
                <tbody>
184
                <tbody>
185
                  [% FOREACH search_field IN all_search_fields %]
185
                  [% FOREACH search_field IN all_search_fields %]
186
                      [% IF search_field.mandatory %]
187
                          [% SET is_readonly = "readonly" %]
188
                      [% ELSE %]
189
                          [% SET is_readonly = "" %]
190
                      [% END %]
191
                    <tr>
186
                    <tr>
192
                      <td>
187
                      <td>
193
                        <input type="text" name="search_field_name" value="[% search_field.name | html %]" [% is_readonly | html %]/>
188
                        [% IF search_field.mandatory %]
189
                            <input type="text" name="search_field_name" value="[% search_field.name | html %]" readonly />
190
                        [% ELSE %]
191
                            <input type="text" name="search_field_name" value="[% search_field.name | html %]" />
192
                        [% END %]
194
                      </td>
193
                      </td>
195
                      <td>
194
                      <td>
196
                        <input type="text" name="search_field_label" value="[% search_field.label | html %]" [% is_readonly | html %]/>
195
                        [% IF search_field.mandatory %]
196
                            <input type="text" name="search_field_label" value="[% search_field.label | html %]" readonly />
197
                        [% ELSE %]
198
                            <input type="text" name="search_field_label" value="[% search_field.label | html %]" />
199
                        [% END %]
200
197
                      <td>
201
                      <td>
198
                        [% IF is_readonly %]
202
                        [% IF search_field.mandatory %]
199
                            <input type="hidden" name="search_field_type" value="[% search_field.type | html %]" />
203
                            <input type="hidden" name="search_field_type" value="[% search_field.type | html %]" />
200
                            <select name="search_field_type" disabled>
204
                            <select name="search_field_type" disabled>
201
                        [% ELSE %]
205
                        [% ELSE %]
202
- 

Return to bug 19482