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>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 3f0bf0c1d8)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
6c9c5d6c14
commit
ddeb8aa16a
|
|
@ -100,11 +100,9 @@
|
|||
<a class="btn btn-default" id="editsuggestion" href="suggestion.pl?op=edit_form&suggestionid=[% suggestionid | html %]"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
|
||||
<form class="delete_form" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl">
|
||||
[% INCLUDE 'csrf-token.inc' %]
|
||||
<fieldset class="action">
|
||||
<input type="hidden" name="op" value="cud-delete" />
|
||||
<input type="hidden" name="suggestionid" value="[% suggestionid | html %]" />
|
||||
<button type="submit" class="btn btn-primary">Delete</button>
|
||||
</fieldset>
|
||||
<input type="hidden" name="op" value="cud-delete" />
|
||||
<input type="hidden" name="suggestionid" value="[% suggestionid | html %]" />
|
||||
<button type="submit" class="btn btn-default deletesuggestion"><i class="fa fa-trash-can"></i> Delete</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue