1 [% USE AuthorisedValues %]
3 [% INCLUDE 'doc-head-open.inc' %]
4 <title>Koha › Course reserves</title>
5 [% INCLUDE 'doc-head-close.inc' %]
7 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables_[% KOHA_VERSION %].css" />
10 <body id="courses_course_reserves" class="course">
12 [% INCLUDE 'header.inc' %]
13 [% INCLUDE 'cat-search.inc' %]
15 <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>
17 <div class="main container-fluid">
19 <div class="col-md-8 col-md-offset-2">
21 [% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %]
23 [% IF ( CAN_user_coursereserves_manage_courses ) %]
24 <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>
26 </div><!-- /toolbar -->
30 <div id="search-toolbar">
31 <script type="text/javascript">
33 function submitSearchForm(p_oEvent){
34 $('#search_courses_form').submit();
37 $(document).ready(function(){
38 newCourseButton = new YAHOO.widget.Button("search_courses");
39 newCourseButton.on("click", submitSearchForm );
44 <li><form id="search_courses_form"><input type="text" name="search_on" id="search_on"></form></li>
45 <li><a id="search_courses">Search courses</a></li>
51 <table id="course_reserves_table">
62 <th># of Students</th>
68 [% FOREACH c IN courses %]
70 <td><a href="course-details.pl?course_id=[% c.course_id %]">[% c.course_name %]</a></td>
71 <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) %]</td>
72 <td>[% c.course_number %]</td>
73 <td>[% c.section %]</td>
74 <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) %]</td>
76 [% FOREACH i IN c.instructors %]
77 <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber %]">[% i.firstname %] [% i.surname %]</a></div>
80 <td>[% c.staff_note %]</td>
81 <td>[% c.public_note %]</td>
82 <td>[% c.students_count %]</td>
84 [% IF c.enabled == 'yes' %]
97 [% MACRO jsinclude BLOCK %]
98 [% INCLUDE 'datatables.inc' %]
99 <script type="text/javascript" id="js">
100 $(document).ready(function() {
101 $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
102 "sPaginationType": "four_button"
108 [% INCLUDE 'intranet-bottom.inc' %]