Bug 19275: clubs table broken at the opac if public enrollment is not allowed
Test Plan: 1. Create a template club and disable public enrollment 2. Create a club and add it a patron 3. login at the opac with this patron 4. Note the borked clubs table 5. Apply this patch 6. Refresh the page 7. Table is fixed! Signed-off-by: Owen Leonard <oleonard@myacpl.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
2aba85d811
commit
5c45b2d69b
|
|
@ -20,13 +20,13 @@
|
|||
<td>[% e.club.name %]</td>
|
||||
<td>[% e.club.description %]</td>
|
||||
<td>[% e.date_enrolled | $KohaDates %]</td>
|
||||
[% IF e.club.club_template.is_enrollable_from_opac %]
|
||||
<td>
|
||||
<td>
|
||||
[% IF e.club.club_template.is_enrollable_from_opac %]
|
||||
<button class="btn btn-xs btn-default" onclick="cancelEnrollment( [% e.id %] )">
|
||||
<i class="icon-remove"></i> Cancel enrollment
|
||||
</button>
|
||||
</td>
|
||||
[% END %]
|
||||
[% END %]
|
||||
</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
|
|
|
|||
Loading…
Reference in New Issue