Bug 41536: Move 'Edit request' button to after backend actions buttons

This ensures that the 'Confirm request' will always be the first button in the toolbar.

Test plan:
1) Apply patch (skip this if sandbox)
2) Enable the ILLModule sys pref
3) Create a new request, visit:
<staff_url>/cgi-bin/koha/ill/ill-requests.pl?method=create&backend=Standard
4) Add any type, '42' as cardnumber, any library. Click 'Create'.
5) Notice the 'Confirm request' button is shown first, and with the 'primary button' styling.

Signed-off-by: Photonyx <Headtummy@gmail.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Pedro Amorim 2026-01-07 10:27:29 +00:00 committed by Lucas Gass
parent c47bbdec8d
commit 9c8a475d08
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 4 additions and 4 deletions

View File

@ -513,10 +513,6 @@
<h1>Manage ILL request [% request.id_prefix _ request.illrequest_id | html %]</h1>
<div id="request-toolbar" class="btn-toolbar">
<a title="Edit request" id="ill-toolbar-btn-edit-action" class="btn btn-default" href="/cgi-bin/koha/ill/ill-requests.pl?op=edit_action&amp;illrequest_id=[% request.illrequest_id | html %]">
<i class="fa-solid fa-pencil" aria-hidden="true"></i>
Edit request
</a>
[% FOREACH action IN request.available_actions %]
[% needs_prefs = action.needs_prefs.size ? action.needs_prefs : [] %]
[% needs_perms = action.needs_perms.size ? action.needs_perms : [] %]
@ -600,6 +596,10 @@
</a>
[% END %]
[% END %]
<a title="Edit request" id="ill-toolbar-btn-edit-action" class="btn btn-default" href="/cgi-bin/koha/ill/ill-requests.pl?op=edit_action&amp;illrequest_id=[% request.illrequest_id | html %]">
<i class="fa-solid fa-pencil" aria-hidden="true"></i>
Edit request
</a>
[% IF request.borrowernumber %]
<div class="dropdown btn-group">
<button class="btn btn-default dropdown-toggle" type="button" id="ill-notice-dropdown" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="true">