1 [% IF destination == 'holds' %]
2 <table id="clubs-table" class="selections-table">
4 <table id="clubs-table">
11 [% UNLESS destination == 'holds' %]
12 <th>Public enrollment</th>
13 <th>Email required</th>
18 <th>Enrolled patrons</th>
19 [% UNLESS destination == 'holds' %]
25 [% FOREACH c IN clubs %]
26 [% IF destination == 'holds' %]
28 [% SET data_url = "/cgi-bin/koha/reserve/request.pl?club=" _ c.id _ "&multi_hold=1&biblionumbers=" _ biblionumbers %]
30 [% SET data_url = "/cgi-bin/koha/reserve/request.pl?club=" _ c.id _ "&biblionumber=" _ biblionumber %]
32 <tr class="clickable" data-url="[% data_url | html %]">
33 <td><a href="[% data_url | url %]">[% c.name | html %]</a></td>
36 <td>[% c.name | html %]</td>
38 <td>[% c.club_template.name | html %]</td>
39 <td>[% c.description | html %]</td>
40 [% UNLESS destination == 'holds' %]
42 [% IF c.club_template.is_enrollable_from_opac %]
49 [% IF c.club_template.is_email_required %]
56 <td>[% Branches.GetName( c.branchcode ) | html %]</td>
59 [% c.date_start | $KohaDates %]
64 [% c.date_end | $KohaDates %]
68 [% c.club_enrollments.count | html %]
70 [% UNLESS destination == 'holds' %]
72 <div class="btn-group dropup">
73 <a class="btn btn-default btn-xs dropdown-toggle" id="clubactions[% c.id | html %]" role="button" data-toggle="dropdown" href="#">
74 Actions <b class="caret"></b>
76 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="clubactions[% c.id | html %]">
77 [% IF ( c.club_enrollments.count ) %]
79 <a href="club-enrollments.pl?id=[% c.id | uri %]">
80 <i class="fa fa-list-ul"></i> Enrollments
85 <a href="#" data-toggle="tooltip" data-placement="left" title="There are no enrollments for this club yet">
86 <i class="fa fa-list-ul"></i> Enrollments
90 [% IF CAN_user_clubs_edit_clubs %]
92 <a href="clubs-add-modify.pl?id=[% c.id | uri %]">
93 <i class="fa fa-pencil"></i> Edit
97 <a href="#" class="delete_club" data-id="[% c.id | html %]" data-name="[% c.name | html %]">
98 <i class="fa fa-trash"></i> Delete
102 [% IF ( c.club_enrollments.count ) %]
104 <a href="#" class="club_hold_search" data-id="[% c.id | html %]">
105 <i class="fa fa-search"></i> Search to hold
116 </table> <!-- /.clubs-table -->