1 <table id="clubs-table" class="selections-table">
7 [% UNLESS destination == 'holds' %]
8 <th>Public enrollment</th>
9 <th>Email required</th>
14 <th>Enrolled patrons</th>
15 [% UNLESS destination == 'holds' %]
21 [% FOREACH c IN clubs %]
22 [% IF destination == 'holds' %]
24 [% SET data_url = "/cgi-bin/koha/reserve/request.pl?club=" _ c.id _ "&multi_hold=1&biblionumbers=" _ biblionumbers %]
26 [% SET data_url = "/cgi-bin/koha/reserve/request.pl?club=" _ c.id _ "&biblionumber=" _ biblionumber %]
28 <tr class="clickable" data-url="[% data_url | html %]">
32 <td><a href="[% data_url | url %]">[% c.name | html %]</a></td>
33 <td>[% c.club_template.name | html %]</td>
34 <td>[% c.description | html %]</td>
35 [% UNLESS destination == 'holds' %]
37 [% IF c.club_template.is_enrollable_from_opac %]
44 [% IF c.club_template.is_email_required %]
51 <td>[% Branches.GetName( c.branchcode ) | html %]</td>
54 [% c.date_start | $KohaDates %]
59 [% c.date_end | $KohaDates %]
63 [% c.club_enrollments.count | html %]
65 [% UNLESS destination == 'holds' %]
67 <div class="dropdown">
68 <a class="btn btn-default btn-xs dropdown-toggle" id="clubactions[% c.id | html %]" role="button" data-toggle="dropdown" href="#">
69 Actions <b class="caret"></b>
71 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="clubactions[% c.id | html %]">
72 [% IF ( c.club_enrollments.count ) %]
74 <a href="club-enrollments.pl?id=[% c.id | uri %]">
75 <i class="fa fa-list-ul"></i> Enrollments
80 <a href="#" data-toggle="tooltip" data-placement="left" title="There are no enrollments for this club yet">
81 <i class="fa fa-list-ul"></i> Enrollments
85 [% IF CAN_user_clubs_edit_clubs %]
87 <a href="clubs-add-modify.pl?id=[% c.id | uri %]">
88 <i class="fa fa-pencil"></i> Edit
92 <a href="#" class="delete_club" data-id="[% c.id | html %]" data-name="[% c.name | html %]">
93 <i class="fa fa-trash"></i> Delete
97 [% IF ( c.club_enrollments.count ) %]
99 <a href="#" class="club_hold_search" data-id="[% c.id | html %]">
100 <i class="fa fa-search"></i> Search to hold
111 </table> <!-- /.clubs-table -->