View | Details | Raw Unified | Return to bug 11565
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (-15 / +22 lines)
Lines 509-520 fieldset.brief ol, fieldset.brief li { Link Here
509
}
509
}
510
510
511
.hint {
511
.hint {
512
	color : #999999;
512
    color : #666;
513
	font-size : 95%;
513
	font-size : 95%;
514
}
514
}
515
515
516
fieldset.brief div.hint, fieldset.rows div.hint, div.yui-u div.hint {
516
fieldset.brief div.hint, fieldset.rows div.hint, div.yui-u div.hint {
517
	font-size : 95%;
518
	margin-bottom : .4em;
517
	margin-bottom : .4em;
519
}
518
}
520
519
Lines 998-1029 tr.highlight th[scope=row] { Link Here
998
	border-color : #BCBCBC;
997
	border-color : #BCBCBC;
999
}
998
}
1000
999
1001
#circ_circulation_issue label {
1000
label.circ_barcode {
1002
	font-size: 105%;
1001
    font-size: 105%;
1003
	font-weight : bold;
1002
    font-weight : bold;
1004
}
1005
1006
#circ_circulation_issue div.hint {
1007
	color : #666666;
1008
	margin: .2em 0;
1009
}
1003
}
1010
1004
1011
.date-select,
1005
.checkout-setting {
1012
.onsite_checkout-select {
1013
    font-size : 85%;
1006
    font-size : 85%;
1014
    padding-top : .3em;
1007
    padding-top : .3em;
1015
}
1008
}
1016
1009
1017
#circ_circulation_issue .date-select label,
1010
.checkout-setting label {
1018
.date-select label {
1019
    font-size : inherit;
1011
    font-size : inherit;
1020
    font-weight: normal;
1012
    font-weight: normal;
1021
}
1013
}
1022
1014
1023
.date-select input {
1015
.checkout-setting input {
1024
    vertical-align: middle;
1016
    vertical-align: middle;
1025
}
1017
}
1026
1018
1019
.checkout-settings {
1020
    background-color: #f4f8f9;
1021
    border-radius: 0;
1022
    border-top: 2px solid #b9d8d9;
1023
    display: none;
1024
    margin-left: -1em;
1025
    margin-right: -1em;
1026
    margin-top: 1em;
1027
    padding: 1em 1em 0;
1028
}
1029
1030
#show-checkout-settings {
1031
    margin-top: .5em;
1032
}
1033
1027
tr.expired td {
1034
tr.expired td {
1028
	color : #999999;
1035
	color : #999999;
1029
}
1036
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/js/pages/circulation.js (+15 lines)
Lines 45-50 $(document).ready(function() { Link Here
45
        export_checkouts(output_format);
45
        export_checkouts(output_format);
46
        return false;
46
        return false;
47
    });
47
    });
48
49
    var checkout_settings = $(".checkout-settings");
50
    var checkout_settings_icon = $(".checkout-settings-icon");
51
52
    $("#show-checkout-settings a").on("click",function(){
53
        if( checkout_settings.is(":hidden")){
54
            checkout_settings.show();
55
            checkout_settings_icon.removeClass("fa-caret-right").addClass("fa-caret-down");
56
        } else {
57
            $("#barcode").focus();
58
            checkout_settings.hide();
59
            checkout_settings_icon.removeClass("fa-caret-down").addClass("fa-caret-right");
60
        }
61
    });
62
48
});
63
});
49
64
50
function export_checkouts(format) {
65
function export_checkouts(format) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-49 / +57 lines)
Lines 644-650 No patron matched <span class="ex">[% message %]</span> Link Here
644
644
645
    [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
645
    [% IF (forceallow) %]<input type="hidden" name="forceallow" value="1">[% END %]
646
646
647
    <label for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
647
    <label class="circ_barcode" for="barcode">Checking out to [% INCLUDE 'patron-title.inc' %]</label>
648
648
649
	<div class="hint">Enter item barcode:</div>
649
	<div class="hint">Enter item barcode:</div>
650
650
Lines 655-722 No patron matched <span class="ex">[% message %]</span> Link Here
655
    [% END %]
655
    [% END %]
656
    <button type="submit" class="btn">Check out</button>
656
    <button type="submit" class="btn">Check out</button>
657
657
658
    [% UNLESS noissues %]
658
    <div id="show-checkout-settings">
659
        <div class="date-select">
659
        <a href="#"><i class="fa fa-caret-right checkout-settings-icon"></i> Checkout settings</a>
660
            [% IF NEEDSCONFIRMATION %]
660
    </div>
661
                <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
662
            [% ELSE %]
663
                <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" />
664
            [% END %]
665
661
666
            <label for="auto_renew">Automatic renewal</label>
662
    <div class="checkout-settings">
667
663
668
            [% IF Koha.Preference('decreaseLoanHighHolds') %]
664
        [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
669
                [% IF NEEDSCONFIRMATION %]
665
            [% IF ( SpecifyDueDate ) %]
670
                    [% IF override_high_holds %]
666
                <div id="specify-due-date" class="checkout-setting">
671
                        <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
667
                    <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
668
                    [% IF ( duedatespec ) %]
669
                        <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />
672
                    [% ELSE %]
670
                    [% ELSE %]
673
                        <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
671
                        <input type="text" size="13" id="duedatespec" name="duedatespec" value="" readonly="readonly" />
674
                    [% END %]
672
                    [% END %]
675
                [% ELSE %]
673
                    <label for="stickyduedate"> Remember for session:</label>
676
                    [% IF override_high_holds %]
674
                    [% IF ( stickyduedate ) %]
677
                        <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" checked="checked" />
675
                        <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
678
                    [% ELSE %]
676
                    [% ELSE %]
679
                        <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" />
677
                        <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
680
                    [% END %]
678
                    [% END %]
681
                [% END %]
679
                    <button class="btn btn-small action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" >Clear</button>
682
                <label for="override_high_holds">Don't decrease loan length based on holds</label>
680
                </div>
683
            [% END %]
681
            [% END %]
684
        </div>
682
        [% END %]
685
    [% END %]
686
683
687
    [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
684
        [% UNLESS ( noissues ) %]
688
        [% IF ( SpecifyDueDate ) %]
685
            <div id="set-automatic-renewal" class="checkout-setting">
689
            <div class="date-select">
686
                [% IF NEEDSCONFIRMATION %]
690
                <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
687
                    <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
691
                [% IF ( duedatespec ) %]
692
                    <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />
693
                [% ELSE %]
688
                [% ELSE %]
694
                    <input type="text" size="13" id="duedatespec" name="duedatespec" value="" readonly="readonly" />
689
                    <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" />
695
                [% END %]
690
                [% END %]
696
                <label for="stickyduedate"> Remember for session:</label>
691
697
                [% IF ( stickyduedate ) %]
692
                <label for="auto_renew">Automatic renewal</label>
698
                    <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
693
            </div>
694
            [% IF Koha.Preference('decreaseLoanHighHolds') %]
695
                <div id="set_high_holds_overrride" class="checkout-setting">
696
                    [% IF NEEDSCONFIRMATION %]
697
                        [% IF override_high_holds %]
698
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
699
                        [% ELSE %]
700
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
701
                        [% END %]
702
                    [% ELSE %]
703
                        [% IF override_high_holds %]
704
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" checked="checked" />
705
                        [% ELSE %]
706
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" />
707
                        [% END %]
708
                    [% END %]
709
                    <label for="override_high_holds">Don't decrease checkout length based on holds</label>
710
                </div>
711
            [% END %]
712
        [% END %]
713
714
        [% IF Koha.Preference('OnSiteCheckouts') %]
715
            <div id="onsite_checkout-select" class="checkout-setting">
716
                [% IF noissues %]
717
                    <div class="onsite-checkout-only">
718
                        <input type="checkbox" id="onsite_checkout" name="onsite_checkout_forced" checked="checked" disabled="disabled" /> <label for="onsite_checkout">On-site checkouts only. Automatic due date: </label>
719
                        <input type="text" name="duedatespec" id="duedatespec" readonly="readonly" />
720
                        <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
721
                    </div>
699
                [% ELSE %]
722
                [% ELSE %]
700
                    <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
723
                    <input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label>
701
                [% END %]
724
                [% END %]
702
                <button class="btn btn-small action" id="cleardate" name="cleardate" onclick="this.checked = false; this.form.duedatespec.value = ''; this.form.stickyduedate.checked = false; this.form.barcode.focus(); return false;" >Clear</button>
703
            </div>
725
            </div>
704
        [% END %]
726
        [% END %]
705
    [% END %]
706
727
707
    [% IF Koha.Preference('OnSiteCheckouts') %]
728
    </div> <!-- /.checkout-settings -->
708
        <div class="onsite_checkout-select">
709
            [% IF noissues %]
710
                <div class="onsite-checkout-only">
711
                    <input type="checkbox" id="onsite_checkout" name="onsite_checkout_forced" checked="checked" disabled="disabled" /> <label for="onsite_checkout">On-site checkouts only. Automatic due date: </label>
712
                    <input type="text" name="duedatespec" id="duedatespec" readonly="readonly" />
713
                    <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
714
                </div>
715
            [% ELSE %]
716
                <input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label>
717
            [% END %]
718
        </div>
719
    [% END %]
720
729
721
          <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
730
          <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
722
          <input type="hidden" name="branch" value="[% branch %]" />
731
          <input type="hidden" name="branch" value="[% branch %]" />
723
- 

Return to bug 11565