|
Lines 1-3
Link Here
|
|
|
1 |
[% USE KohaDates %] |
| 1 |
[% USE Branches %] |
2 |
[% USE Branches %] |
| 2 |
[% USE Koha %] |
3 |
[% USE Koha %] |
| 3 |
[% INCLUDE 'doc-head-open.inc' %] |
4 |
[% INCLUDE 'doc-head-open.inc' %] |
|
Lines 171-177
Link Here
|
| 171 |
[% IF CAN_user_clubs_edit_clubs %] |
172 |
[% IF CAN_user_clubs_edit_clubs %] |
| 172 |
<div class="btn-toolbar"> |
173 |
<div class="btn-toolbar"> |
| 173 |
<div class="btn-group"> |
174 |
<div class="btn-group"> |
| 174 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button> |
175 |
[% IF club_templates %] |
|
|
176 |
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button> |
| 177 |
[% ELSE %] |
| 178 |
<button disabled="disabled" class="btn btn-default dropdown-toggle" data-toggle="dropdown"><i class="fa fa-plus"></i> New club <span class="caret"></span></button> |
| 179 |
[% END %] |
| 175 |
<ul class="dropdown-menu"> |
180 |
<ul class="dropdown-menu"> |
| 176 |
[% FOREACH t IN club_templates %] |
181 |
[% FOREACH t IN club_templates %] |
| 177 |
<li><a href="/cgi-bin/koha/clubs/clubs-add-modify.pl?club_template_id=[% t.id %]">[% t.name %]</a></li> |
182 |
<li><a href="/cgi-bin/koha/clubs/clubs-add-modify.pl?club_template_id=[% t.id %]">[% t.name %]</a></li> |
|
Lines 190-195
Link Here
|
| 190 |
<th>Public enrollment</th> |
195 |
<th>Public enrollment</th> |
| 191 |
<th>Email required</th> |
196 |
<th>Email required</th> |
| 192 |
<th>Library</th> |
197 |
<th>Library</th> |
|
|
198 |
<th>Start date</th> |
| 199 |
<th>End date</th> |
| 200 |
<th>Enrolled patrons</th> |
| 193 |
<th> </th> |
201 |
<th> </th> |
| 194 |
<th> </th> |
202 |
<th> </th> |
| 195 |
</tr> |
203 |
</tr> |
|
Lines 218-223
Link Here
|
| 218 |
</td> |
226 |
</td> |
| 219 |
<td>[% Branches.GetName( c.branchcode ) %]</td> |
227 |
<td>[% Branches.GetName( c.branchcode ) %]</td> |
| 220 |
<td> |
228 |
<td> |
|
|
229 |
[% IF c.date_start %] |
| 230 |
[% c.date_start | $KohaDates %] |
| 231 |
[% END %] |
| 232 |
</td> |
| 233 |
<td> |
| 234 |
[% IF c.date_end %] |
| 235 |
[% c.date_end | $KohaDates %] |
| 236 |
[% END %] |
| 237 |
</td> |
| 238 |
<td> |
| 239 |
[% c.club_enrollments.count %] |
| 240 |
<a class="btn btn-xs" href="club-enrollments.pl?id=[% c.id %]"> |
| 241 |
View enrollments |
| 242 |
</a> |
| 243 |
</td> |
| 244 |
<td> |
| 221 |
[% IF CAN_user_clubs_edit_clubs %] |
245 |
[% IF CAN_user_clubs_edit_clubs %] |
| 222 |
<a class="btn btn-default" style="white-space:nowrap" href="clubs-add-modify.pl?id=[% c.id %]"> |
246 |
<a class="btn btn-default" style="white-space:nowrap" href="clubs-add-modify.pl?id=[% c.id %]"> |
| 223 |
<i class="fa fa-edit"></i> Edit |
247 |
<i class="fa fa-edit"></i> Edit |
|
Lines 236-242
Link Here
|
| 236 |
[% ELSE %] |
260 |
[% ELSE %] |
| 237 |
<tr> |
261 |
<tr> |
| 238 |
<td colspan="8"> |
262 |
<td colspan="8"> |
| 239 |
No club templates defined. |
263 |
No clubs defined. |
| 240 |
</td> |
264 |
</td> |
| 241 |
</td> |
265 |
</td> |
| 242 |
[% END %] |
266 |
[% END %] |