Koha/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves
David Cook 5d3b7cf089
Bug 34650: Convert list toolbar delete into form POST
This patch adds a HTML form with a CSRF token to POST the list delete,
which is triggered by a click handler on the A element. The A element
is still needed for existing style reasons.

Test plan:
0. Apply patch
1. koha-plack --reload kohadev
2. In the staff interface, add a list
3. Go into that list (e.g. virtualshelves/shelves.pl?op=view&shelfnumber=X)
4. From the toolbar click the "Edit" dropdown
5. From the dropdown try either "Edit list" or "Delete list"
6. Note no CSRF error and operation completes as expected

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-01 11:07:37 -03:00
..
tables Bug 34650: Remove unnecessary CSRF check on edit_form 2023-09-01 11:07:36 -03:00
addbybiblionumber.tt
downloadshelf.tt
sendshelfform.tt
shelves.tt Bug 34650: Convert list toolbar delete into form POST 2023-09-01 11:07:37 -03:00