Bug 15213 - fix buttons on patron lists
[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             "autoWidth": false,
13             "aoColumnDefs": [
14                 { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
15             ],
16             "sPaginationType": "four_button"
17         } ));
18     });
19
20     function ConfirmDelete( list ) {
21         return confirm( _("Are you sure you want to delete the list %s?").format(list) );
22     }
23 //]]>
24 </script>
25
26 </head>
27
28 <body id="patlist_lists" class="pat patlist">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'cat-search.inc' %]
31 <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>
32
33 <div class="yui-t7">
34     <div class="yui-main">
35         <h1>Your patron lists</h1>
36
37         <div class="btn-group">
38             <a class="btn btn-small" href="add-modify.pl"><i class="fa fa-plus"></i> New patron list</a>
39         </div>
40
41         <table id="patron-lists-table">
42             <thead>
43                 <tr>
44                     <th>Name</th>
45                     <th>Patrons in list</th>
46                     <th>&nbsp;</th>
47                     <th>&nbsp;</th>
48                     <th>&nbsp;</th>
49                 </tr>
50             </thead>
51
52             <tbody>
53                 [% FOREACH l IN lists %]
54                     <tr>
55                         <td>[% l.name %]</td>
56                         <td>[% l.patron_list_patrons_rs.count || 0 %]</td>
57                         <td>
58                             <a class="btn btn-mini" href="list.pl?patron_list_id=[% l.patron_list_id %]">
59                                 <i class="fa fa-plus-sign"></i> Add patrons <i class="fa fa-user"></i>
60                             </a>
61                         </td>
62                         <td>
63                             <a class="btn btn-mini" href="add-modify.pl?patron_list_id=[% l.patron_list_id %]">
64                                 <i class="fa fa-edit"></i> Edit
65                             </a>
66                         </td>
67                         <td>
68                             <a class="btn btn-mini" href="delete.pl?patron_list_id=[% l.patron_list_id %]" onclick='return ConfirmDelete("[% l.name | html %]")'>
69                                 <i class="fa fa-trash"></i> Delete
70                             </a>
71                         </td>
72                     </tr>
73                 [% END %]
74             </tbody>
75         </table>
76     </div>
77 </div>
78 [% INCLUDE 'intranet-bottom.inc' %]