[Bug 42097] New: Add link to create new club from list of club templates
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 Bug ID: 42097 Summary: Add link to create new club from list of club templates Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Tools Assignee: oleonard@myacpl.org Reporter: oleonard@myacpl.org QA Contact: testopia@bugs.koha-community.org To create a new club you have to choose the club template from a (potentially) long list of club templates. I think it would be useful to also offer the option of creating a new club directly from the club templates actions. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 --- Comment #1 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 195346 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195346&action=edit Bug 42097: Add link to create new club from list of club templates This patch adds a "New club" button to the list of club templates. This makes it easy to create a new club using any of the templates in the list. To test, apply the patch and go to Tools -> Patron clubs. - Create a club template if necessary. - On the patron clubs main page, in the list of club templates, there should be an "Actions" menu in the last table cell. - Now alongside "Edit" and "Delete" you should see "New club" - Choosing "New club" should take you to the new club form with the heading "Create a new [you template name] club" - The permissions around the "Edit" and "Delete" controls haven't changed, but the "New club" control depends on the user having CAN_user_clubs_edit_clubs permission. - Test as a user without CAN_user_clubs_edit_clubs permission to confirm that the "New club" control is omitted. - Test as a user with only CAN_user_clubs_edit_clubs permission to confirm that the edit and delete buttons are missing. - Test as a user with only CAN_user_clubs_enroll permission. There should be no actions column in the table of club templates. Sponsored-by: Athens County Public Libraries -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #195346|0 |1 is obsolete| | --- Comment #2 from David Nind <david@davidnind.com> --- Created attachment 195363 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195363&action=edit Bug 42097: Add link to create new club from list of club templates This patch adds a "New club" button to the list of club templates. This makes it easy to create a new club using any of the templates in the list. To test, apply the patch and go to Tools -> Patron clubs. - Create a club template if necessary. - On the patron clubs main page, in the list of club templates, there should be an "Actions" menu in the last table cell. - Now alongside "Edit" and "Delete" you should see "New club" - Choosing "New club" should take you to the new club form with the heading "Create a new [you template name] club" - The permissions around the "Edit" and "Delete" controls haven't changed, but the "New club" control depends on the user having CAN_user_clubs_edit_clubs permission. - Test as a user without CAN_user_clubs_edit_clubs permission to confirm that the "New club" control is omitted. - Test as a user with only CAN_user_clubs_edit_clubs permission to confirm that the edit and delete buttons are missing. - Test as a user with only CAN_user_clubs_enroll permission. There should be no actions column in the table of club templates. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind <david@davidnind.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com Text to go in the| |This enhancement changes release notes| |the actions for patron club | |templates (Tools > Patrons | |> Patron clubs > Club | |templates) so that: | |- there is a new action to | |create club directly from | |the club templates actions | |(New club) | |- the actions are now in a | |dropdown list (the same as | |the clubs section) | | | |This makes it easy to | |create a new club directly | |from the list of templates. Status|Needs Signoff |Signed Off --- Comment #3 from David Nind <david@davidnind.com> --- Testing notes (using KTD): 1. Go to Tools > Patrons > Patron clubs > New club template 2. Permissions: - I used Henry Acevedo: . changed username and password so you can log in as Henry - Added these permissions: . Staff access, allows viewing of catalogue in staff interface (catalogue) . Patron clubs (clubs) ==> Can add, edit, and delete clubs like a superlibrarian - Changed the club permissions to work through the combination of options in the test plan: . Create and edit clubs (edit_clubs) (CAN_user_clubs_edit_clubs) . Create and edit club templates (edit_templates) . Enroll patrons in clubs (enroll) (CAN_user_clubs_enroll) -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |Laura.escamilla@bywatersolu |y.org |tions.com Sponsorship status|--- |Sponsored Status|Signed Off |Passed QA Comma delimited| |Athens County Public list of Sponsors| |Libraries -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 Laura Escamilla <Laura.escamilla@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #195363|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 --- Comment #4 from Laura Escamilla <Laura.escamilla@bywatersolutions.com> --- Created attachment 204561 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=204561&action=edit Bug 42097: Add link to create new club from list of club templates This patch adds a "New club" button to the list of club templates. This makes it easy to create a new club using any of the templates in the list. To test, apply the patch and go to Tools -> Patron clubs. - Create a club template if necessary. - On the patron clubs main page, in the list of club templates, there should be an "Actions" menu in the last table cell. - Now alongside "Edit" and "Delete" you should see "New club" - Choosing "New club" should take you to the new club form with the heading "Create a new [you template name] club" - The permissions around the "Edit" and "Delete" controls haven't changed, but the "New club" control depends on the user having CAN_user_clubs_edit_clubs permission. - Test as a user without CAN_user_clubs_edit_clubs permission to confirm that the "New club" control is omitted. - Test as a user with only CAN_user_clubs_edit_clubs permission to confirm that the edit and delete buttons are missing. - Test as a user with only CAN_user_clubs_enroll permission. There should be no actions column in the table of club templates. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pedro.amorim@openfifth.co.u | |k --- Comment #5 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Hi all, not a blocker but in the club templates loop the dropdown id uses c.id instead of t.id (template_actions_[% c.id | html %], also in aria-labelledby), so every row renders id="template_actions_". Nothing breaks since the dropdown doesn't rely on the id, but could you add a quick follow-up switching it to t.id? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)| |26.11.00 released in| | Status|Passed QA |Pushed to main -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 --- Comment #6 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Thanks everyone! Pushed to main for 26.11! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 --- Comment #7 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 207823 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207823&action=edit Bug 42097: (QA follow-up) Correct template variable name in dropdown Signed-off-by: Owen Leonard <oleonard@myacpl.org> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 --- Comment #8 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- (In reply to Owen Leonard from comment #7)
Created attachment 207823 [details] [review] Bug 42097: (QA follow-up) Correct template variable name in dropdown
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Follow-up pushed. Thanks! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com Status|Pushed to main |Needs documenting --- Comment #9 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Enhancement, no 26.05.x backport. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|This enhancement changes |Tools > Patron clubs now release notes|the actions for patron club |has a "New club" action in |templates (Tools > Patrons |the Actions menu of each |> Patron clubs > Club |club template, so a club |templates) so that: |can be created directly |- there is a new action to |from a template. The |create club directly from |template actions (Edit, |the club templates actions |Delete and New club) are |(New club) |now in a dropdown menu, |- the actions are now in a |like the actions for clubs. |dropdown list (the same as | |the clubs section) |"New club" needs the `clubs | |> edit_clubs` permission. |This makes it easy to |Users without it do not see |create a new club directly |the New club action. The |from the list of templates. |Actions column is shown | |only to users who can edit | |templates or clubs. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the|Tools > Patron clubs now |This enhancement changes release notes|has a "New club" action in |the actions for patron club |the Actions menu of each |templates (Tools > Patrons |club template, so a club |> Patron clubs > Club |can be created directly |templates) so that: |from a template. The |- there is a new action to |template actions (Edit, |create club directly from |Delete and New club) are |the club templates actions |now in a dropdown menu, |(New club) |like the actions for clubs. |- the actions are now in a | |dropdown list (the same as |"New club" needs the `clubs |the clubs section) |> edit_clubs` permission. | |Users without it do not see |This makes it easy to |the New club action. The |create a new club directly |Actions column is shown |from the list of templates. |only to users who can edit | |templates or clubs. | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42097 --- Comment #10 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Hello, On 18 November I ran a bulk update of the "Text to go in release notes" field on bugs in the 26.11 range, to fill in missing notes using a consistent template. A mistake in that run also overwrote the release note you had written on this bug. That was not intended, and I am sorry for the noise. I have restored your original text from the bug history, so the field is exactly as you wrote it. Nothing else on this bug was changed. Thank you for writing the note. Martin -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org