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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/waitingreserves.tt (-10 / +25 lines)
Lines 15-20 Link Here
15
    [% END %]</title
15
    [% END %]</title
16
>
16
>
17
[% INCLUDE 'doc-head-close.inc' %]
17
[% INCLUDE 'doc-head-close.inc' %]
18
[% FILTER collapse %]
19
    <style>
20
        .tab-toolbar {
21
            padding: 0.5rem 0;
22
            margin-bottom: 0.5rem;
23
            border-bottom: 1px solid #eee;
24
        }
25
    </style>
26
[% END %]
18
</head>
27
</head>
19
28
20
<body id="circ_waitingreserves" class="circ">
29
<body id="circ_waitingreserves" class="circ">
Lines 97-104 Link Here
97
            [% WRAPPER tab_panels %]
106
            [% WRAPPER tab_panels %]
98
                [% WRAPPER tab_panel tabname="holdswaiting" bt_active= 1 %]
107
                [% WRAPPER tab_panel tabname="holdswaiting" bt_active= 1 %]
99
                    [% IF ( reserveloop ) %]
108
                    [% IF ( reserveloop ) %]
100
                        <div id="toolbar" class="btn-toolbar">
109
                        <div class="tab-toolbar">
101
                            <button class="btn cancel_selected_holds" data-bulk="true"></button>
110
                            <button class="btn btn-default cancel_selected_holds" data-bulk="true"></button>
102
                        </div>
111
                        </div>
103
                        [% INCLUDE waiting_holds.inc table_name='holdst' reserveloop=reserveloop tab='holdwaiting' %]
112
                        [% INCLUDE waiting_holds.inc table_name='holdst' reserveloop=reserveloop tab='holdwaiting' %]
104
                    [% ELSE %]
113
                    [% ELSE %]
Lines 108-115 Link Here
108
117
109
                [% WRAPPER tab_panel tabname="holdsover" %]
118
                [% WRAPPER tab_panel tabname="holdsover" %]
110
                    [% IF ( overloop ) %]
119
                    [% IF ( overloop ) %]
111
                        <div id="toolbar" class="btn-toolbar">
120
                        <div class="tab-toolbar">
112
                            <button class="btn cancel_selected_holds" data-bulk="true"></button>
121
                            <button class="btn btn-default cancel_selected_holds" data-bulk="true"></button>
113
                            <div class="btn-group">
122
                            <div class="btn-group">
114
                                <form name="cancelAllReserve" action="waitingreserves.pl" method="post">
123
                                <form name="cancelAllReserve" action="waitingreserves.pl" method="post">
115
                                    [% INCLUDE 'csrf-token.inc' %]
124
                                    [% INCLUDE 'csrf-token.inc' %]
Lines 117-131 Link Here
117
                                    <input type="hidden" name="allbranches" value="[% allbranches | html %]" />
126
                                    <input type="hidden" name="allbranches" value="[% allbranches | html %]" />
118
                                    <input type="hidden" name="tab" value="holdsover" />
127
                                    <input type="hidden" name="tab" value="holdsover" />
119
                                    [% IF TransferWhenCancelAllWaitingHolds %]
128
                                    [% IF TransferWhenCancelAllWaitingHolds %]
120
                                        <input type="submit" class="btn btn-primary" value="Cancel and transfer all" />
129
                                        <button type="submit" class="btn btn-primary">Cancel and transfer all</button>
121
                                    [% ELSE %]
130
                                    [% ELSE %]
122
                                        <input type="submit" class="btn btn-primary" value="Cancel all" />
131
                                        <button type="submit" class="btn btn-primary">Cancel all</button>
123
                                    [% END %]
132
                                    [% END %]
124
                                </form>
133
                                </form>
125
                            </div>
134
                            </div>
126
                        </div>
135
                        </div>
127
                        [% UNLESS TransferWhenCancelAllWaitingHolds %]
136
                        [% UNLESS TransferWhenCancelAllWaitingHolds %]
128
                            <div class="hint">Only items that need not be transferred will be cancelled (TransferWhenCancelAllWaitingHolds syspref)</div>
137
                            <div class="hint"
138
                                >Only items that need not be transferred will be cancelled
139
                                [% IF ( CAN_user_parameters_manage_sysprefs ) %]
140
                                    (<a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=TransferWhenCancelAllWaitingHolds">TransferWhenCancelAllWaitingHolds syspref</a>)
141
                                [% ELSE %]
142
                                    (TransferWhenCancelAllWaitingHolds syspref)
143
                                [% END %]
144
                            </div>
129
                        [% END %]
145
                        [% END %]
130
                        [% INCLUDE waiting_holds.inc table_name='holdso' reserveloop=overloop tab='holdsover' %]
146
                        [% INCLUDE waiting_holds.inc table_name='holdso' reserveloop=overloop tab='holdsover' %]
131
                    [% ELSE %]
147
                    [% ELSE %]
Lines 135-142 Link Here
135
151
136
                [% WRAPPER tab_panel tabname="holdscancelled" %]
152
                [% WRAPPER tab_panel tabname="holdscancelled" %]
137
                    [% IF cancel_reqs_count %]
153
                    [% IF cancel_reqs_count %]
138
                        <div id="toolbar" class="btn-toolbar">
154
                        <div class="tab-toolbar">
139
                            <button class="btn cancel_selected_holds" data-bulk="true"></button>
155
                            <button class="btn btn-default cancel_selected_holds" data-bulk="true"></button>
140
                        </div>
156
                        </div>
141
                        [% INCLUDE waiting_holds.inc select_column='1' table_name='holdscr' reserveloop=cancel_reqs tab='holdscr' %]
157
                        [% INCLUDE waiting_holds.inc select_column='1' table_name='holdscr' reserveloop=cancel_reqs tab='holdscr' %]
142
                    [% ELSE %]
158
                    [% ELSE %]
143
- 

Return to bug 39939