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

(-)a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss (+7 lines)
Lines 882-887 fieldset { Link Here
882
            margin-left: 1em;
882
            margin-left: 1em;
883
        }
883
        }
884
884
885
        label {
886
            display: inline-block;
887
            float: none;
888
            margin: .2em;
889
            width: auto;
890
        }
891
885
        li {
892
        li {
886
            clear: left;
893
            clear: left;
887
            float: left;
894
            float: left;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-39 / +39 lines)
Lines 505-513 Link Here
505
                </div>
505
                </div>
506
506
507
                [% UNLESS ( multi_hold ) %]
507
                [% UNLESS ( multi_hold ) %]
508
                    <fieldset class="rows">
508
                    <form action="placerequest.pl" method="post" name="form" id="hold-request-form">
509
                        <legend>Hold details</legend>
509
                        <fieldset class="rows">
510
                        <form action="placerequest.pl" method="post" name="form" id="hold-request-form">
510
                            <legend>Hold details</legend>
511
511
512
                            <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
512
                            <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
513
                            [% FOREACH biblionumber IN biblionumbers %]
513
                            [% FOREACH biblionumber IN biblionumbers %]
Lines 532-541 Link Here
532
                                    <strong>[% fixedRank | html %]</strong>
532
                                    <strong>[% fixedRank | html %]</strong>
533
                                </li>
533
                                </li>
534
534
535
                                <li>
536
                                    <label for="holdnotes">Notes:</label>
537
                                    <textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea>
538
                                </li>
539
                                [% IF ( reserve_in_future ) %]
535
                                [% IF ( reserve_in_future ) %]
540
                                    <li>
536
                                    <li>
541
                                        <label for="from">Hold starts on date:</label>
537
                                        <label for="from">Hold starts on date:</label>
Lines 554-559 Link Here
554
                                    <input name="non_priority" id="non_priority" type="checkbox" />
550
                                    <input name="non_priority" id="non_priority" type="checkbox" />
555
                                    <span class="hint">A non priority hold doesn't prevent a current checkout from renewing</span>
551
                                    <span class="hint">A non priority hold doesn't prevent a current checkout from renewing</span>
556
                                </li>
552
                                </li>
553
                                <li>
554
                                    <label for="holdnotes">Notes:</label>
555
                                    <textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea>
556
                                </li>
557
                            </ol>
557
                            </ol>
558
                            <fieldset class="rows">
558
                            <fieldset class="rows">
559
                                <legend>
559
                                <legend>
Lines 602-608 Link Here
602
                                        <input type="hidden" name="holds_to_place_count" value="1" />
602
                                        <input type="hidden" name="holds_to_place_count" value="1" />
603
                                    [% END %]
603
                                    [% END %]
604
                                </ol>
604
                                </ol>
605
                            </fieldset>
606
605
607
606
608
                            <fieldset class="action">
607
                            <fieldset class="action">
Lines 616-622 Link Here
616
                                    [% END %]
615
                                    [% END %]
617
                                [% END %]
616
                                [% END %]
618
                            </fieldset>
617
                            </fieldset>
618
                        </fieldset>
619
620
                        <hr/>
619
621
622
                        <fieldset class="rows">
623
                            <legend>
624
                                <label>
625
                                    Place a hold on a specific item
626
                                    <input type="radio" name="request" class="requestany" />
627
                                </label>
628
                                [% IF force_hold_level == 'item' %]
629
                                     <span class="error"><em>(Required)</em></span>
630
                                [% END %]
631
                            </legend>
620
                            [% biblio = biblioloop.0 %]
632
                            [% biblio = biblioloop.0 %]
621
633
622
                            <ol>
634
                            <ol>
Lines 635-646 Link Here
635
                                [% END %]
647
                                [% END %]
636
                            </ol>
648
                            </ol>
637
649
638
                            <h2 style="padding: 0 1em;">
639
                                Place a hold on a specific item
640
                                [% IF force_hold_level == 'item' %]
641
                                     <span class="error"><em>(Required)</em></span>
642
                                [% END %]
643
                            </h2>
644
650
645
                            <table id="requestspecific">
651
                            <table id="requestspecific">
646
                                <thead>
652
                                <thead>
Lines 676-684 Link Here
676
                                                            Hold must be record level
682
                                                            Hold must be record level
677
                                                        </span>
683
                                                        </span>
678
                                                    [% ELSIF ( itemloo.available ) %]
684
                                                    [% ELSIF ( itemloo.available ) %]
679
                                                        <input type="radio" name="checkitem" value="[% itemloo.itemnumber | html %]" />
685
                                                        <input type="radio" name="checkitem" class="requestspecific" value="[% itemloo.itemnumber | html %]" />
680
                                                    [% ELSIF ( itemloo.override ) %]
686
                                                    [% ELSIF ( itemloo.override ) %]
681
                                                        <input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber | html %]" />
687
                                                        <input type="radio" name="checkitem" class="needsoverride requestspecific" value="[% itemloo.itemnumber | html %]" />
682
                                                        <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i>
688
                                                        <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i>
683
                                                    [% ELSE %]
689
                                                    [% ELSE %]
684
                                                        <span class="error">
690
                                                        <span class="error">
Lines 723-729 Link Here
723
                                                </td>
729
                                                </td>
724
                                                <td>
730
                                                <td>
725
                                                [% IF (itemloo.pickup_locations_count > 0) %]
731
                                                [% IF (itemloo.pickup_locations_count > 0) %]
726
                                                    <select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations" style="width:100%;"
732
                                                    <select name="item_pickup_[% itemloo.itemnumber | html %]" class="pickup_locations requestspecific" style="width:100%;"
727
                                                            data-item-id="[% itemloo.itemnumber | html %]"
733
                                                            data-item-id="[% itemloo.itemnumber | html %]"
728
                                                            data-patron-id="[% patron.borrowernumber | html %]"
734
                                                            data-patron-id="[% patron.borrowernumber | html %]"
729
                                                            data-pickup-location-source="item">
735
                                                            data-pickup-location-source="item">
Lines 837-847 Link Here
837
                            </table> <!-- /#requestspecific -->
843
                            </table> <!-- /#requestspecific -->
838
844
839
                            [% IF hiddencount %]
845
                            [% IF hiddencount %]
840
                                <form>
846
                                <p class="hiddencount">
841
                                    <p class="hiddencount">
847
                                    <a href="request.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;borrowernumber=[% borrowernumber | uri %]&amp;showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
842
                                        <a href="request.pl?biblionumber=[% biblio.biblionumber | uri %]&amp;borrowernumber=[% borrowernumber | uri %]&amp;showallitems=1">Show all items ([% hiddencount | html %] hidden)</a>
848
                                </p>
843
                                    </p>
844
                                </form>
845
                            [% END # /IF hiddencount %]
849
                            [% END # /IF hiddencount %]
846
850
847
                        [% ELSE # /UNLESS multi_hold %]
851
                        [% ELSE # /UNLESS multi_hold %]
Lines 977-984 Link Here
977
                                [% END %]
981
                                [% END %]
978
                            [% END # /IF patron %]
982
                            [% END # /IF patron %]
979
                        </fieldset> <!-- /.action -->
983
                        </fieldset> <!-- /.action -->
980
                    </form> <!-- /#hold-request-form -->
984
                    </fieldset> <!-- /.rows -->
981
                </fieldset> <!-- /.rows -->
985
                </form> <!-- /#hold-request-form -->
982
            [% END %]
986
            [% END %]
983
987
984
            [% UNLESS ( patron ) %]
988
            [% UNLESS ( patron ) %]
Lines 1289-1303 Link Here
1289
            }
1293
            }
1290
1294
1291
1295
1292
            function ToggleHoldsToPlace() {
1293
                if ( $("#requestany").prop('checked') ) {
1294
                    $("#holds_to_place_count,#pickup,#itemtype").prop('disabled', false);
1295
                } else {
1296
                    $("#holds_to_place_count,#pickup,#itemtype").prop('disabled', true);
1297
                }
1298
            }
1299
            ToggleHoldsToPlace();
1296
            ToggleHoldsToPlace();
1300
            $("#requestany").on('change', function(){
1297
            $(".requestany").on('change', function(){
1301
                ToggleHoldsToPlace();
1298
                ToggleHoldsToPlace();
1302
            });
1299
            });
1303
1300
Lines 1316-1327 Link Here
1316
                "sDom": '<"top pager"ilf>t',
1313
                "sDom": '<"top pager"ilf>t',
1317
            }));
1314
            }));
1318
1315
1319
            //Override fieldset styling for dataTables search box
1320
            $("div.top.pager").css("margin-left","1em");
1321
            $(".dataTables_filter label").css({
1322
                "width":"auto",
1323
                "margin-right":"0em"
1324
            });
1325
1316
1326
            $("#club-request-form").on("submit", function() {
1317
            $("#club-request-form").on("submit", function() {
1327
                let $t = $(this);
1318
                let $t = $(this);
Lines 1421-1426 Link Here
1421
            });
1412
            });
1422
        });
1413
        });
1423
1414
1415
        function ToggleHoldsToPlace() {
1416
            if ( $("#requestany").prop('checked') ) {
1417
                $("#holds_to_place_count, #pickup, #itemtype").prop('disabled', false);
1418
                $(".requestspecific").prop("disabled", true );
1419
            } else {
1420
                $("#holds_to_place_count, #pickup, #itemtype").prop('disabled', true);
1421
                $(".requestspecific").prop("disabled", false );
1422
            }
1423
        }
1424
1424
        function check( table ) {
1425
        function check( table ) {
1425
1426
1426
            var msg = "";
1427
            var msg = "";
1427
- 

Return to bug 30579