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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-12 / +40 lines)
Lines 251-257 Link Here
251
                        <tbody>
251
                        <tbody>
252
                            [% FOREACH borrower IN borrowers %]
252
                            [% FOREACH borrower IN borrowers %]
253
                                <tr>
253
                                <tr>
254
                                    <td [% IF op != 'show' %]class="NoVisible"[% END %]>
254
                                    <td>
255
                                        <input type="checkbox" name="borrowernumber" value="[% borrower.borrowernumber | html %]" checked="checked" />
255
                                        <input type="checkbox" name="borrowernumber" value="[% borrower.borrowernumber | html %]" checked="checked" />
256
                                    </td>
256
                                    </td>
257
                                    <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.cardnumber | html %]</a></td>
257
                                    <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrower.borrowernumber | uri %]">[% borrower.cardnumber | html %]</a></td>
Lines 484-501 Link Here
484
    <script>
484
    <script>
485
        var patron_attributes_lib = new Array();
485
        var patron_attributes_lib = new Array();
486
        var patron_attributes_values = new Array();
486
        var patron_attributes_values = new Array();
487
        var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'batch_patron_modification', 'borrowerst', 'json' ) | $raw %];
487
488
489
        [% FOREACH attrh IN attributes_header %]
490
            table_settings["columns"].push({
491
                columname: "[% attrh.attribute | html %]",
492
                cannot_be_modified: 0,
493
                cannot_be_toggled: 0,
494
                is_hidden: 0
495
            });
496
        [% END %]
497
        $(document).ready(function() {
488
        $(document).ready(function() {
498
            [% IF borrowers %]
489
            [% IF borrowers %]
490
491
                var table_settings = [% TablesSettings.GetTableSettings( 'tools', 'batch_patron_modification', 'borrowerst', 'json' ) | $raw %];
492
493
                [% FOREACH attrh IN attributes_header %]
494
                    table_settings["columns"].push({
495
                        columname: "[% attrh.attribute | html %]",
496
                        cannot_be_modified: 0,
497
                        cannot_be_toggled: 0,
498
                        is_hidden: 0
499
                    });
500
                [% END %]
501
502
                let selections_column = table_settings.columns.find(c => c.columnname == 'batch_patron_edit_selections');
503
                selections_column.cannot_be_modified = 1;
504
                selections_column.cannot_be_toggled = 1;
505
                selections_column.force_visibility = 1;
506
                [% IF op == 'show' %]
507
                    selections_column.is_hidden = 0;
508
                [% ELSE %]
509
                    selections_column.is_hidden = 1;
510
                [% END %]
511
512
                [% UNLESS CanUpdatePasswordExpiration %]
513
                    let password_expiration_date_column = table_settings.columns.find(c => c.columnname == 'batch_patron_edit_password_expiration_date');
514
                    password_expiration_date_column.is_hidden = 1;
515
                    password_expiration_date_column.cannot_be_modified = 1;
516
                    password_expiration_date_column.cannot_be_toggled = 1;
517
                    password_expiration_date_column.force_visibility = 1;
518
                [% END %]
519
520
                [% UNLESS CanUpdateProtectPatron %]
521
                    let protected_column = table_settings.columns.find(c => c.columnname == 'batch_patron_edit_protected');
522
                    protected_column.is_hidden = 1;
523
                    protected_column.cannot_be_modified = 1;
524
                    protected_column.cannot_be_toggled = 1;
525
                    protected_column.force_visibility = 1;
526
                [% END %]
527
499
                let patron_table = $("#borrowerst").kohaTable(
528
                let patron_table = $("#borrowerst").kohaTable(
500
                    {
529
                    {
501
                        order: [[1, "asc"]],
530
                        order: [[1, "asc"]],
502
- 

Return to bug 41079