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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-21 / +26 lines)
Lines 626-632 Link Here
626
                                        </tr>
626
                                        </tr>
627
                                    </thead>
627
                                    </thead>
628
                                    <tbody>
628
                                    <tbody>
629
                                    [% SET all_holds_waiting = 1 %]
629
                                    [% FOREACH RESERVE IN RESERVES %]
630
                                    [% FOREACH RESERVE IN RESERVES %]
631
                                        [% UNLESS ( RESERVE.is_waiting || RESERVE.is_in_transit ) %]
632
                                            [% SET all_holds_waiting = 0 %]
633
                                        [% END %]
630
                                        [% IF ( RESERVE.is_waiting ) %]
634
                                        [% IF ( RESERVE.is_waiting ) %]
631
                                            [% IF ( RESERVE.is_at_destination ) %]
635
                                            [% IF ( RESERVE.is_at_destination ) %]
632
                                                [% IF ( RESERVE.is_found ) %]
636
                                                [% IF ( RESERVE.is_found ) %]
Lines 710-716 Link Here
710
                                                        Item in transit from <b> [% Branches.GetName( transfer.frombranch ) | html %]</b> since
714
                                                        Item in transit from <b> [% Branches.GetName( transfer.frombranch ) | html %]</b> since
711
                                                        [% transfer.datesent | $KohaDates %]
715
                                                        [% transfer.datesent | $KohaDates %]
712
                                                    [% ELSIF ( RESERVE.suspend ) %]
716
                                                    [% ELSIF ( RESERVE.suspend ) %]
713
                                                        Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until | html %] [% END %]
717
                                                        Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until | $KohaDates %] [% END %]
714
                                                    [% ELSE %]
718
                                                    [% ELSE %]
715
                                                        [% IF RESERVE.itemtype %]
719
                                                        [% IF RESERVE.itemtype %]
716
                                                            Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) | html %]'
720
                                                            Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) | html %]'
Lines 780-804 Link Here
780
                            </table>
784
                            </table>
781
785
782
                            [% IF SuspendHoldsOpac %]
786
                            [% IF SuspendHoldsOpac %]
783
                                <div>
787
                                [% UNLESS ( all_holds_waiting ) %]
784
                                    <form class="form-inline" id="suspend_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
788
                                    <div>
785
                                        <button type="submit" id="suspend_all_submit" class="btn"><i class="fa fa-pause"></i> Suspend all holds</button>
789
                                        <form class="form-inline" id="suspend_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
786
                                        <input type="hidden" name="suspend" value="1" />
790
                                            <button type="submit" id="suspend_all_submit" class="btn"><i class="fa fa-pause"></i> Suspend all holds</button>
787
791
                                            <input type="hidden" name="suspend" value="1" />
788
                                        [% IF AutoResumeSuspendedHolds %]
792
789
                                            <label for="suspend_until"> until </label>
793
                                            [% IF AutoResumeSuspendedHolds %]
790
                                            <input type="text" name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
794
                                                <label for="suspend_until"> until </label>
791
                                            <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
795
                                                <input type="text" name="suspend_until" id="suspend_until" class="suspend-until" readonly="readonly" size="10" />
792
                                        [% END %]
796
                                                <a href="#" style="font-size:85%;text-decoration:none;" onclick="document.getElementById('suspend_until').value='';return false;">Clear date to suspend indefinitely</a>
793
                                    </form>
797
                                            [% END %]
794
                                </div>
798
                                        </form>
795
                                <br/>
799
                                    </div>
796
                                <div>
800
                                    <br/>
797
                                    <form id="resume_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
801
                                    <div>
798
                                        <button type="submit" id="resume_all_submit" class="btn"><i class="fa fa-play"></i> Resume all suspended holds</button>
802
                                        <form id="resume_all_holds" action="/cgi-bin/koha/opac-modrequest-suspend.pl" method="post">
799
                                        <input type="hidden" name="suspend" value="0" />
803
                                            <button type="submit" id="resume_all_submit" class="btn"><i class="fa fa-play"></i> Resume all suspended holds</button>
800
                                    </form>
804
                                            <input type="hidden" name="suspend" value="0" />
801
                                </div>
805
                                        </form>
806
                                    </div>
807
                                [% END %]
802
                            [% END %]
808
                            [% END %]
803
                        </div> <!-- / #opac-user-holds -->
809
                        </div> <!-- / #opac-user-holds -->
804
                        [% END # / #RESERVES.count %]
810
                        [% END # / #RESERVES.count %]
805
- 

Return to bug 22537