3 [% USE AuthorisedValues %]
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Course reserves</title>
7 [% INCLUDE 'doc-head-close.inc' %]
9 [% Asset.css("css/datatables.css") | $raw %]
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-8 col-md-offset-2">
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 btn-sm" id="new_course" href="/cgi-bin/koha/course_reserves/course.pl"><i class="fa fa-plus"></i> New course</a>
28 </div><!-- /toolbar -->
32 <div id="search-toolbar">
33 <script type="text/javascript">
35 function submitSearchForm(p_oEvent){
36 $('#search_courses_form').submit();
39 $(document).ready(function(){
40 newCourseButton = new YAHOO.widget.Button("search_courses");
41 newCourseButton.on("click", submitSearchForm );
46 <li><form id="search_courses_form"><input type="text" name="search_on" id="search_on"></form></li>
47 <li><a id="search_courses">Search courses</a></li>
53 <table id="course_reserves_table">
64 <th># of Students</th>
70 [% FOREACH c IN courses %]
72 <td><a href="course-details.pl?course_id=[% c.course_id | html %]">[% c.course_name | html %]</a></td>
73 <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) | html %]</td>
74 <td>[% c.course_number | html %]</td>
75 <td>[% c.section | html %]</td>
76 <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) | html %]</td>
78 [% FOREACH i IN c.instructors %]
79 <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | html %]">[% i.firstname | html %] [% i.surname | html %]</a></div>
82 <td>[% c.staff_note | html %]</td>
83 <td>[% c.public_note | html %]</td>
84 <td>[% c.students_count | html %]</td>
86 [% IF c.enabled == 'yes' %]
99 [% MACRO jsinclude BLOCK %]
100 [% INCLUDE 'datatables.inc' %]
101 <script type="text/javascript" id="js">
102 $(document).ready(function() {
103 $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
104 "sPaginationType": "four_button"
110 [% INCLUDE 'intranet-bottom.inc' %]