Bug 37264

Summary: Fix delete button on staff interface's suggestion detail page
Product: Koha Reporter: Owen Leonard <oleonard>
Component: TemplatesAssignee: Owen Leonard <oleonard>
Status: Needs documenting --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: fridolin.somers, lucas, phil
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
24.11.00,24.05.06
Circulation function:
Bug Depends on: 34478    
Bug Blocks:    
Attachments: Bug 37264: Fix delete button on staff interface's suggestion detail page
Bug 37264: Fix delete button on staff interface's suggestion detail page

Description Owen Leonard 2024-07-05 15:51:46 UTC
When viewing (not editing) a suggestion in the staff interface there is a "Delete" button in the toolbar. It needs some adjustments:

- Should not have the "btn-primary" class
- Should have a "deletesuggestion" class to trigger the confirmation
- Should not be wrapped in a <fieldset>
Comment 1 Owen Leonard 2024-07-05 16:01:59 UTC
Created attachment 168558 [details] [review]
Bug 37264: Fix delete button on staff interface's suggestion detail page

This patch makes a few minor changes to the suggestion detail page in
the staff interface so that the "Delete" button looks correct and works
correctly.

To test, apply the patch and go to Suggestions in the staff interface.

- If necessary, submit a suggestion. You need at least one.
- From the suggestions management page, click the title of a suggestion.
- At the top of this page should be two buttons, "Edit" and "Delete."
  They should be styled consistently with each other.
- Clicking the "Delete" button should trigger a JavaScript confirmation
  dialog. Confirming should result in the suggestion being deleted.

Sponsored-by: Athens County Public Libraries
Comment 2 Phil Ringnalda 2024-07-05 17:39:16 UTC
Created attachment 168561 [details] [review]
Bug 37264: Fix delete button on staff interface's suggestion detail page

This patch makes a few minor changes to the suggestion detail page in
the staff interface so that the "Delete" button looks correct and works
correctly.

To test, apply the patch and go to Suggestions in the staff interface.

- If necessary, submit a suggestion. You need at least one.
- From the suggestions management page, click the title of a suggestion.
- At the top of this page should be two buttons, "Edit" and "Delete."
  They should be styled consistently with each other.
- Clicking the "Delete" button should trigger a JavaScript confirmation
  dialog. Confirming should result in the suggestion being deleted.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Phil Ringnalda <phil@chetcolibrary.org>
Comment 3 Katrin Fischer 2024-07-09 12:42:21 UTC
Picked from QA queue to push to main.
Comment 4 Katrin Fischer 2024-07-09 12:57:05 UTC
Pushed for 24.11!

Well done everyone, thank you!
Comment 5 Lucas Gass (lukeg) 2024-11-18 17:59:38 UTC
Backported to 24.05.x for upcoming 24.05.06
Comment 6 Fridolin Somers 2024-12-06 07:56:11 UTC
Not for 23.11.x