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' %]
27 [% SET data_url = "/cgi-bin/koha/reserve/request.pl?club=" _ c.id %]
28 [% FOREACH biblionumber IN biblionumbers %]
29 [% SET data_url = data_url _ "&biblionumber=" _ biblionumber %]
32 [% SET data_url = data_url _ "&multi_hold=1" %]
34 <tr class="clickable" data-url="[% data_url | html %]">
35 <td><a href="[% data_url | url %]">[% c.name | html %]</a></td>
38 <td>[% c.name | html %]</td>
40 <td>[% c.club_template.name | html %]</td>
41 <td>[% c.description | html %]</td>
42 [% UNLESS destination == 'holds' %]
44 [% IF c.club_template.is_enrollable_from_opac %]
51 [% IF c.club_template.is_email_required %]
58 <td>[% Branches.GetName( c.branchcode ) | html %]</td>
61 [% c.date_start | $KohaDates %]
66 [% c.date_end | $KohaDates %]
70 [% c.club_enrollments.count | html %]
72 [% UNLESS destination == 'holds' %]
74 <div class="btn-group dropup">
75 <a class="btn btn-default btn-xs dropdown-toggle" id="clubactions[% c.id | html %]" role="button" data-toggle="dropdown" href="#">
76 Actions <b class="caret"></b>
78 <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="clubactions[% c.id | html %]">
79 [% IF ( c.club_enrollments.count ) %]
81 <a href="club-enrollments.pl?id=[% c.id | uri %]">
82 <i class="fa fa-list-ul"></i> Enrollments
87 <a href="#" data-toggle="tooltip" data-placement="left" title="There are no enrollments for this club yet">
88 <i class="fa fa-list-ul"></i> Enrollments
92 [% IF CAN_user_clubs_edit_clubs %]
94 <a href="clubs-add-modify.pl?id=[% c.id | uri %]">
95 <i class="fa fa-pencil"></i> Edit
99 <a href="#" class="delete_club" data-id="[% c.id | html %]" data-name="[% c.name | html %]">
100 <i class="fa fa-trash"></i> Delete
104 [% IF ( c.club_enrollments.count ) %]
106 <a href="#" class="club_hold_search" data-id="[% c.id | html %]">
107 <i class="fa fa-search"></i> Search to hold
118 </table> <!-- /.clubs-table -->