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

(-)a/Koha/Illrequest.pm (-6 / +6 lines)
Lines 231-242 sub _core_status_graph { Link Here
231
            ui_method_icon => 'fa-plus',                   # UI Style class
231
            ui_method_icon => 'fa-plus',                   # UI Style class
232
        },
232
        },
233
        REQ => {
233
        REQ => {
234
            prev_actions   => [ 'NEW', 'REQREV', 'QUEUED' ],
234
            prev_actions   => [ 'NEW', 'REQREV', 'QUEUED', 'CANCREQ' ],
235
            id             => 'REQ',
235
            id             => 'REQ',
236
            name           => 'Requested',
236
            name           => 'Requested',
237
            ui_method_name => 'Confirm request',
237
            ui_method_name => 'Confirm request',
238
            method         => 'confirm',
238
            method         => 'confirm',
239
            next_actions   => [ 'REQREV', 'CANCREQ', 'COMP' ],
239
            next_actions   => [ 'REQREV', 'COMP' ],
240
            ui_method_icon => 'fa-check',
240
            ui_method_icon => 'fa-check',
241
        },
241
        },
242
        GENREQ => {
242
        GENREQ => {
Lines 249-255 sub _core_status_graph { Link Here
249
            ui_method_icon => 'fa-send-o',
249
            ui_method_icon => 'fa-send-o',
250
        },
250
        },
251
        REQREV => {
251
        REQREV => {
252
            prev_actions   => [ 'CANCREQ', 'REQ' ],
252
            prev_actions   => [ 'REQ' ],
253
            id             => 'REQREV',
253
            id             => 'REQREV',
254
            name           => 'Request reverted',
254
            name           => 'Request reverted',
255
            ui_method_name => 'Revert Request',
255
            ui_method_name => 'Revert Request',
Lines 267-278 sub _core_status_graph { Link Here
267
            ui_method_icon => 0,
267
            ui_method_icon => 0,
268
        },
268
        },
269
        CANCREQ => {
269
        CANCREQ => {
270
            prev_actions   => [ 'REQ' ],
270
            prev_actions   => [ 'NEW' ],
271
            id             => 'CANCREQ',
271
            id             => 'CANCREQ',
272
            name           => 'Cancellation requested',
272
            name           => 'Cancellation requested',
273
            ui_method_name => 0,
273
            ui_method_name => 0,
274
            method         => 0,
274
            method         => 0,
275
            next_actions   => [ 'REQREV' ],
275
            next_actions   => [ 'KILL', 'REQ' ],
276
            ui_method_icon => 0,
276
            ui_method_icon => 0,
277
        },
277
        },
278
        COMP => {
278
        COMP => {
Lines 285-291 sub _core_status_graph { Link Here
285
            ui_method_icon => 'fa-check',
285
            ui_method_icon => 'fa-check',
286
        },
286
        },
287
        KILL => {
287
        KILL => {
288
            prev_actions   => [ 'QUEUED', 'REQREV', 'NEW' ],
288
            prev_actions   => [ 'QUEUED', 'REQREV', 'NEW', 'CANCREQ' ],
289
            id             => 'KILL',
289
            id             => 'KILL',
290
            name           => 0,
290
            name           => 0,
291
            ui_method_name => 'Delete request',
291
            ui_method_name => 'Delete request',
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-illrequests.tt (-2 / +1 lines)
Lines 183-189 Link Here
183
                                <input type="hidden" name="illrequest_id" value="[% request.illrequest_id %]">
183
                                <input type="hidden" name="illrequest_id" value="[% request.illrequest_id %]">
184
                                <input type="hidden" name="method" value="update">
184
                                <input type="hidden" name="method" value="update">
185
                                [% IF !request.completed %]
185
                                [% IF !request.completed %]
186
                                    [% IF request.status != "CANCREQ" %]
186
                                    [% IF request.status == "NEW" %]
187
                                        <a class="cancel-illrequest btn btn-danger" href="/cgi-bin/koha/opac-illrequests.pl?method=cancreq&amp;illrequest_id=[% request.illrequest_id %]">Request cancellation</a>
187
                                        <a class="cancel-illrequest btn btn-danger" href="/cgi-bin/koha/opac-illrequests.pl?method=cancreq&amp;illrequest_id=[% request.illrequest_id %]">Request cancellation</a>
188
                                    [% END %]
188
                                    [% END %]
189
                                    <input type="submit" class="update-illrequest btn btn-default" value="Submit modifications">
189
                                    <input type="submit" class="update-illrequest btn btn-default" value="Submit modifications">
190
- 

Return to bug 7317