Bug 20689: (follow-up) Make it possible to add capital letter subfields to item searc...
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / clubs-table.inc
1 [% IF destination == 'holds' %]
2     <table id="clubs-table" class="selections-table">
3 [% ELSE %]
4     <table id="clubs-table">
5 [% END %]
6     <thead>
7         <tr>
8             <th>Name</th>
9             <th>Template</th>
10             <th>Description</th>
11             [% UNLESS destination == 'holds' %]
12                 <th>Public enrollment</th>
13                 <th>Email required</th>
14             [% END %]
15             <th>Library</th>
16             <th>Start date</th>
17             <th>End date</th>
18             <th>Enrolled patrons</th>
19             [% UNLESS destination == 'holds' %]
20                 <th>&nbsp;</th>
21             [% END %]
22         </tr>
23     </thead>
24     <tbody>
25         [% FOREACH c IN clubs %]
26             [% IF destination == 'holds' %]
27                 [% IF multi_hold %]
28                     [% SET data_url = "/cgi-bin/koha/reserve/request.pl?club=" _ c.id _ "&amp;multi_hold=1&amp;biblionumbers=" _ biblionumbers %]
29                 [% ELSE %]
30                     [% SET data_url = "/cgi-bin/koha/reserve/request.pl?club=" _ c.id _ "&amp;biblionumber=" _ biblionumber %]
31                 [% END %]
32                 <tr class="clickable" data-url="[% data_url | html %]">
33                     <td><a href="[% data_url | url %]">[% c.name | html %]</a></td>
34             [% ELSE %]
35                 <tr>
36                     <td>[% c.name | html %]</td>
37             [% END %]
38                 <td>[% c.club_template.name | html %]</td>
39                 <td>[% c.description | html %]</td>
40                 [% UNLESS destination == 'holds' %]
41                     <td>
42                         [% IF c.club_template.is_enrollable_from_opac %]
43                             Yes
44                         [% ELSE %]
45                             No
46                         [% END %]
47                     </td>
48                     <td>
49                         [% IF c.club_template.is_email_required %]
50                             Yes
51                         [% ELSE %]
52                             No
53                         [% END %]
54                     </td>
55                 [% END %]
56                 <td>[% Branches.GetName( c.branchcode ) | html %]</td>
57                 <td>
58                     [% IF c.date_start %]
59                         [% c.date_start | $KohaDates %]
60                     [% END %]
61                 </td>
62                 <td>
63                     [% IF c.date_end %]
64                         [% c.date_end | $KohaDates %]
65                     [% END %]
66                 </td>
67                 <td>
68                     [% c.club_enrollments.count | html %]
69                 </td>
70                 [% UNLESS destination == 'holds' %]
71                     <td class="actions">
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>
75                             </a>
76                             <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="clubactions[% c.id | html %]">
77                                 [% IF ( c.club_enrollments.count ) %]
78                                     <li>
79                                         <a href="club-enrollments.pl?id=[% c.id | uri %]">
80                                             <i class="fa fa-list-ul"></i> Enrollments
81                                         </a>
82                                     </li>
83                                 [% ELSE %]
84                                     <li class="disabled">
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
87                                         </a>
88                                     </li>
89                                 [% END %]
90                                 [% IF CAN_user_clubs_edit_clubs %]
91                                     <li>
92                                         <a href="clubs-add-modify.pl?id=[% c.id | uri %]">
93                                             <i class="fa fa-pencil"></i> Edit
94                                         </a>
95                                     </li>
96                                     <li>
97                                         <a href="#" class="delete_club" data-id="[% c.id | html %]" data-name="[% c.name | html %]">
98                                             <i class="fa fa-trash"></i> Delete
99                                         </a>
100                                     </li>
101                                 [% END %]
102                                 [% IF ( c.club_enrollments.count ) %]
103                                     <li>
104                                         <a href="#" class="club_hold_search" data-id="[% c.id | html %]">
105                                             <i class="fa fa-search"></i> Search to hold
106                                         </a>
107                                     </li>
108                                 [% END %]
109                             </ul>
110                         </div>
111                     </td>
112                 [% END %]
113             </tr>
114         [% END %]
115     </tbody>
116 </table> <!-- /.clubs-table -->