Bug 7720: add options for controlling display of an item's home and/or holdings location
[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         } ));
16     });
17
18     function ConfirmDelete( list ) {
19         return confirm( _("Are you sure you want to delete the list %s?").format(list) );
20     }
21 //]]>
22 </script>
23
24 </head>
25
26 <body>
27 [% INCLUDE 'header.inc' %]
28 [% INCLUDE 'cat-search.inc' %]
29 <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>
30
31 <div class="yui-t7">
32     <div class="yui-main">
33         <h1>Your patron lists</h1>
34
35         <div class="btn-group">
36             <a class="btn btn-small" href="add-modify.pl"><i class="icon-plus"></i> New patron list</a>
37         </div>
38
39         <table id="patron-lists-table">
40             <thead>
41                 <tr>
42                     <th>Name</th>
43                     <th>Patrons in list</th>
44                     <th>&nbsp;</th>
45                     <th>&nbsp;</th>
46                     <th>&nbsp;</th>
47                 </tr>
48             </thead>
49
50             <tbody>
51                 [% FOREACH l IN lists %]
52                     <tr>
53                         <td>[% l.name %]</td>
54                         <td>[% l.patron_list_patrons.size || 0 %]</td>
55                         <td>
56                             <a class="btn btn-mini" href="list.pl?patron_list_id=[% l.patron_list_id %]">
57                                 <i class="icon-plus-sign"></i> Add patrons <i class="icon-user"></i>
58                             </a>
59                         </td>
60                         <td>
61                             <a class="btn btn-mini" href="add-modify.pl?patron_list_id=[% l.patron_list_id %]">
62                                 <i class="icon-edit"></i> Edit
63                             </a>
64                         </td>
65                         <td>
66                             <a class="btn btn-mini" href="delete.pl?patron_list_id=[% l.patron_list_id %]" onclick='return ConfirmDelete("[% l.name | html %]")'>
67                                 <i class="icon-trash"></i> Delete
68                             </a>
69                         </td>
70                     </tr>
71                 [% END %]
72             </tbody>
73         </table>
74     </div>
75 </div>
76 [% INCLUDE 'intranet-bottom.inc' %]