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

(-)a/course_reserves/course-details.pl (+1 lines)
Lines 67-72 my $course_reserves = GetCourseReserves( Link Here
67
$template->param(
67
$template->param(
68
    course          => $course,
68
    course          => $course,
69
    course_reserves => $course_reserves,
69
    course_reserves => $course_reserves,
70
    user            => Koha::Patrons->find( $loggedinuser ),
70
);
71
);
71
72
72
output_html_with_http_headers $cgi, $cookie, $template->output;
73
output_html_with_http_headers $cgi, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-10 / +11 lines)
Lines 262-277 Link Here
262
                            </td>
262
                            </td>
263
263
264
                            [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
264
                            [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
265
                                <td class="actions">
265
                                [% IF user.can_edit_item( cr.item ) %]
266
                                    [% IF CAN_user_coursereserves_add_reserves %]
266
                                    <td class="actions">
267
                                        <a class="btn btn-default btn-xs" href="add_items.pl?course_id=[% course.course_id | html %]&amp;itemnumber=[% cr.item.itemnumber | html %]&amp;action=lookup&amp;return=[% course.course_id | html %]&amp;is_edit=1"><i class="fa fa-pencil"></i> Edit</a>
267
                                        [% IF CAN_user_coursereserves_add_reserves %]
268
                                    [% END %]
268
                                            <a class="btn btn-default btn-xs" href="add_items.pl?course_id=[% course.course_id | html %]&amp;itemnumber=[% cr.item.itemnumber | html %]&amp;action=lookup&amp;return=[% course.course_id | html %]&amp;is_edit=1"><i class="fa fa-pencil"></i> Edit</a>
269
                                        [% END %]
269
270
270
                                    [% IF CAN_user_coursereserves_delete_reserves %]
271
                                        [% IF CAN_user_coursereserves_delete_reserves %]
271
                                        <a class="btn btn-default btn-xs delete_item" href="course-details.pl?course_id=[% course.course_id | html %]&amp;action=del_reserve&amp;cr_id=[% cr.cr_id | html %]">
272
                                            <a class="btn btn-default btn-xs delete_item" href="course-details.pl?course_id=[% course.course_id | html %]&amp;action=del_reserve&amp;cr_id=[% cr.cr_id | html %]">
272
                                        <i class="fa fa-trash"></i> Remove</a>
273
                                            <i class="fa fa-trash"></i> Remove</a>
273
                                    [% END %]
274
                                        [% END %]
274
                                </td>
275
                                    </td>
276
                                [% END %]
275
                            [% END %]
277
                            [% END %]
276
278
277
                        </tr>
279
                        </tr>
278
- 

Return to bug 20256