Bug 2774 - Path to theme is hard-coded in many places
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / course_reserves / course-reserves.tt
1 [% USE AuthorisedValues %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Course reserves</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5
6 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
8 [% INCLUDE 'datatables-strings.inc' %]
9 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
10 <script type="text/javascript" id="js">
11 $(document).ready(function() {
12     $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
13         "sPaginationType": "four_button",
14         "aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
15         "iDisplayLength": 20
16     }));
17 });
18 </script>
19
20 </head>
21 <body id="lists_shelves" class="lists">
22
23 [% INCLUDE 'header.inc' %]
24 [% INCLUDE 'cat-search.inc' %]
25
26 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/course_reserves/course-reserves.pl">Course reserves</a></div>
27
28 <div id="doc2" class="yui-t7">
29     <div id="bd">
30         <div id="yui-main">
31             <div class="yui-b">
32                 <div class="yui-g">
33
34                     <div id="toolbar">
35                         <ul class="toolbar">
36                             [% IF ( CAN_user_coursereserves_manage_courses ) %]
37                             <li><a class="btn" id="new_course" href="/cgi-bin/koha/course_reserves/course.pl">New course</a></li>
38                             [% END %]
39                         </ul>
40                     </div><!-- /toolbar -->
41
42                     <!--
43                     <div id="search-toolbar">
44                         <script type="text/javascript">
45                         //<![CDATA[
46                             function submitSearchForm(p_oEvent){
47                                 $('#search_courses_form').submit();
48                             }
49
50                             $(document).ready(function(){
51                                 newCourseButton = new YAHOO.widget.Button("search_courses");
52                                 newCourseButton.on("click", submitSearchForm );
53                             });
54                         //]]>
55                         </script>
56                         <ul class="toolbar">
57                             <li><form id="search_courses_form"><input type="text" name="search_on" id="search_on"></form></li>
58                             <li><a id="search_courses">Search courses</a></li>
59                         </ul>
60                     </div>
61                     -->
62
63                     <h1>Courses</h1>
64                     <table id="course_reserves_table">
65                         <thead>
66                             <tr>
67                                 <th>Name</th>
68                                 <th>Dept.</th>
69                                 <th>Course #</th>
70                                 <th>Section</th>
71                                 <th>Term</th>
72                                 <th>Instructors</th>
73                                 <th>Staff note</th>
74                                 <th>Public note</th>
75                                 <th># of Students</th>
76                                 <th>Enabled</th>
77                             </tr>
78                         </thead>
79
80                         <tbody>
81                             [% FOREACH c IN courses %]
82                                 <tr>
83                                     <td><a href="course-details.pl?course_id=[% c.course_id %]">[% c.course_name %]</a></td>
84                                     <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) %]</td>
85                                     <td>[% c.course_number %]</td>
86                                     <td>[% c.section %]</td>
87                                     <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) %]</td>
88                                     <td>
89                                         [% FOREACH i IN c.instructors %]
90                                             <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber %]">[% i.firstname %] [% i.surname %]</a></div>
91                                         [% END %]
92                                     </td>
93                                     <td>[% c.staff_note %]</td>
94                                     <td>[% c.public_note %]</td>
95                                     <td>[% c.students_count %]</td>
96                                     <td>
97                                         [% IF c.enabled == 'yes' %]
98                                             <img src="[% interface %]/[% theme %]/img/approve.gif" />
99                                         [% ELSE %]
100                                             <img src="[% interface %]/[% theme %]/img/deny.gif" />
101                                         [% END %]
102                                     </td>
103                             [% END %]
104                         </tbody>
105                     </table>
106                 </div>
107             </div>
108         </div>
109     </div>
110 </div>
111
112
113 [% INCLUDE 'intranet-bottom.inc' %]