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 (-38 / +63 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-669 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
            <span class="circ-override-high-holds">
664
            <span class="circ-override-high-holds">
669
                [% IF Koha.Preference('decreaseLoanHighHolds') %]
665
                [% IF Koha.Preference('decreaseLoanHighHolds') %]
Lines 683-724 No patron matched <span class="ex">[% message %]</span> Link Here
683
                    <label for="override_high_holds">Don't decrease loan length based on holds</label>
679
                    <label for="override_high_holds">Don't decrease loan length based on holds</label>
684
                [% END %]
680
                [% END %]
685
            </span>
681
            </span>
686
        </div>
687
    [% END %]
688
682
689
    [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
683
        [% UNLESS ( noissues && Koha.Preference('OnSiteCheckoutsForce') ) %]
690
        [% IF ( SpecifyDueDate ) %]
684
            [% IF ( SpecifyDueDate ) %]
691
            <div class="date-select">
685
                <div id="specify-due-date" class="checkout-setting">
692
                <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
686
                    <div class="hint">Specify due date [% INCLUDE 'date-format.inc' %]: </div>
693
                [% IF ( duedatespec ) %]
687
                    [% IF ( duedatespec ) %]
694
                    <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />
688
                        <input type="text" size="13" id="duedatespec" name="duedatespec" value="[% duedatespec %]" readonly="readonly" />
689
                    [% ELSE %]
690
                        <input type="text" size="13" id="duedatespec" name="duedatespec" value="" readonly="readonly" />
691
                    [% END %]
692
                    <label for="stickyduedate"> Remember for session:</label>
693
                    [% IF ( stickyduedate ) %]
694
                        <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
695
                    [% ELSE %]
696
                        <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
697
                    [% END %]
698
                    <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>
699
                </div>
700
            [% END %]
701
        [% END %]
702
703
        [% UNLESS ( noissues ) %]
704
            <div id="set-automatic-renewal" class="checkout-setting">
705
                [% IF NEEDSCONFIRMATION %]
706
                    <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" disabled="disabled" />
695
                [% ELSE %]
707
                [% ELSE %]
696
                    <input type="text" size="13" id="duedatespec" name="duedatespec" value="" readonly="readonly" />
708
                    <input type="checkbox" name="auto_renew" id="auto_renew" value="auto_renew" />
697
                [% END %]
709
                [% END %]
698
                <label for="stickyduedate"> Remember for session:</label>
710
699
                [% IF ( stickyduedate ) %]
711
                <label for="auto_renew">Automatic renewal</label>
700
                    <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" checked="checked" />
712
            </div>
713
            [% IF Koha.Preference('decreaseLoanHighHolds') %]
714
                <div id="set_high_holds_overrride" class="checkout-setting">
715
                    [% IF NEEDSCONFIRMATION %]
716
                        [% IF override_high_holds %]
717
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled" checked="checked"/>
718
                        [% ELSE %]
719
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" disabled="disabled"/>
720
                        [% END %]
721
                    [% ELSE %]
722
                        [% IF override_high_holds %]
723
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" checked="checked" />
724
                        [% ELSE %]
725
                            <input type="checkbox" name="override_high_holds" id="override_high_holds" value="1" />
726
                        [% END %]
727
                    [% END %]
728
                    <label for="override_high_holds">Don't decrease checkout length based on holds</label>
729
                </div>
730
            [% END %]
731
        [% END %]
732
733
        [% IF Koha.Preference('OnSiteCheckouts') %]
734
            <div id="onsite_checkout-select" class="checkout-setting">
735
                [% IF noissues %]
736
                    <div class="onsite-checkout-only">
737
                        <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>
738
                        <input type="text" name="duedatespec" id="duedatespec" readonly="readonly" />
739
                        <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
740
                    </div>
701
                [% ELSE %]
741
                [% ELSE %]
702
                    <input type="checkbox" id="stickyduedate" onclick="this.form.barcode.focus();" name="stickyduedate" />
742
                    <input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label>
703
                [% END %]
743
                [% END %]
704
                <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>
705
            </div>
744
            </div>
706
        [% END %]
745
        [% END %]
707
    [% END %]
708
746
709
    [% IF Koha.Preference('OnSiteCheckouts') %]
747
    </div> <!-- /.checkout-settings -->
710
        <div class="onsite_checkout-select">
711
            [% IF noissues %]
712
                <div class="onsite-checkout-only">
713
                    <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>
714
                    <input type="text" name="duedatespec" id="duedatespec" readonly="readonly" />
715
                    <input type="hidden" name="onsite_checkout" checked="checked" value="1" />
716
                </div>
717
            [% ELSE %]
718
                <input type="checkbox" id="onsite_checkout" name="onsite_checkout" /> <label for="onsite_checkout">On-site checkout</label>
719
            [% END %]
720
        </div>
721
    [% END %]
722
748
723
          <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
749
          <input type="hidden" name="borrowernumber" id="borrowernumber" value="[% borrowernumber %]" />
724
          <input type="hidden" name="branch" value="[% branch %]" />
750
          <input type="hidden" name="branch" value="[% branch %]" />
725
- 

Return to bug 11565