Bug 31516: Add error message for viewing enrollments for a non-existent club
To test:
1) Go to non-existent club's enrollment page, e.g.
http://localhost:8081/cgi-bin/koha/clubs/club-enrollments.pl?id=1010101001000
2) Notice the not fully filled header text and empty table
3) Apply patch and revisit the page to see the proper error message given
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit c757abd675)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
0c91e94999
commit
0de714bbad
|
|
@ -36,7 +36,9 @@
|
|||
<div class="row">
|
||||
<div class="col-sm-10 col-sm-push-2">
|
||||
<main>
|
||||
|
||||
[% IF !club %]
|
||||
<div class="dialog message">The club you requested does not exist.</div>
|
||||
[% ELSE %]
|
||||
<h1>Club enrollments for <em>[% club.name | html %]</em></h1>
|
||||
|
||||
<table id="enrollments-table">
|
||||
|
|
@ -61,6 +63,7 @@
|
|||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
[% END %]
|
||||
|
||||
</main>
|
||||
</div> <!-- /.col-sm-10.col-sm-push-2 -->
|
||||
|
|
|
|||
Loading…
Reference in New Issue