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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (-14 / +19 lines)
Lines 3-24 Link Here
3
<title>Koha &rsaquo; Tools &rsaquo; Batch patron modification</title>
3
<title>Koha &rsaquo; Tools &rsaquo; Batch patron modification</title>
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'calendar.inc' %]
5
[% INCLUDE 'calendar.inc' %]
6
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/en/css/datatables.css" />
6
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7
<script type="text/javascript" src="[% interface %]/[% theme %]/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7
[% INCLUDE 'datatables.inc' %]
8
[% INCLUDE 'datatables-strings.inc' %]
9
<script type="text/javascript" src="[% interface %]/[% theme %]/en/js/datatables.js"></script>
10
<script type="text/javascript">
8
<script type="text/javascript">
11
//<![CDATA[
9
//<![CDATA[
12
    [% IF (dateformat == 'metric') %]dt_add_type_uk_date();[% END %]
13
        var patron_attributes_lib = new Array();
10
        var patron_attributes_lib = new Array();
14
        var patron_attributes_values = new Array();
11
        var patron_attributes_values = new Array();
15
        $(document).ready(function() {
12
        $(document).ready(function() {
16
            [% IF borrowers %]
13
            [% IF borrowers %]
17
                $("#borrowerst").dataTable($.extend(true, {}, dataTablesDefaults, {
14
                $("#borrowerst").dataTable($.extend(true, {}, dataTablesDefaults, {
18
                    "sDom": 't',
15
                    "sDom": 't',
19
                    "aoColumnDefs": [
16
                    [% IF ( op == 'show_results' ) %]
20
                        { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false }
17
                        "aoColumns": [
21
                    ],
18
                            null,null,null,null,null,{ "sType": "title-string" },{ "sType": "title-string" },null
19
                        ],
20
                    [% ELSE %]
21
                        "aoColumnDefs": [
22
                            { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
23
                        ],
24
                        "aoColumns": [
25
                            null,null,null,null,null,null,{ "sType": "title-string" },{ "sType": "title-string" },null
26
                        ],
27
                    [% END %]
22
                    "bPaginate": false
28
                    "bPaginate": false
23
                }));
29
                }));
24
                $("#selectallbutton").click(function() {
30
                $("#selectallbutton").click(function() {
Lines 209-215 Link Here
209
                    <form name="f" action="modborrowers.pl" method="post">
215
                    <form name="f" action="modborrowers.pl" method="post">
210
                        <input type="hidden" name="op" value="do" />
216
                        <input type="hidden" name="op" value="do" />
211
                        [% IF ( borrowers ) %]
217
                        [% IF ( borrowers ) %]
212
                            <div id="toolbar"><a id="selectallbutton" href="#">Select All</a> | <a id="clearallbutton" href="#">Clear All</a></div>
218
                            <div id="toolbar"><a id="selectallbutton" href="#">Select all</a> | <a id="clearallbutton" href="#">Clear all</a></div>
213
                        [% END %]
219
                        [% END %]
214
                    [% END %]
220
                    [% END %]
215
                        [% IF borrowers %]
221
                        [% IF borrowers %]
Lines 223-229 Link Here
223
                                                [% END %]
229
                                                [% END %]
224
                                                <th>Card number</th>
230
                                                <th>Card number</th>
225
                                                <th>Surname</th>
231
                                                <th>Surname</th>
226
                                                <th>Firstname</th>
232
                                                <th>First name</th>
227
                                                <th>Library</th>
233
                                                <th>Library</th>
228
                                                <th>Category</th>
234
                                                <th>Category</th>
229
                                                <th>Registration date</th>
235
                                                <th>Registration date</th>
Lines 244-251 Link Here
244
                                                    <td>[% borrower.firstname %]</td>
250
                                                    <td>[% borrower.firstname %]</td>
245
                                                    <td>[% borrower.branchname %]</td>
251
                                                    <td>[% borrower.branchname %]</td>
246
                                                    <td>[% borrower.categorycode %]</td>
252
                                                    <td>[% borrower.categorycode %]</td>
247
                                                    <td>[% borrower.dateenrolled | $KohaDates %]</td>
253
                                                    <td><span title="[% borrower.dateenrolled %]">[% borrower.dateenrolled | $KohaDates %]</span></td>
248
                                                    <td>[% borrower.dateexpiry | $KohaDates %]</td>
254
                                                    <td><span title="[% borrower.dateexpiry %]">[% borrower.dateexpiry | $KohaDates %]</span></td>
249
                                                    [% FOREACH pa IN borrower.patron_attributes %]
255
                                                    [% FOREACH pa IN borrower.patron_attributes %]
250
                                                        [% IF ( pa.code ) %]
256
                                                        [% IF ( pa.code ) %]
251
                                                            <td>[% pa.code %]=[% pa.value %]</td>
257
                                                            <td>[% pa.code %]=[% pa.value %]</td>
Lines 262-268 Link Here
262
268
263
                            [% IF ( op == 'show' ) %]
269
                            [% IF ( op == 'show' ) %]
264
                            <div id="cataloguing_additem_newitem">
270
                            <div id="cataloguing_additem_newitem">
265
                                <h2>Edit Patrons</h2>
271
                                <h2>Edit patrons</h2>
266
                                <div class="hint">Checking the box right next the label will disable the entry and delete the values of that field on all selected patrons</div>
272
                                <div class="hint">Checking the box right next the label will disable the entry and delete the values of that field on all selected patrons</div>
267
                                <fieldset class="rows" id="fields_list">
273
                                <fieldset class="rows" id="fields_list">
268
                                    <ol>
274
                                    <ol>
269
- 

Return to bug 11738