Lines 11-17
Link Here
|
11 |
$('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, { |
11 |
$('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, { |
12 |
"autoWidth": false, |
12 |
"autoWidth": false, |
13 |
"aoColumnDefs": [ |
13 |
"aoColumnDefs": [ |
14 |
{ "aTargets": [ -1, -2, -3, -4 ], "bSortable": false, "bSearchable": false }, |
14 |
{ "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false }, |
15 |
], |
15 |
], |
16 |
"sPaginationType": "four_button" |
16 |
"sPaginationType": "four_button" |
17 |
} )); |
17 |
} )); |
Lines 38-52
Link Here
|
38 |
<a class="btn btn-small" href="add-modify.pl"><i class="fa fa-plus"></i> New patron list</a> |
38 |
<a class="btn btn-small" href="add-modify.pl"><i class="fa fa-plus"></i> New patron list</a> |
39 |
</div> |
39 |
</div> |
40 |
|
40 |
|
|
|
41 |
[% IF ( lists ) %] |
42 |
|
41 |
<table id="patron-lists-table"> |
43 |
<table id="patron-lists-table"> |
42 |
<thead> |
44 |
<thead> |
43 |
<tr> |
45 |
<tr> |
44 |
<th>Name</th> |
46 |
<th>Name</th> |
45 |
<th>Patrons in list</th> |
47 |
<th>Patrons in list</th> |
46 |
<th> </th> |
48 |
<th> </th> |
47 |
<th> </th> |
|
|
48 |
<th> </th> |
49 |
<th> </th> |
50 |
</tr> |
49 |
</tr> |
51 |
</thead> |
50 |
</thead> |
52 |
|
51 |
|
Lines 56-84
Link Here
|
56 |
<td>[% l.name %]</td> |
55 |
<td>[% l.name %]</td> |
57 |
<td>[% l.patron_list_patrons_rs.count || 0 %]</td> |
56 |
<td>[% l.patron_list_patrons_rs.count || 0 %]</td> |
58 |
<td> |
57 |
<td> |
59 |
<a class="btn btn-mini" href="list.pl?patron_list_id=[% l.patron_list_id %]"> |
58 |
<div class="dropdown"> |
60 |
<i class="fa fa-plus-sign"></i> Add patrons <i class="fa fa-user"></i> |
59 |
<a class="btn btn-mini dropdown-toggle" id="listactions[% l.patron_list_id %]" role="button" data-toggle="dropdown" href="#"> |
61 |
</a> |
60 |
Actions <b class="caret"></b> |
62 |
</td> |
61 |
</a> |
63 |
<td> |
62 |
<ul class="dropdown-menu pull-right" role="menu" aria-labelledby="listactions[% l.patron_list_id %]"> |
64 |
<a class="btn btn-mini" href="add-modify.pl?patron_list_id=[% l.patron_list_id %]"> |
63 |
<li><a href="/cgi-bin/koha/patron_lists/list.pl?patron_list_id=[% l.patron_list_id %]"><i class="fa fa-user"></i> Add patrons</a></li> |
65 |
<i class="fa fa-edit"></i> Edit |
64 |
<li><a href="/cgi-bin/koha/patron_lists/add-modify.pl?patron_list_id=[% l.patron_list_id %]"><i class="fa fa-edit"></i> Edit</a></li> |
66 |
</a> |
65 |
<li><a href="/cgi-bin/koha/patron_lists/delete.pl?patron_list_id=[% l.patron_list_id %]" onclick='return ConfirmDelete("[% l.name %]")'><i class="fa fa-trash"></i> Delete</a></li> |
67 |
</td> |
66 |
<li><a href="#" onclick='GB_showCenter(_("Print patron cards from list"), "/cgi-bin/koha/patroncards/print.pl?patronlist_id=[% l.patron_list_id %]", 400, 800);return false;'><i class="icon-print"></i> Print patron cards</a></li> |
68 |
<td> |
67 |
</ul> |
69 |
<a class="btn btn-mini" href="delete.pl?patron_list_id=[% l.patron_list_id %]" onclick='return ConfirmDelete("[% l.name %]")'> |
68 |
</div> |
70 |
<i class="fa fa-trash"></i> Delete |
|
|
71 |
</a> |
72 |
</td> |
73 |
<td> |
74 |
<a class="btn btn-mini" href="#" onclick='GB_showCenter(_("Print patron cards from list"), "/cgi-bin/koha/patroncards/print.pl?patronlist_id=[% l.patron_list_id %]", 400, 800);return false;'> |
75 |
<i class="icon-print"></i> Print patron cards |
76 |
</a> |
77 |
</td> |
69 |
</td> |
78 |
</tr> |
70 |
</tr> |
79 |
[% END %] |
71 |
[% END %] |
80 |
</tbody> |
72 |
</tbody> |
81 |
</table> |
73 |
</table> |
|
|
74 |
[% ELSE %] |
75 |
<div class="dialog message">There are no patron lists.</div> |
76 |
[% END %] |
82 |
</div> |
77 |
</div> |
83 |
</div> |
78 |
</div> |
84 |
[% INCLUDE 'intranet-bottom.inc' %] |
79 |
[% INCLUDE 'intranet-bottom.inc' %] |
85 |
- |
|
|