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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-detail-tabs.inc (-13 / +4 lines)
Lines 1-6 Link Here
1
<!-- patron-detail-tabs.inc -->
1
<!-- patron-detail-tabs.inc -->
2
[% USE raw %]
2
[% USE raw %]
3
[% PROCESS 'html_helpers.inc' %]
3
[% PROCESS 'html_helpers.inc' %]
4
[% PROCESS 'modals/holds_table_modals.inc' %]
4
[% WRAPPER tabs id= "finesholdsissues" %]
5
[% WRAPPER tabs id= "finesholdsissues" %]
5
    [% WRAPPER tabs_nav %]
6
    [% WRAPPER tabs_nav %]
6
        [% WRAPPER tab_item tabname= "checkouts" bt_active= 1 %]
7
        [% WRAPPER tab_item tabname= "checkouts" bt_active= 1 %]
Lines 165-186 Link Here
165
                        </table>
166
                        </table>
166
167
167
                        <fieldset class="action">
168
                        <fieldset class="action">
168
                            <input type="submit" class="btn btn-primary cancel" name="submit" value="Cancel marked holds" />
169
                            <button class="btn btn-primary cancel_selected_holds" data-bulk="true"></button>
169
170
                            [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
171
                            [% IF hold_cancellation.count %]
172
                                <label for="cancellation-reason">Cancellation reason:</label>
173
                                <input type="hidden" name="op" value="cud-cancelall" />
174
                                <select name="cancellation-reason" id="cancellation-reason">
175
                                    <option value="">No reason given</option>
176
                                    [% FOREACH reason IN hold_cancellation %]
177
                                        <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
178
                                    [% END %]
179
                                </select>
180
                            [% END %]
181
                        </fieldset>
170
                        </fieldset>
182
                    </form>
171
                    </form>
183
172
173
                    [% PROCESS 'cancel-hold-modal' form_action = '/cgi-bin/koha/reserve/modrequest.pl' from_param = patronpage %]
174
184
                    [% IF Koha.Preference('SuspendHoldsIntranet') %]
175
                    [% IF Koha.Preference('SuspendHoldsIntranet') %]
185
                        <fieldset class="action">
176
                        <fieldset class="action">
186
                            <button class="btn btn-primary suspend_selected_holds" data-bulk="true"></button>
177
                            <button class="btn btn-primary suspend_selected_holds" data-bulk="true"></button>
(-)a/koha-tmpl/intranet-tmpl/prog/js/holds.js (-17 / +5 lines)
Lines 342-367 $(document).ready(function () { Link Here
342
                            },
342
                            },
343
                        },
343
                        },
344
                        {
344
                        {
345
                            orderable: false,
346
                            data: function (oObj) {
345
                            data: function (oObj) {
347
                                return (
346
                                return (
348
                                    "<select name='rank-request'>" +
347
                                    '<a class="cancel-hold deny" title="Cancel hold" data-borrowernumber="' +
349
                                    "<option value='n'>" +
350
                                    __("No") +
351
                                    "</option>" +
352
                                    "<option value='del'>" +
353
                                    __("Yes") +
354
                                    "</option>" +
355
                                    "</select>" +
356
                                    "<input type='hidden' name='biblionumber' value='" +
357
                                    oObj.biblionumber +
358
                                    "'>" +
359
                                    "<input type='hidden' name='borrowernumber' value='" +
360
                                    borrowernumber +
348
                                    borrowernumber +
361
                                    "'>" +
349
                                    '" data-biblionumber="' +
362
                                    "<input type='hidden' name='reserve_id' value='" +
350
                                    oObj.biblionumber +
351
                                    '" data-id="' +
363
                                    oObj.reserve_id +
352
                                    oObj.reserve_id +
364
                                    "'>"
353
                                    '" href="#">  <i class="fa fa-trash" aria-label="Cancel hold"></i></a>'
365
                                );
354
                                );
366
                            },
355
                            },
367
                        },
356
                        },
368
- 

Return to bug 40395