]> git.koha-community.org Git - koha.git/blob - koha-tmpl/intranet-tmpl/prog/en/modules/clubs/club-enrollments.tt
Bug 21467: (QA follow-up) Fix filter and variable declaration in .t
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / clubs / club-enrollments.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% USE Branches %]
5 [% USE Koha %]
6 [% SET footerjs = 1 %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Koha &rsaquo; Tools &rsaquo; Patron clubs &rsaquo; Club enrollments</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 [% Asset.css("css/datatables.css") | $raw %]
11 </head>
12
13 <body id="club_enrollments" class="clubs">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'cat-search.inc' %]
16 <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; <a href="clubs.pl">Patron clubs</a> &rsaquo; Club enrollments</div>
17
18 <div class="main container-fluid">
19     <div class="row">
20         <div class="col-sm-10 col-sm-push-2">
21             <main>
22
23                 <h1>Club enrollments for <i>[% club.name | html %]</i></h1>
24
25                 <table id="enrollments-table">
26                     <thead>
27                         <tr>
28                             <th>Name</th>
29                             <th>Card number</th>
30                         </tr>
31                     </thead>
32
33                     <tbody>
34                         [% FOREACH e IN club.club_enrollments %]
35                             [% SET p = e.patron %]
36                             <tr>
37                                 <td>
38                                     <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% p.id | uri %]">[% p.surname | html %], [% p.firstname | html %]</a>
39                                 </td>
40                                 <td>
41                                     [% p.cardnumber | html %]
42                                 </td>
43                             </tr>
44                         [% END %]
45                     </tbody>
46                 </table>
47
48             </main>
49         </div> <!-- /.col-sm-10.col-sm-push-2 -->
50
51         <div class="col-sm-2 col-sm-pull-10">
52             <aside>
53                 [% INCLUDE 'tools-menu.inc' %]
54             </aside>
55         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
56      </div> <!-- /.row -->
57
58 [% MACRO jsinclude BLOCK %]
59     [% INCLUDE 'datatables.inc' %]
60     [% Asset.js("js/tools-menu.js") | $raw %]
61     <script>
62         $(document).ready(function() {
63             eTable = $('#enrollments-table').dataTable($.extend(true, {}, dataTablesDefaults, {
64                 "sPaginationType": "four_button",
65                 "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
66                 "aoColumnDefs": [
67                         { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
68                 ]
69             } ));
70         });
71     </script>
72 [% END %]
73
74 [% INCLUDE 'intranet-bottom.inc' %]