| Summary: | Add link to create new club from list of club templates | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Owen Leonard <oleonard> |
| Component: | Tools | Assignee: | Owen Leonard <oleonard> |
| Status: | Signed Off --- | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | david |
| Version: | Main | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Crowdfunding committed: | 0 |
| Crowdfunding contact: | Patch complexity: | Trivial patch | |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: |
This enhancement changes 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.
|
Version(s) released in: | |
| Circulation function: | |||
| Attachments: |
Bug 42097: Add link to create new club from list of club templates
Bug 42097: Add link to create new club from list of club templates |
||
|
Description
Owen Leonard
2026-03-13 16:47:04 UTC
Created attachment 195346 [details] [review] 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 Created attachment 195363 [details] [review] 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> 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)
|