Bug 31986: Add page-section to various administration pages
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / marc_subfields_structure.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% SET footerjs = 1 %]
4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>
6     [%- IF ( add_form ) -%]
7         [%- IF ( use_heading_flags_p ) -%]
8             [%- IF ( heading_edit_subfields_p ) -%]
9                 Edit MARC subfields constraints &rsaquo; MARC subfield structure
10             [%- END -%]
11
12         [%- ELSE -%]
13             [%- action | html -%] &rsaquo; MARC subfield structure
14         [%- END -%]
15
16     [%- END -%]
17
18     [%- IF ( delete_confirm ) -%]
19
20         MARC subfield structure &rsaquo; Confirm deletion of subfield [%- mss.tagsubfield | html -%]
21
22         Confirm deletion of subfield [%- tagsubfield | html -%] &rsaquo; MARC subfield structure
23     [%- END -%]
24
25     [%- IF ( delete_confirmed ) -%]
26         Subfield deleted &rsaquo; MARC subfield structure
27
28     [%- END -%]
29
30     [%- IF ( else ) -%]
31         MARC subfield structure
32     [%- END -%] &rsaquo; Administration &rsaquo; Koha
33 </title>
34 [% INCLUDE 'doc-head-close.inc' %]
35 <style>.constraints::after { content:  " "; clear: both; display:block; }</style>
36 </head>
37
38 <body id="admin_marc_subfields_structure" class="admin">
39     [% WRAPPER 'header.inc' %]
40     [% INCLUDE 'prefs-admin-search.inc' %]
41 [% END %]
42
43     [% WRAPPER 'sub-header.inc' %]
44     <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
45         <ol>
46             <li>
47                 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
48             </li>
49             <li>
50                 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
51             </li>
52             <li>
53                 <a href="/cgi-bin/koha/admin/biblio_framework.pl">MARC frameworks</a>
54             </li>
55             <li>
56                 <a href="/cgi-bin/koha/admin/marctagstructure.pl?frameworkcode=[% frameworkcode | uri %]&amp;searchfield=[% tagfield | uri %]">
57                     [% IF ( frameworkcode ) %]
58                         <span>[% frameworkcode | html %] framework structure</span>
59                     [% ELSE %]
60                         <span>Default framework structure</span>
61                     [% END %]
62                 </a>
63             </li>
64
65             [% IF ( add_form ) %]
66                 [% IF ( use_heading_flags_p ) %]
67                     [% IF ( heading_edit_subfields_p ) %]
68                         <li>
69                             <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]">Tag [% tagfield | html %] subfield structure</a>
70                         </li>
71                         <li>
72                             <a href="#" aria-current="page">
73                                 Edit subfields constraints
74                             </a>
75                         </li>
76                     [% END %]
77                 [% ELSE %]
78                     <li>
79                         <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]">Tag [% tagfield | html %] Subfield structure</a>
80                     </li>
81                     <li>
82                         <a href="#" aria-current="page">
83                             [% action | html %]
84                         </a>
85                     </li>
86                 [% END %]
87             [% END %]
88
89             [% IF ( delete_confirm ) %]
90                 <li>
91                     <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% mss.tagfield | uri %]&amp;frameworkcode=[% mss.frameworkcode | uri %]">Tag [% mss.tagfield | html %] Subfield structure</a>
92                 </li>
93                 <li>
94                     <a href="#" aria-current="page">
95                         Confirm deletion of subfield [% mss.tagsubfield | html %]
96                     </a>
97                 </li>
98             [% END %]
99
100             [% IF ( else ) %]
101                 <li>
102                     <a href="#" aria-current="page">
103                         Tag [% tagfield | html %] Subfield structure
104                     </a>
105                 </li>
106             [% END %]
107         </ol>
108     </nav> <!-- /#breadcrumbs -->
109     [% END %]
110
111     <div class="main container-fluid">
112         <div class="row">
113             <div class="col-sm-10 col-sm-push-2">
114                 <main>
115
116                     [% IF ( add_form ) %]
117                         <h1>
118                             [% IF ( use_heading_flags_p ) %]
119                                 [% IF ( heading_edit_subfields_p ) %]<span>Tag</span> [% tagfield | html %] <span>Subfield constraints</span>[% END %]
120                             [% ELSE %]
121                                 [% action | html %]
122                             [% END %]
123                         </h1>
124
125                         <form action="[% script_name | html %]" name="Aform" method="post">
126                             <input type="hidden" name="op" value="add_validate" />
127                             <input type="hidden" name="tagfield" value="[% tagfield | html %]" />
128                             <input type="hidden" name="frameworkcode" value="[% frameworkcode | html %]" />
129
130                             [% BLOCK outputsubfield %][% FILTER collapse %]
131                                 [% SWITCH ( subfieldanchor ) %]
132                                     [%   CASE "@" %]
133                                     AT
134                                     [%   CASE "%" %]
135                                     %
136                                     [%   CASE  %]
137                                     [% subfieldanchor | html %]
138                                 [% END %]
139                             [% END %][% END %]
140
141                             <div id="subfieldtabs" class="toptabs numbered">
142                                  <ul class="nav nav-tabs" role="tablist">
143                                     [% FOREACH loo IN loop %]
144                                         <li id="tab_subfield_[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="tab-item" role="presentation">
145                                             [% IF ( loo.new_subfield ) %]
146                                                 <a href="#sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" aria-controls="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" role="tab" data-toggle="tab" title="[% loo.liblibrarian | html_entity %]">New</a>
147                                             [% ELSE %]
148                                                 <a href="#sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" aria-controls="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field" role="tab" data-toggle="tab" title="[% loo.liblibrarian | html_entity %]">
149                                                     [% loo.subfieldcode | html %]
150                                                 </a>
151                                             [% END %]
152                                         </li>
153                                     [% END %]
154                                 </ul>
155
156                                 <div class="tab-content">
157
158                                     [% FOREACH loo IN loop %]
159                                         <div class="constraints tab-pane" role="tabpanel" id="sub[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]field">
160                                             <input type="hidden" name="tab_id" value="[% loo.row | html %]" />
161                                             <div id="basic[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="contraints">
162                                                 <fieldset class="rows">
163                                                     <legend>Basic constraints</legend>
164                                                     <ol>
165                                                         [% IF ( loo.subfieldcode == 0 || loo.subfieldcode ) %]
166                                                             <li>
167                                                                 <span class="label">Subfield code:</span>
168                                                                 [% loo.subfieldcode | html %]
169                                                                 <input type="hidden" id="tagsubfield[% loo.row | html %]" name="tagsubfield" value="[% loo.subfieldcode | html %]" />
170                                                             </li>
171                                                         [% ELSE %]
172                                                             <li>
173                                                                 <label for="tagsubfield[% loo.row | html %]">Subfield code:</label>
174                                                                     <input type="text" id="tagsubfield[% loo.row | html %]" name="tagsubfield" value="[% loo.subfieldcode | html %]" />
175                                                                 </li>
176                                                         [% END %]
177                                                         <li>
178                                                             <label for="liblibrarian[% loo.row | html %]">Text for librarian: </label>
179                                                             <input id="liblibrarian[% loo.row | html %]" type="text" name="liblibrarian_[% loo.row | html %]" value="[% loo.liblibrarian | html_entity %]" size="40" maxlength="80" />
180                                                         </li>
181                                                         <li>
182                                                             <label for="libopac[% loo.row | html %]">Text for OPAC: </label>
183                                                             <input type="text" id="libopac[% loo.row | html %]" name="libopac_[% loo.row | html %]" value="[% loo.libopac | html_entity %]" size="40" maxlength="80" />
184                                                         </li>
185                                                         <li>
186                                                             <label for="repeatable[% loo.row | html %]">Repeatable: </label>
187                                                             [% IF loo.repeatable %]
188                                                                 <input type="checkbox" id="repeatable[% loo.row | html %]" name="repeatable_[% loo.row | html %]" checked="checked" value="1" />
189                                                             [% ELSE %]
190                                                                 <input type="checkbox" id="repeatable[% loo.row | html %]" name="repeatable_[% loo.row | html %]" value="1" />
191                                                             [% END %]
192                                                         </li>
193                                                         <li>
194                                                             <label for="mandatory[% loo.row | html %]">Mandatory: </label>
195                                                             [% IF loo.mandatory %]
196                                                                 <input type="checkbox" id="mandatory[% loo.row | html %]" name="mandatory_[% loo.row | html %]" checked="checked" value="1" />
197                                                             [% ELSE %]
198                                                                 <input type="checkbox" id="mandatory[% loo.row | html %]" name="mandatory_[% loo.row | html %]" value="1" />
199                                                             [% END %]
200                                                         </li>
201                                                         <li>
202                                                             <label for="important[% loo.row | html %]">Important: </label>
203                                                             [% IF loo.important %]
204                                                                 <input type="checkbox" id="important[% loo.row | html %]" name="important_[% loo.row | html %]" checked="checked" value="1" />
205                                                             [% ELSE %]
206                                                                 <input type="checkbox" id="important[% loo.row | html %]" name="important_[% loo.row | html %]" value="1" />
207                                                             [% END %]
208                                                         </li>
209                                                         <li><label for="tab[% loo.row | html %]">Managed in tab: </label>
210                                                             <select name="tab_[% loo.row | html %]" tabindex="" id="tab[% loo.row | html %]">
211                                                             [%- IF ( loo.tab ==  -1 ) -%]
212                                                                 <option value="-1" selected="selected">ignore</option>
213                                                             [%- ELSE -%]
214                                                                 <option value="-1">ignore</option>
215                                                             [%- END -%]
216                                                             [%- FOREACH t IN [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9'] -%]
217                                                                 [%- IF ( loo.tab ==  t ) -%]
218                                                                 <option value="[%- t | html -%]" selected="selected">[%- t | html -%]</option>
219                                                                 [%- ELSE -%]
220                                                                 <option value="[%- t | html -%]">[%- t | html -%]</option>
221                                                                 [%- END -%]
222                                                             [%- END -%]
223                                                             [%- IF ( loo.tab ==  10 ) -%]
224                                                                 <option value="10" selected="selected">items (10)</option>
225                                                             [%- ELSE -%]
226                                                                 <option value="10">items (10)</option>
227                                                             [%- END -%]
228                                                             </select>
229                                                             <div class="hint"><i class="fa fa-warning"></i> <span>Ignore means that the subfield does not display in the record editor and that its value, if any, is deleted from the record</span></div>
230                                                         </li>
231                                                     </ol>
232                                                 </fieldset> <!-- /.rows -->
233                                             </div> <!-- /#basic[%- PROCESS outputsubfield subfieldanchor = subfieldcode -%] -->
234
235                                             <div id="advanced[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="contraints">
236                                                 <fieldset class="rows">
237                                                     <legend>Advanced constraints</legend>
238                                                     <ol>
239                                                         <li>
240                                                             <label for="defaultvalue[% loo.row | html %]">Default value:</label>
241                                                             <input type="text" name="defaultvalue_[% loo.row | html %]" id="defaultvalue[% loo.row | html %]" value="[% loo.defaultvalue | html %]" />
242                                                         </li>
243                                                         <li>
244                                                             <label for="maxlength[% loo.row | html %]">Max length:</label>
245                                                             <input type="text" id="maxlength[% loo.row | html %]" name="maxlength_[% loo.row | html %]" value="[% loo.maxlength | html %]" size="4" />
246                                                         </li>
247                                                         <li>
248                                                             [% IF loo.hidden_protected %]
249                                                                 <input type="hidden" id="hidden-[% loo.row | html %]" name="hidden_[% loo.row | html %]" value="[% loo.hidden | html %]" data-koha-protected="1" />
250                                                             [% ELSE %]
251                                                                 <input type="hidden" id="hidden-[% loo.row | html %]" name="hidden_[% loo.row | html %]" value="[% loo.hidden | html %]" />
252                                                             [% END %]
253                                                             <label for="hidden[% loo.row | html %]">Visibility: </label>
254                                                             <input type="checkbox" id="hidden_opac_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_opac_[% loo.row | html %]"/>
255                                                             <label for="hidden_opac_[% loo.row | html %]" style="float: none;">OPAC</label>
256                                                             <input type="checkbox" id="hidden_intranet_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_intranet_[% loo.row | html %]"/>
257                                                             <label for="hidden_intranet_[% loo.row | html %]" style="float: none;">Intranet</label>
258                                                             <input type="checkbox" id="hidden_editor_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_editor_[% loo.row | html %]"/>
259                                                             <label for="hidden_editor_[% loo.row | html %]" style="float: none;">Editor</label>
260                                                             <input type="checkbox" id="hidden_collapsed_[% loo.row | html %]" class="inclusive_[% loo.row | html %]" name="hidden_collapsed_[% loo.row | html %]"/>
261                                                             <label for="hidden_collapsed_[% loo.row | html %]" style="float: none;">Collapsed</label>
262                                                             <input type="checkbox" id="hidden_flagged_[% loo.row | html %]" name="flagged_[% loo.row | html %]"/>
263                                                             <label for="hidden_flagged_[% loo.row | html %]" style="float: none;">Flagged</label>
264                                                         </li>
265                                                         <li>
266                                                             <label for="isurl[% loo.row | html %]">Is a URL:</label>
267                                                             [% IF loo.isurl %]
268                                                                 <input type="checkbox" id="isurl[% loo.row | html %]" name="isurl_[% loo.row | html %]" checked="checked" value="1" />
269                                                             [% ELSE %]
270                                                                 <input type="checkbox" id="isurl[% loo.row | html %]" name="isurl_[% loo.row | html %]" value="1" />
271                                                             [% END %]
272                                                             <span class="hint">If checked, it means that the subfield is a URL and can be clicked</span>
273                                                         </li>
274                                                         <li>
275                                                             <label for="link[% loo.row | html %]">Link:</label>
276                                                             <input type="text" id="link[% loo.row | html %]" name="link_[% loo.row | html %]" value="[% loo.link | html %]" size="10" maxlength="80" />
277                                                             <div class="hint">An index name, e.g. title or Local-Number</div>
278                                                         </li>
279                                                         <li>
280                                                             <label for="kohafield[% loo.row | html %]">Koha link:</label>
281                                                             <!-- This select should be DISABLED; value is submitted by the following hidden input -->
282                                                             <select name="kohafield_[% loo.row | html %]" id="kohafield[% loo.row | html %]" disabled>
283                                                             [% FOREACH value IN loo.kohafields %]
284                                                             [% IF ( value == loo.kohafield ) %]
285                                                                 <option value="[% value | html %]" selected="selected">[% value | html %]</option>
286                                                             [% ELSE %]
287                                                                 <option value="[% value | html %]">[% value | html %]</option>
288                                                             [% END %]
289                                                             [% END %]
290                                                             </select>
291                                                             <!-- Do NOT remove this next hidden input! We need it to save kohafield. -->
292                                                             <input type="hidden" name="kohafield_[% loo.row | html %]" value="[% loo.kohafield | html %]"/>
293                                                         </li>
294                                                     </ol>
295                                                 </fieldset> <!-- /.rows -->
296                                             </div> <!-- /#advanced[%- PROCESS outputsubfield subfieldanchor = subfieldcode -%] -->
297
298                                             <div id="oth[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%]" class="constraints">
299                                                 <fieldset class="rows">
300                                                     <legend>Other options (choose one)</legend>
301                                                     <ol>
302                                                         <li>
303                                                             <label for="authorised_value[% loo.row | html %]">Authorized value:</label>
304                                                             <select name="authorised_value_[% loo.row | html %]" id="authorised_value[% loo.row | html %]">
305                                                             <option value=""></option>
306                                                             [% FOREACH value IN loo.authorised_values %]
307                                                                 [% IF ( value == loo.authorised_value ) %]
308                                                                     <option value="[% value | html %]" selected="selected">[% value | html %]</option>
309                                                                 [% ELSE %]
310                                                                     <option value="[% value | html %]">[% value | html %]</option>
311                                                                 [% END %]
312                                                             [% END %]
313                                                             </select>
314                                                         </li>
315                                                         <li>
316                                                             <label for="authtypecode[% loo.row | html %]">Thesaurus:</label>
317                                                             <select name="authtypecode_[% loo.row | html %]" id="authtypecode[% loo.row | html %]">
318                                                             [% FOREACH value IN loo.authtypes %]
319                                                                 [% IF ( value == loo.authtypecode ) %]
320                                                                     <option value="[% value | html %]" selected="selected">[% value | html %]</option>
321                                                                 [% ELSE %]
322                                                                     <option value="[% value | html %]">[% value | html %]</option>
323                                                                 [% END %]
324                                                             [% END %]
325                                                             </select>
326                                                         </li>
327                                                         <li>
328                                                             <label for="value_builder[% loo.row | html %]">Plugin:</label>
329                                                             <select name="value_builder_[% loo.row | html %]" id="value_builder[% loo.row | html %]">
330                                                             [% FOREACH value IN loo.value_builders %]
331                                                                 [% IF ( value == loo.value_builder ) %]
332                                                                     <option value="[% value | html %]" selected="selected">[% value | html %]</option>
333                                                                 [% ELSE %]
334                                                                     <option value="[% value | html %]">[% value | html %]</option>
335                                                                 [% END %]
336                                                             [% END %]
337                                                             </select>
338                                                         </li>
339                                                     </ol>
340                                                 </fieldset> <!-- /.rows -->
341                                             </div> <!-- /#oth[%- PROCESS outputsubfield subfieldanchor = loo.subfieldcode -%] -->
342                                         </div><!-- /constraints -->
343                                     [% END # /FOREACH loo %]
344                                 </div> <!-- /.tab-content -->
345                             </div><!-- /subfieldtabs -->
346
347                             <fieldset class="action">
348                                 <input type="submit" value="Save changes" /> <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?tagfield=[% tagfield  | uri %]&amp;frameworkcode=[% frameworkcode | uri %]" class="cancel">Cancel</a>
349                             </fieldset>
350                         </form>
351                     [% END # /IF ( add_form ) %]
352
353                     [% IF ( delete_confirm ) %]
354                         <div class="dialog alert">
355                             <h1>Confirm deletion of subfield [% mss.tagsubfield | html %]?</h1>
356                             <p>Subfield: [% mss.tagsubfield | html %]</p>
357                             <p>Description: [% mss.liblibrarian | html_entity %]</p>
358
359                             <form action="[% delete_link | html %]" method="post"><input type="hidden" name="op" value="delete_confirmed" />
360                                 <input type="hidden" name="tagfield" value="[% mss.tagfield | html %]" />
361                                 <input type="hidden" name="tagsubfield" value="[% mss.tagsubfield | html %]" />
362                                 <input type="hidden" name="frameworkcode" value="[% mss.frameworkcode | html %]" />
363                                 <button type="submit" class="approve"><i class="fa fa-fw fa-check"></i> Yes, delete this subfield</button>
364                             </form>
365
366
367                             <form action="[% script_name | html %]" method="post">
368                                 <input type="hidden" name="tagfield" value="[% mss.tagfield | html %]" />
369                                 <input type="hidden" name="tagsubfield" value="[% mss.tagsubfield | html %]" />
370                                 <input type="hidden" name="frameworkcode" value="[% mss.frameworkcode | html %]" />
371                                 <button type="submit" class="deny"><i class="fa fa-fw fa-remove"></i> No, do not delete</button>
372                             </form>
373                         </div> <!-- /.dialog.alert -->
374                     [% END # /IF ( delete_confirm ) %]
375
376                     [% IF ( else ) %]
377                         [% IF ( frameworkcode ) %]
378                             <h1>MARC subfield structure admin for [% tagfield | html %] (framework [% frameworkcode | html %])</h1>
379                         [% ELSE %]
380                             <h1>MARC subfield structure admin for [% tagfield | html %] (default framework)</h1>
381                         [% END %]
382
383                         <p>This screen shows the subfields associated with the selected tag. You can edit subfields or add a new one by clicking on edit.</p>
384                         <p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
385
386                         <div class="page-section">
387                             <table id="table_marcsubfieldstructure">
388                                 <thead>
389                                     <tr>
390                                         <th>Subfield</th>
391                                         <th>Text</th>
392                                         <th>Constraints</th>
393                                         <th class="NoSort noExport">Actions</th>
394                                     </tr>
395                                 </thead>
396                                 <tbody>
397                                     [% FOREACH loo IN loop %]
398                                         <tr>
399                                             <td><a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&amp;tagfield=[% loo.tagfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]#sub[% loo.tagsubfield | uri %]field">[% loo.tagsubfield | html %]</a></td>
400                                             <td>
401                                                 [% IF loo.tab == -1 %]
402                                                     <em>[% loo.liblibrarian | html_entity %]</em>
403                                                 [% ELSE %]
404                                                     [% loo.liblibrarian | html_entity %]
405                                                 [% END %]
406                                             </td>
407                                             <td>
408                                                 [% IF loo.tab == -1 %]
409                                                     <em>subfield ignored</em>
410                                                 [% ELSE %]
411                                                     <span>Tab:</span>[% loo.tab | html %],
412                                                     [% IF ( loo.kohafield ) %] | <span>Koha field:</span> [% loo.kohafield | html %], [% END %]
413                                                     [% IF ( loo.repeatable ) %]<span>Repeatable</span>, [% ELSE %]<span>Not repeatable</span>,[% END %]
414                                                     [% IF ( loo.mandatory ) %]<span>Mandatory</span>, [% ELSE %]<span>Not mandatory</span>,[% END %]
415                                                     [% IF ( loo.important ) %]<span>Important</span>, [% ELSE %]<span>Not important</span>,[% END %]
416                                                     [% IF ( loo.seealso ) %] | <span>See also:</span> [% loo.seealso | html %],[% END %]
417                                                     [% IF ( loo.hidden ) %]<span>hidden</span>,[% END %]
418                                                     [% IF ( loo.isurl ) %]<span>is a URL</span>,[% END %]
419                                                     [% IF ( loo.authorised_value ) %] | <span>Auth value:</span>[% loo.authorised_value | html %],[% END %]
420                                                     [% IF ( loo.authtypecode ) %] | <span>Authority:</span>[% loo.authtypecode | html %],[% END %]
421                                                     [% IF ( loo.value_builder ) %] | <span>Plugin:</span>[% loo.value_builder | html %],[% END %]
422                                                     [% IF ( loo.link ) %] | <span>Link:</span>[% loo.link | html %],[% END %]
423                                                 [% END %]
424                                             </td>
425                                             <td class="actions">
426                                                 <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=add_form&amp;tagfield=[% loo.tagfield | uri %]&tagsubfield=[% loo.tagsubfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]#sub[% loo.tagsubfield | uri %]field" class="btn btn-default btn-xs"><i class="fa fa-pencil"></i> Edit</a>
427                                                 <a href="/cgi-bin/koha/admin/marc_subfields_structure.pl?op=delete_confirm&amp;tagfield=[% loo.tagfield | uri %]&amp;tagsubfield=[% loo.tagsubfield | uri %]&amp;frameworkcode=[% frameworkcode | uri %]" class="btn btn-default btn-xs"><i class="fa fa-trash"></i> Delete</a>
428                                             </td>
429                                         </tr>
430                                     [% END %]
431                                 </tbody>
432                             </table> <!-- /#table_marcsubfieldstructure -->
433                         </div><!-- /.page-section -->
434
435                         <form action="[% script_name | html %]" method="get">
436                             <fieldset class="action"><input type="hidden" name="op" value="add_form" />
437                                 <input type="hidden" name="tagfield" value="[% edit_tagfield | html %]" />
438                                 <input type="hidden" name="frameworkcode" value="[% edit_frameworkcode | html %]" />
439                                 <input type="submit" value="Edit subfields" />
440                                 <a class="cancel" href="marctagstructure.pl?searchfield=[% tagfield | uri %]&amp;frameworkcode=[% frameworkcode | html %]">Cancel</a>
441                             </fieldset>
442                         </form>
443
444                     [% END # /IF else %]
445
446                 </main>
447             </div> <!-- /.col-sm-10.col-sm-push-2 -->
448
449             <div class="col-sm-2 col-sm-pull-10">
450                 <aside>
451                     [% INCLUDE 'admin-menu.inc' %]
452                 </aside>
453             </div> <!-- /.col-sm-2.col-sm-pull-10 -->
454         </div> <!-- /.row -->
455
456     [% MACRO jsinclude BLOCK %]
457         [% INCLUDE 'datatables.inc' %]
458         [% Asset.js("js/admin-menu.js") | $raw %]
459         <script>
460             var tagsubfield = "[% tagsubfield | html %]";
461         </script>
462         [% Asset.js("js/marc_subfields_structure.js") | $raw %]
463     [% END %]
464
465     [% INCLUDE 'intranet-bottom.inc' %]