Bug 20538: Remove the need of writing [% KOHA_VERSION %] everywhere
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / modules / opac-course-reserves.tt
1 [% USE Asset %]
2 [% USE Koha %]
3 [% USE AuthorisedValues %]
4
5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] catalog &rsaquo; Courses</title>
7 [% INCLUDE 'doc-head-close.inc' %]
8 [% BLOCK cssinclude %]
9     [% Asset.css("css/datatables.css") %]
10 [% END %]
11
12 </head>
13 [% INCLUDE 'bodytag.inc' bodyid='opac-main' %]
14 [% INCLUDE 'masthead.inc' %]
15
16 <div class="main">
17     <ul class="breadcrumb">
18         <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">&rsaquo;</span></li>
19         <li><a href="#">Course reserves</a></li>
20     </ul>
21
22     <div class="container-fluid">
23         <div class="row-fluid">
24             <div class="span12">
25
26                     <h1>Courses</h1>
27
28                     <table id="course_reserves_table" class="table table-bordered table-striped table-condensed">
29                         <thead>
30                             <tr>
31                                 <th>Name</th>
32                                 <th>Dept.</th>
33                                 <th>Course #</th>
34                                 <th>Section</th>
35                                 <th>Term</th>
36                                 <th>Instructors</th>
37                                 <th>Notes</th>
38                             </tr>
39                         </thead>
40
41                         <tbody>
42                             [% FOREACH c IN courses %]
43                                 <tr>
44                                     <td><a href="opac-course-details.pl?course_id=[% c.course_id %]">[% c.course_name %]</a></td>
45                                     <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department, 1 ) %]</td>
46                                     <td>[% c.course_number %]</td>
47                                     <td>[% c.section %]</td>
48                                     <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) %]</td>
49                                     <td>
50                                       [% FOREACH i IN c.instructors %]
51                                           <div class="instructor"><span class"inst_surname">[% i.surname %]</span>[% IF i.firstname %]<span class="instr_separator">, </span><span class="instr_firstname">[% i.firstname %]</span>[% END %]</div>
52                                       [% END %]
53                                     </td>
54                                     <td>[% c.public_note %]</td>
55                             [% END %]
56                         </tbody>
57                     </table>
58             </div> <!-- / .span12 -->
59         </div> <!-- / .row-fluid -->
60     </div> <!-- / .container-fluid -->
61 </div> <!-- / .main -->
62 [% INCLUDE 'opac-bottom.inc' %]
63 [% BLOCK jsinclude %]
64     [% INCLUDE 'datatables.inc' %]
65     <script type="text/javascript">
66     $(document).ready(function() {
67         $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
68             "sDom": '<"top"flp>rt<"clear">',
69         }));
70     });
71     </script>
72 [% END %]