3 [% USE AuthorisedValues %]
4 [% USE TablesSettings %]
6 [% INCLUDE 'doc-head-open.inc' %]
7 <title>Koha › Course reserves</title>
8 [% INCLUDE 'doc-head-close.inc' %]
12 <body id="courses_course_reserves" class="course">
14 [% INCLUDE 'header.inc' %]
15 [% INCLUDE 'cat-search.inc' %]
17 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a></div>
19 <div class="main container-fluid">
21 <div class="col-md-10 col-md-offset-1">
23 [% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_delete_reserves %]
25 [% IF ( CAN_user_coursereserves_manage_courses ) %]
26 <a class="btn btn-default" id="new_course" href="/cgi-bin/koha/course_reserves/course.pl"><i class="fa fa-plus"></i> New course</a>
28 [% IF ( CAN_user_coursereserves_delete_reserves ) %]
29 <a class="btn btn-default" id="batch_rm" href="/cgi-bin/koha/course_reserves/batch_rm_items.pl"><i class="fa fa-minus"></i> Batch remove reserves</a>
31 </div><!-- /toolbar -->
35 <table id="course_reserves_table">
46 <th># of students</th>
52 [% FOREACH c IN courses %]
54 <td><a href="course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
55 <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) | html %]</td>
56 <td>[% c.course_number | html %]</td>
57 <td>[% c.section | html %]</td>
58 <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) | html %]</td>
60 [% FOREACH i IN c.instructors %]
61 <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% i.firstname | html %] [% i.surname | html %]</a></div>
64 <td>[% c.staff_note | html %]</td>
65 <td>[% c.public_note | $raw %]</td>
66 <td>[% c.students_count | html %]</td>
68 [% IF c.enabled == 'yes' %]
81 [% MACRO jsinclude BLOCK %]
82 [% INCLUDE 'datatables.inc' %]
83 [% INCLUDE 'columns_settings.inc' %]
85 var columns_settings = [% TablesSettings.GetColumns( 'coursereserves', 'courses', 'course_reserves_table', 'json' ) | $raw %];
86 $(document).ready(function() {
87 var ctable = KohaTable("course_reserves_table", {
88 "sPaginationType": "full",
90 }, columns_settings );
95 [% INCLUDE 'intranet-bottom.inc' %]