Bug 8215: Followup FIX QA issues
[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="/intranet-tmpl/prog/en/css/datatables.css" />
7 <script type="text/javascript" src="/intranet-tmpl/prog/en/lib/jquery/plugins/jquery.dataTables.min.js"></script>
8 [% INCLUDE 'datatables-strings.inc' %]
9 <script type="text/javascript" src="/intranet-tmpl/prog/en/js/datatables.js"></script>
10 <script type="text/javascript" id="js">$(document).ready(function() {
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 });
19 </script>
20
21 </head>
22 <body id="lists_shelves" class="lists">
23
24 [% INCLUDE 'header.inc' %]
25 [% INCLUDE 'cat-search.inc' %]
26
27 <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>
28
29 <div id="doc2" class="yui-t7">
30     <div id="bd">
31         <div id="yui-main">
32             <div class="yui-b">
33                 <div class="yui-g">
34
35                     <div id="toolbar">
36                         <script type="text/javascript">
37                         //<![CDATA[
38                             $(document).ready(function(){
39                                 newCourseButton = new YAHOO.widget.Button("new_course");
40                             });
41                         //]]>
42                         </script>
43                         <ul class="toolbar">
44                             [% IF ( CAN_user_coursereserves_manage_courses ) %]
45                             <li><a id="new_course" href="/cgi-bin/koha/course_reserves/course.pl">New course</a></li>
46                             [% END %]
47                         </ul>
48                     </div><!-- /toolbar -->
49
50                     <!--
51                     <div id="search-toolbar">
52                         <script type="text/javascript">
53                         //<![CDATA[
54                             function submitSearchForm(p_oEvent){
55                                 $('#search_courses_form').submit();
56                             }
57
58                             $(document).ready(function(){
59                                 newCourseButton = new YAHOO.widget.Button("search_courses");
60                                 newCourseButton.on("click", submitSearchForm );
61                             });
62                         //]]>
63                         </script>
64                         <ul class="toolbar">
65                             <li><form id="search_courses_form"><input type="text" name="search_on" id="search_on"></form></li>
66                             <li><a id="search_courses">Search courses</a></li>
67                         </ul>
68                     </div>
69                     -->
70
71                     <h1>Courses</h1>
72                     <table id="course_reserves_table">
73                         <thead>
74                             <tr>
75                                 <th>Name</th>
76                                 <th>Dept.</th>
77                                 <th>Course #</th>
78                                 <th>Section</th>
79                                 <th>Term</th>
80                                 <th>Instructors</th>
81                                 <th>Staff note</th>
82                                 <th>Public note</th>
83                                 <th># of Students</th>
84                                 <th>Enabled</th>
85                             </tr>
86                         </thead>
87
88                         <tbody>
89                             [% FOREACH c IN courses %]
90                                 <tr>
91                                     <td><a href="course-details.pl?course_id=[% c.course_id %]">[% c.course_name %]</a></td>
92                                     <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) %]</td>
93                                     <td>[% c.course_number %]</td>
94                                     <td>[% c.section %]</td>
95                                     <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) %]</td>
96                                     <td>
97                                         [% FOREACH i IN c.instructors %]
98                                             <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber %]">[% i.firstname %] [% i.surname %]</a></div>
99                                         [% END %]
100                                     </td>
101                                     <td>[% c.staff_note %]</td>
102                                     <td>[% c.public_note %]</td>
103                                     <td>[% c.students_count %]</td>
104                                     <td>
105                                         [% IF c.enabled == 'yes' %]
106                                             <img src="/intranet-tmpl/prog/img/approve.gif" />
107                                         [% ELSE %]
108                                             <img src="http://kohadev:8080/intranet-tmpl/prog/img/deny.gif" />
109                                         [% END %]
110                                     </td>
111                             [% END %]
112                         </tbody>
113                     </table>
114                 </div>
115             </div>
116         </div>
117     </div>
118 </div>
119
120
121 [% INCLUDE 'intranet-bottom.inc' %]