Bug 30952: Staff interface redesign (header)
[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>Club enrollments &rsaquo; Patron clubs &rsaquo; Tools &rsaquo; Koha</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10 </head>
11
12 <body id="club_enrollments" class="clubs">
13 [% WRAPPER 'header.inc' %]
14     [% INCLUDE 'cat-search.inc' %]
15 [% END %]
16
17 [% WRAPPER 'sub-header.inc' %]
18 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
19     <ol>
20         <li>
21             <a href="/cgi-bin/koha/mainpage.pl"><i class="fa fa-home"></i></a>
22         </li>
23         <li>
24             <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
25         </li>
26         <li>
27             <a href="clubs.pl">Patron clubs</a>
28         </li>
29         <li>
30             <a href="#" aria-current="page">
31                 Club enrollments
32             </a>
33         </li>
34     </ol>
35 </nav>
36 [% END %]
37
38 <div class="main container-fluid">
39     <div class="row">
40         <div class="col-sm-10 col-sm-push-2">
41             <main>
42                 [% IF !club %]
43                 <div class="dialog message">The club you requested does not exist.</div>
44                 [% ELSE %]
45                 <h1>Club enrollments for <em>[% club.name | html %]</em></h1>
46
47                 <table id="enrollments-table">
48                     <thead>
49                         <tr>
50                             <th>Name</th>
51                             <th>Card number</th>
52                         </tr>
53                     </thead>
54
55                     <tbody>
56                         [% FOREACH e IN club.club_enrollments %]
57                             [% SET p = e.patron %]
58                             <tr>
59                                 <td>
60                                     <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% p.id | uri %]">[% p.surname | html %], [% p.firstname | html %]</a>
61                                 </td>
62                                 <td>
63                                     [% p.cardnumber | html %]
64                                 </td>
65                             </tr>
66                         [% END %]
67                     </tbody>
68                 </table>
69                 [% END %]
70
71             </main>
72         </div> <!-- /.col-sm-10.col-sm-push-2 -->
73
74         <div class="col-sm-2 col-sm-pull-10">
75             <aside>
76                 [% INCLUDE 'tools-menu.inc' %]
77             </aside>
78         </div> <!-- /.col-sm-2.col-sm-pull-10 -->
79      </div> <!-- /.row -->
80
81 [% MACRO jsinclude BLOCK %]
82     [% INCLUDE 'datatables.inc' %]
83     [% Asset.js("js/tools-menu.js") | $raw %]
84     <script>
85         $(document).ready(function() {
86             eTable = $('#enrollments-table').dataTable($.extend(true, {}, dataTablesDefaults, {
87                 "sPaginationType": "full",
88                 "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
89                 "aoColumnDefs": [
90                         { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
91                 ]
92             } ));
93         });
94     </script>
95 [% END %]
96
97 [% INCLUDE 'intranet-bottom.inc' %]