Bug 24736: Disable "Enrollments" link if nobody enrolled to the club yet

The link is disabled but it's possible to click and access the page
anyway.

Test plan:
- Create a new club template
- Create a new club
- Click the Actions > Enrollments link
=> Without this patch you can access the page
=> With this patch applied you cannot, and a tooltip explains why (feel
free to suggest another wording)
- Add a new patron to this club (from /cgi-bin/koha/opac-user.pl#opac-user-clubs)
- Notice that the action link is not enabled and click takes you to the
list of enrollments

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-02-26 17:46:49 +01:00 committed by Martin Renvoize
parent 729200ae57
commit 886dd6b3be
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@
</li>
[% ELSE %]
<li class="disabled">
<a href="club-enrollments.pl?id=[% c.id | uri %]">
<a href="#" data-toggle="tooltip" data-placement="left" title="Nobody enrolled for this club yet">
<i class="fa fa-list-ul"></i> Enrollments
</a>
</li>
@ -108,4 +108,4 @@
</tr>
[% END %]
</tbody>
</table> <!-- /.clubs-table -->
</table> <!-- /.clubs-table -->