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 %]
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 </div><!-- /toolbar -->
32 <table id="course_reserves_table">
43 <th># of students</th>
49 [% FOREACH c IN courses %]
51 <td><a href="course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
52 <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) | html %]</td>
53 <td>[% c.course_number | html %]</td>
54 <td>[% c.section | html %]</td>
55 <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) | html %]</td>
57 [% FOREACH i IN c.instructors %]
58 <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% i.firstname | html %] [% i.surname | html %]</a></div>
61 <td>[% c.staff_note | html %]</td>
62 <td>[% c.public_note | $raw %]</td>
63 <td>[% c.students_count | html %]</td>
65 [% IF c.enabled == 'yes' %]
78 [% MACRO jsinclude BLOCK %]
79 [% INCLUDE 'datatables.inc' %]
80 [% INCLUDE 'columns_settings.inc' %]
82 var columns_settings = [% TablesSettings.GetColumns( 'coursereserves', 'courses', 'course_reserves_table', 'json' ) | $raw %];
83 $(document).ready(function() {
84 var ctable = KohaTable("course_reserves_table", {
85 "sPaginationType": "full",
87 }, columns_settings );
92 [% INCLUDE 'intranet-bottom.inc' %]