Bug 10904: Limit patron update request management by branch
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patron_lists / lists.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Tools &rsaquo; Patron lists</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4
5 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6 [% INCLUDE 'datatables.inc' %]
7
8 <script type="text/javascript">
9 //<![CDATA[
10     $(document).ready(function() {
11         $('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults, {
12             "aoColumnDefs": [
13                 { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
14             ],
15             "sPaginationType": "four_button"
16         } ));
17     });
18
19     function ConfirmDelete( list ) {
20         return confirm( _("Are you sure you want to delete the list %s?").format(list) );
21     }
22 //]]>
23 </script>
24
25 </head>
26
27 <body id="patlist_lists" class="pat patlist">
28 [% INCLUDE 'header.inc' %]
29 [% INCLUDE 'cat-search.inc' %]
30 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a> &rsaquo; Patron lists</div>
31
32 <div class="yui-t7">
33     <div class="yui-main">
34         <h1>Your patron lists</h1>
35
36         <div class="btn-group">
37             <a class="btn btn-small" href="add-modify.pl"><i class="fa fa-plus"></i> New patron list</a>
38         </div>
39
40         <table id="patron-lists-table">
41             <thead>
42                 <tr>
43                     <th>Name</th>
44                     <th>Patrons in list</th>
45                     <th>&nbsp;</th>
46                     <th>&nbsp;</th>
47                     <th>&nbsp;</th>
48                 </tr>
49             </thead>
50
51             <tbody>
52                 [% FOREACH l IN lists %]
53                     <tr>
54                         <td>[% l.name %]</td>
55                         <td>[% l.patron_list_patrons_rs.count || 0 %]</td>
56                         <td>
57                             <a class="btn btn-mini" href="list.pl?patron_list_id=[% l.patron_list_id %]">
58                                 <i class="fa fa-plus-sign"></i> Add patrons <i class="fa fa-user"></i>
59                             </a>
60                         </td>
61                         <td>
62                             <a class="btn btn-mini" href="add-modify.pl?patron_list_id=[% l.patron_list_id %]">
63                                 <i class="fa fa-edit"></i> Edit
64                             </a>
65                         </td>
66                         <td>
67                             <a class="btn btn-mini" href="delete.pl?patron_list_id=[% l.patron_list_id %]" onclick='return ConfirmDelete("[% l.name | html %]")'>
68                                 <i class="fa fa-trash"></i> Delete
69                             </a>
70                         </td>
71                     </tr>
72                 [% END %]
73             </tbody>
74         </table>
75     </div>
76 </div>
77 [% INCLUDE 'intranet-bottom.inc' %]