Bug 13618: Remove html filters at the intranet
[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 [% INCLUDE 'greybox.inc' %]
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, -4 ], "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                     <th>&nbsp;</th>
50                 </tr>
51             </thead>
52
53             <tbody>
54                 [% FOREACH l IN lists %]
55                     <tr>
56                         <td>[% l.name %]</td>
57                         <td>[% l.patron_list_patrons_rs.count || 0 %]</td>
58                         <td>
59                             <a class="btn btn-mini" href="list.pl?patron_list_id=[% l.patron_list_id %]">
60                                 <i class="fa fa-plus-sign"></i> Add patrons <i class="fa fa-user"></i>
61                             </a>
62                         </td>
63                         <td>
64                             <a class="btn btn-mini" href="add-modify.pl?patron_list_id=[% l.patron_list_id %]">
65                                 <i class="fa fa-edit"></i> Edit
66                             </a>
67                         </td>
68                         <td>
69                             <a class="btn btn-mini" href="delete.pl?patron_list_id=[% l.patron_list_id %]" onclick='return ConfirmDelete("[% l.name %]")'>
70                                 <i class="fa fa-trash"></i> Delete
71                             </a>
72                         </td>
73                         <td>
74                             <a class="btn btn-mini" href="#" onclick='GB_showCenter(_("Print patron cards from list"), "/cgi-bin/koha/patroncards/print.pl?patronlist_id=[% l.patron_list_id %]", 400, 800);return false;'>
75                                 <i class="icon-print"></i> Print patron cards
76                             </a>
77                         </td>
78                     </tr>
79                 [% END %]
80             </tbody>
81         </table>
82     </div>
83 </div>
84 [% INCLUDE 'intranet-bottom.inc' %]