7 [% PROCESS 'i18n.inc' %]
9 [% INCLUDE 'doc-head-open.inc' %]
10 <title>[% FILTER collapse %]
11 [% tx("Club enrollments for {club_name}", { club_name = club.name }) | html %] ›
12 [% t("Patron clubs") | html %] ›
13 [% t("Tools") | html %] ›
14 [% t("Koha") | html %]
16 [% INCLUDE 'doc-head-close.inc' %]
19 <body id="club_enrollments" class="clubs">
20 [% WRAPPER 'header.inc' %]
21 [% INCLUDE 'cat-search.inc' %]
24 [% WRAPPER 'sub-header.inc' %]
25 [% WRAPPER breadcrumbs %]
26 [% WRAPPER breadcrumb_item %]
27 <a href="/cgi-bin/koha/tools/tools-home.pl">Tools</a>
29 [% WRAPPER breadcrumb_item %]
30 <a href="clubs.pl">Patron clubs</a>
32 [% WRAPPER breadcrumb_item bc_active= 1 %]
33 <span>Club enrollments for [% club.name | html | $HtmlTags tag="em" %]</span>
35 [% END #/ WRAPPER breadcrumbs %]
36 [% END #/ WRAPPER sub-header.inc %]
38 <div class="main container-fluid">
40 <div class="col-sm-10 col-sm-push-2">
43 <div class="dialog message">The club you requested does not exist.</div>
45 <h1>Club enrollments for [% club.name | html | $HtmlTags tag="em" %]</h1>
47 <div class="page-section">
48 <table id="enrollments-table">
53 [% FOREACH club_template_enrollment_field IN club.club_template.club_template_enrollment_fields %]
54 <th>[% club_template_enrollment_field.name | html %] </th>
60 [% FOREACH e IN club.club_enrollments %]
61 [% SET p = e.patron %]
64 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% p.id | uri %]">[% p.surname | html %], [% p.firstname | html %]</a>
67 [% p.cardnumber | html %]
69 [% IF club_enrollment_fields %]
70 [% FOREACH club_enrollment_field IN club_enrollment_fields %]
71 [% IF e.id == club_enrollment_field.club_enrollment_id %]
72 [% FOREACH club_template_enrollment_field IN club.club_template.club_template_enrollment_fields %]
73 [% IF club_enrollment_field.club_template_enrollment_field_id == club_template_enrollment_field.id %]
74 [% IF club_template_enrollment_field.authorised_value_category %]
75 [% FOREACH a IN AuthorisedValues.Get( club_template_enrollment_field.authorised_value_category ) %]
76 [% IF a.authorised_value == club_enrollment_field.value %]
77 [% SET club_enrollment_field.value = a.lib %]
81 <td>[% club_enrollment_field.value | html %]</td>
91 </div> <!-- /.page-section -->
95 </div> <!-- /.col-sm-10.col-sm-push-2 -->
97 <div class="col-sm-2 col-sm-pull-10">
99 [% INCLUDE 'tools-menu.inc' %]
101 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
102 </div> <!-- /.row -->
104 [% MACRO jsinclude BLOCK %]
105 [% INCLUDE 'datatables.inc' %]
106 [% Asset.js("js/tools-menu.js") | $raw %]
108 $(document).ready(function() {
109 eTable = $('#enrollments-table').dataTable($.extend(true, {}, dataTablesDefaults, {
110 "sPaginationType": "full",
111 "sDom": 'C<"top pager"ilpf><"#filter_c">tr<"bottom pager"ip>',
113 { "aTargets": [ -1, -2 ], "bSortable": false, "bSearchable": false },
120 [% INCLUDE 'intranet-bottom.inc' %]