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 248-263 Link Here
248
                            </td>
248
                            </td>
249
249
250
                            [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
250
                            [% IF CAN_user_coursereserves_add_reserves || CAN_user_coursereserves_delete_reserves %]
251
                                <td class="actions">
251
                                [% IF user.can_edit_item( cr.item ) %]
252
                                    [% IF CAN_user_coursereserves_add_reserves %]
252
                                    <td class="actions">
253
                                        <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>
253
                                        [% IF CAN_user_coursereserves_add_reserves %]
254
                                    [% END %]
254
                                            <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>
255
                                        [% END %]
255
256
256
                                    [% IF CAN_user_coursereserves_delete_reserves %]
257
                                        [% IF CAN_user_coursereserves_delete_reserves %]
257
                                        <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 %]">
258
                                            <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 %]">
258
                                        <i class="fa fa-trash"></i> Remove</a>
259
                                            <i class="fa fa-trash"></i> Remove</a>
259
                                    [% END %]
260
                                        [% END %]
260
                                </td>
261
                                    </td>
262
                                [% END %]
261
                            [% END %]
263
                            [% END %]
262
264
263
                        </tr>
265
                        </tr>
264
- 

Return to bug 20256