Bug 36221: Move patron section to top of create form

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Pedro Amorim 2024-03-08 15:21:16 +00:00 committed by Katrin Fischer
parent 712c72db8c
commit ba3752db8e
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 21 additions and 22 deletions

View File

@ -21,6 +21,27 @@
<h2>Create a manual ILL request</h2>
<form id="create_form" method="POST" action="">
[% INCLUDE 'csrf-token.inc' %]
<fieldset class="rows">
<legend>Patron options</legend>
<ol>
<li>
[% WRAPPER ill_select_field required = 1 id = 'branchcode' label = t('Destination library') %]
<option value="" />
[% FOREACH branch IN branches %]
[% IF whole.value.other.branchcode && branch.branchcode == whole.value.other.branchcode %]
<option value="[% branch.branchcode | html %]" selected>
[% branch.branchname | html %]
</option>
[% ELSE %]
<option value="[% branch.branchcode | html %]">
[% branch.branchname | html %]
</option>
[% END %]
[% END %]
[% END #ill_select_field %]
</li>
</ol>
</fieldset>
<fieldset class="rows">
<legend>General details</legend>
<ol id="general-standard-fields">
@ -81,28 +102,6 @@
[% INCLUDE "${cwd}/shared-includes/forms/${type}.inc" %]
[% END %]
[% INCLUDE "${cwd}/shared-includes/custom_fields.inc" %]
<fieldset class="rows">
<legend>Patron options</legend>
<ol>
<li>
[% WRAPPER ill_select_field required = 1 id = 'branchcode' label = t('Destination library') %]
<option value="" />
[% FOREACH branch IN branches %]
[% IF whole.value.other.branchcode && branch.branchcode == whole.value.other.branchcode %]
<option value="[% branch.branchcode | html %]" selected>
[% branch.branchname | html %]
</option>
[% ELSE %]
<option value="[% branch.branchcode | html %]">
[% branch.branchname | html %]
</option>
[% END %]
[% END %]
[% END #ill_select_field %]
</li>
</ol>
</fieldset>
<fieldset class="action">
<input id="ill-submit" class="btn btn-primary" type="submit" value="Create"/>
<a class="cancel" href="/cgi-bin/koha/opac-illrequests.pl">Cancel</a>