Bugzilla – Attachment 99664 Details for
Bug 24736
"Enrollments" not correctly disabled when nobody is enrolled to a club yet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24736: Disable "Enrollments" link if nobody enrolled to the club yet
Bug-24736-Disable-Enrollments-link-if-nobody-enrol.patch (text/plain), 1.88 KB, created by
Jonathan Druart
on 2020-02-26 16:50:02 UTC
(
hide
)
Description:
Bug 24736: Disable "Enrollments" link if nobody enrolled to the club yet
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-02-26 16:50:02 UTC
Size:
1.88 KB
patch
obsolete
>From 8f4785f458551d9cedd0524967c1d3d58f8e5346 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 26 Feb 2020 17:46:49 +0100 >Subject: [PATCH] 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 >--- > koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc >index 06869538aa..e6639c66ee 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/clubs-table.inc >@@ -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 --> >\ No newline at end of file >+</table> <!-- /.clubs-table --> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24736
:
99664
|
99672
|
99809
|
99810