Bug 14915: Use Font Awesome instead of Glyphicons for the staff intranet
[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 [% INCLUDE 'datatables.inc' %]
8 <script type="text/javascript" id="js">
9 $(document).ready(function() {
10     $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
11         "sPaginationType": "four_button"
12     }));
13 });
14 </script>
15
16 </head>
17 <body id="courses_course_reserves" class="course">
18
19 [% INCLUDE 'header.inc' %]
20 [% INCLUDE 'cat-search.inc' %]
21
22 <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>
23
24 <div id="doc2" class="yui-t7">
25     <div id="bd">
26         <div id="yui-main">
27             <div class="yui-b">
28                 <div class="yui-g">
29                     [% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %]
30                     <div id="toolbar">
31                         <ul class="toolbar">
32                             [% IF ( CAN_user_coursereserves_manage_courses ) %]
33                             <li><a class="btn btn-small" id="new_course" href="/cgi-bin/koha/course_reserves/course.pl"><i class="fa fa-plus"></i> New course</a></li>
34                             [% END %]
35                         </ul>
36                     </div><!-- /toolbar -->
37                     [% END %]
38
39                     <!--
40                     <div id="search-toolbar">
41                         <script type="text/javascript">
42                         //<![CDATA[
43                             function submitSearchForm(p_oEvent){
44                                 $('#search_courses_form').submit();
45                             }
46
47                             $(document).ready(function(){
48                                 newCourseButton = new YAHOO.widget.Button("search_courses");
49                                 newCourseButton.on("click", submitSearchForm );
50                             });
51                         //]]>
52                         </script>
53                         <ul class="toolbar">
54                             <li><form id="search_courses_form"><input type="text" name="search_on" id="search_on"></form></li>
55                             <li><a id="search_courses">Search courses</a></li>
56                         </ul>
57                     </div>
58                     -->
59
60                     <h1>Courses</h1>
61                     <table id="course_reserves_table">
62                         <thead>
63                             <tr>
64                                 <th>Name</th>
65                                 <th>Dept.</th>
66                                 <th>Course #</th>
67                                 <th>Section</th>
68                                 <th>Term</th>
69                                 <th>Instructors</th>
70                                 <th>Staff note</th>
71                                 <th>Public note</th>
72                                 <th># of Students</th>
73                                 <th>Enabled</th>
74                             </tr>
75                         </thead>
76
77                         <tbody>
78                             [% FOREACH c IN courses %]
79                                 <tr>
80                                     <td><a href="course-details.pl?course_id=[% c.course_id %]">[% c.course_name %]</a></td>
81                                     <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) %]</td>
82                                     <td>[% c.course_number %]</td>
83                                     <td>[% c.section %]</td>
84                                     <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) %]</td>
85                                     <td>
86                                         [% FOREACH i IN c.instructors %]
87                                             <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber %]">[% i.firstname %] [% i.surname %]</a></div>
88                                         [% END %]
89                                     </td>
90                                     <td>[% c.staff_note %]</td>
91                                     <td>[% c.public_note %]</td>
92                                     <td>[% c.students_count %]</td>
93                                     <td>
94                                         [% IF c.enabled == 'yes' %]
95                                             Yes
96                                         [% ELSE %]
97                                             No
98                                         [% END %]
99                                     </td>
100                             [% END %]
101                         </tbody>
102                     </table>
103                 </div>
104             </div>
105         </div>
106     </div>
107 </div>
108
109
110 [% INCLUDE 'intranet-bottom.inc' %]