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 353-378 $(document).ready(function () { Link Here
353
                            },
353
                            },
354
                        },
354
                        },
355
                        {
355
                        {
356
                            orderable: false,
357
                            data: function (oObj) {
356
                            data: function (oObj) {
358
                                return (
357
                                return (
359
                                    "<select name='rank-request'>" +
358
                                    '<a class="cancel-hold deny" title="Cancel hold" data-borrowernumber="' +
360
                                    "<option value='n'>" +
361
                                    __("No") +
362
                                    "</option>" +
363
                                    "<option value='del'>" +
364
                                    __("Yes") +
365
                                    "</option>" +
366
                                    "</select>" +
367
                                    "<input type='hidden' name='biblionumber' value='" +
368
                                    oObj.biblionumber +
369
                                    "'>" +
370
                                    "<input type='hidden' name='borrowernumber' value='" +
371
                                    borrowernumber +
359
                                    borrowernumber +
372
                                    "'>" +
360
                                    '" data-biblionumber="' +
373
                                    "<input type='hidden' name='reserve_id' value='" +
361
                                    oObj.biblionumber +
362
                                    '" data-id="' +
374
                                    oObj.reserve_id +
363
                                    oObj.reserve_id +
375
                                    "'>"
364
                                    '" href="#">  <i class="fa fa-trash" aria-label="Cancel hold"></i></a>'
376
                                );
365
                                );
377
                            },
366
                            },
378
                        },
367
                        },
379
- 

Return to bug 40395