Bug 10565: Add a "Patron List" feature for storing and manipulating collections of...
[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 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9
10 <script type="text/javascript">
11 //<![CDATA[
12     $(document).ready(function() {
13         $('#patron-lists-table').dataTable($.extend(true, {}, dataTablesDefaults));
14     });
15
16     function ConfirmDelete( list ) {
17         return confirm( _("Are you sure you want to delete the list ") + list + "?" );
18     }
19 //]]>
20 </script>
21
22 </head>
23
24 <body>
25 [% INCLUDE 'header.inc' %]
26 [% INCLUDE 'cat-search.inc' %]
27 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; Patron lists</div>
28
29 <div class="yui-t7">
30     <div class="yui-main">
31         <h1>Your patron lists</h1>
32
33         <div class="btn-group">
34             <a class="btn btn-small" href="add-modify.pl"><i class="icon-plus"></i> New patron list</a>
35         </div>
36
37         <table id="patron-lists-table">
38             <thead>
39                 <tr>
40                     <th>Name</th>
41                     <th>Patrons in list</th>
42                     <th>&nbsp;</th>
43                     <th>&nbsp;</th>
44                     <th>&nbsp;</th>
45                 </tr>
46             </thead>
47
48             <tbody>
49                 [% FOREACH l IN lists %]
50                     <tr>
51                         <td>[% l.name %]</td>
52                         <td>[% l.patron_list_patrons.size || 0 %]</td>
53                         <td>
54                             <a class="btn" href="list.pl?patron_list_id=[% l.patron_list_id %]">
55                                 <i class="icon-plus-sign"></i> Add patrons <i class="icon-user"></i>
56                             </a>
57                         </td>
58                         <td>
59                             <a class="btn" href="add-modify.pl?patron_list_id=[% l.patron_list_id %]">
60                                 <i class="icon-edit"></i> Edit
61                             </a>
62                         </td>
63                         <td>
64                             <a class="btn" href="delete.pl?patron_list_id=[% l.patron_list_id %]" onclick='return ConfirmDelete("[% l.name | html %]")'>
65                                 <i class="icon-trash"></i> Delete
66                             </a>
67                         </td>
68                     </tr>
69                 [% END %]
70             </tbody>
71         </table>
72     </div>
73 </div>
74 [% INCLUDE 'intranet-bottom.inc' %]