Bug 10565: (follow-up) use datatables.inc
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / patron_lists / lists.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &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     });
13
14     function ConfirmDelete( list ) {
15         return confirm( _("Are you sure you want to delete the list ") + list + "?" );
16     }
17 //]]>
18 </script>
19
20 </head>
21
22 <body>
23 [% INCLUDE 'header.inc' %]
24 [% INCLUDE 'cat-search.inc' %]
25 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Patron lists</div>
26
27 <div class="yui-t7">
28     <div class="yui-main">
29         <h1>Your patron lists</h1>
30
31         <div class="btn-group">
32             <a class="btn btn-small" href="add-modify.pl"><i class="icon-plus"></i> New patron list</a>
33         </div>
34
35         <table id="patron-lists-table">
36             <thead>
37                 <tr>
38                     <th>Name</th>
39                     <th>Patrons in list</th>
40                     <th>&nbsp;</th>
41                     <th>&nbsp;</th>
42                     <th>&nbsp;</th>
43                 </tr>
44             </thead>
45
46             <tbody>
47                 [% FOREACH l IN lists %]
48                     <tr>
49                         <td>[% l.name %]</td>
50                         <td>[% l.patron_list_patrons.size || 0 %]</td>
51                         <td>
52                             <a class="btn" href="list.pl?patron_list_id=[% l.patron_list_id %]">
53                                 <i class="icon-plus-sign"></i> Add patrons <i class="icon-user"></i>
54                             </a>
55                         </td>
56                         <td>
57                             <a class="btn" href="add-modify.pl?patron_list_id=[% l.patron_list_id %]">
58                                 <i class="icon-edit"></i> Edit
59                             </a>
60                         </td>
61                         <td>
62                             <a class="btn" href="delete.pl?patron_list_id=[% l.patron_list_id %]" onclick='return ConfirmDelete("[% l.name | html %]")'>
63                                 <i class="icon-trash"></i> Delete
64                             </a>
65                         </td>
66                     </tr>
67                 [% END %]
68             </tbody>
69         </table>
70     </div>
71 </div>
72 [% INCLUDE 'intranet-bottom.inc' %]