Bug 38714: circ/circulation.tt

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-12-17 13:48:33 +01:00 committed by Katrin Fischer
parent 88630a9eef
commit 113cf908fa
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 26 additions and 19 deletions

View File

@ -745,11 +745,11 @@
[% INCLUDE 'csrf-token.inc' %]
<input type="hidden" name="op" value="cud-checkout" />
<input type="hidden" name="restoreduedatespec" />
[% IF ( issue ) %]
<fieldset id="circ_circulation_issue" class="lastchecked">
[% ELSE %]
<fieldset id="circ_circulation_issue">
[% SET fieldset_class='lastchecked' %]
[% END %]
<fieldset id="circ_circulation_issue" class="[% fieldset_class | html %]">
[% IF Koha.Preference('DisplayClearScreenButton') == 'issueslip' %]
<span id="clearscreen"><a href="/cgi-bin/koha/circ/circulation.pl" title="Clear screen">x</a></span>
@ -896,36 +896,43 @@
[% END #/IF !noissues %]
[% SET div_class = '' %]
[% IF ( noissues ) %]
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
<div class="col-sm-6">
[% ELSE %]
<div>
[% div_class = 'col-sm-6' %]
[% END %]
[% ELSE %]
<div class="col-sm-6">
[% div_class = 'col-sm-6' %]
[% END %]
<div class="[% div_class | html %]">
[% SET div_id = '' %]
[% div_class = '' %]
[% IF ( noissues ) %]
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
<div id="circmessages" class="circmessage attention">
[% div_class = 'circmessage attention' %]
[% div_id = 'circmessages' %]
[% ELSE %]
<h4>Checking out to [% INCLUDE 'patron-title.inc' %]</h4>
<div id="circmessages" class="circmessage warning">
[% div_class = 'circmessage warning' %]
[% div_id = 'circmessages' %]
[% END %]
<h3>
Cannot check out!
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
<span class="circ-hlt">Only on-site checkouts are allowed</span>
[% END %]
</h3>
[% ELSE %]
<div id="circmessages" class="circmessage attention">
[% div_class = 'circmessage attention' %]
[% div_id = 'circmessages' %]
[% END %]
[% INCLUDE 'patron_messages.inc' %]
</div> <!-- /#circmessages -->
<div id="[% circmessages | html %]" class="[% div_class | html %]">
[% IF noissues %]
<h3>
Cannot check out!
[% IF ( Koha.Preference('OnSiteCheckouts') && Koha.Preference('OnSiteCheckoutsForce') ) %]
<span class="circ-hlt">Only on-site checkouts are allowed</span>
[% END %]
</h3>
[% END %]
[% INCLUDE 'patron_messages.inc' %]
</div> <!-- /#circmessages -->
</div> <!-- /div or div.col-sm-6 -->
</div> <!-- /.row -->