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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt (-2 / +7 lines)
Lines 266-278 Link Here
266
<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>
266
<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>
267
<p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
267
<p>The column 'Koha field' shows that the subfield is linked with a Koha field.</p>
268
268
269
<table>
269
<table id="table_marcsubfieldstructure">
270
    <thead>
270
<tr>
271
<tr>
271
    <th>Subfield</th>
272
    <th>Subfield</th>
272
    <th>Text</th>
273
    <th>Text</th>
273
    <th>Constraints</th>
274
    <th>Constraints</th>
274
    <th>Actions</th>
275
    <th class="NoSort">Actions</th>
275
</tr>
276
</tr>
277
    </thead>
278
    <tbody>
276
[% FOREACH loo IN loop %]
279
[% FOREACH loo IN loop %]
277
<tr>
280
<tr>
278
    <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>
281
    <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>
Lines 307-312 Link Here
307
    </td>
310
    </td>
308
</tr>
311
</tr>
309
[% END %]
312
[% END %]
313
    </tbody>
310
</table>
314
</table>
311
315
312
<form action="[% script_name | html %]" method="get">
316
<form action="[% script_name | html %]" method="get">
Lines 331-336 Link Here
331
     </div> <!-- /.row -->
335
     </div> <!-- /.row -->
332
336
333
[% MACRO jsinclude BLOCK %]
337
[% MACRO jsinclude BLOCK %]
338
    [% INCLUDE 'datatables.inc' %]
334
    [% Asset.js("js/admin-menu.js") | $raw %]
339
    [% Asset.js("js/admin-menu.js") | $raw %]
335
    [% Asset.js("js/marc_subfields_structure.js") | $raw %]
340
    [% Asset.js("js/marc_subfields_structure.js") | $raw %]
336
[% END %]
341
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/marc_subfields_structure.js (-2 / +7 lines)
Lines 1-10 Link Here
1
/* global dataTablesDefaults */
1
$(document).ready(function() {
2
$(document).ready(function() {
2
    $('#subfieldtabs').tabs();
3
    $('#subfieldtabs').tabs();
3
    $("input[id^='hidden_']").click(setHiddenValue);
4
    $("input[id^='hidden_']").click(setHiddenValue);
4
    $("input[id^='hidden-']").each(function() {
5
    $("input[id^='hidden-']").each(function() {
5
        populateHiddenCheckboxes($(this).attr('id').split('-')[1]);
6
        populateHiddenCheckboxes($(this).attr('id').split('-')[1]);
6
    });
7
    });
7
8
    $("#table_marcsubfieldstructure").dataTable($.extend(true, {}, dataTablesDefaults, {
9
        "columnDefs": [
10
            { 'sortable': false, 'targets': [ 'NoSort' ] }
11
        ],
12
        paginate: false
13
    }));
8
});
14
});
9
15
10
/* Function to enable/disable hidden values checkboxes when Flag is (de)selected */
16
/* Function to enable/disable hidden values checkboxes when Flag is (de)selected */
11
- 

Return to bug 25471