Bug 30735: Fix filtering by patron attribute with AV in overdues report
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / course_reserves / course-reserves.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE AuthorisedValues %]
4 [% USE TablesSettings %]
5 [% SET footerjs = 1 %]
6 [% PROCESS 'i18n.inc' %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>Course reserves &rsaquo; Koha</title>
9 [% INCLUDE 'doc-head-close.inc' %]
10
11 </head>
12
13 <body id="courses_course_reserves" class="course">
14
15 [% INCLUDE 'header.inc' %]
16 [% INCLUDE 'cat-search.inc' %]
17
18 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
19     <ol>
20         <li>
21             <a href="/cgi-bin/koha/mainpage.pl">Home</a>
22         </li>
23         <li>
24             <a href="#" aria-current="page">Course reserves</a>
25         </li>
26     </ol>
27 </nav>
28
29     <div class="main container-fluid">
30         <div class="row">
31             <div class="col-md-10 col-md-offset-1">
32
33                     [% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_delete_reserves %]
34                     <div id="toolbar">
35                         [% IF ( CAN_user_coursereserves_manage_courses ) %]
36                             <a class="btn btn-default" id="new_course" href="/cgi-bin/koha/course_reserves/course.pl"><i class="fa fa-plus"></i> New course</a>
37                         [% END %]
38                         [% IF ( CAN_user_coursereserves_delete_reserves ) %]
39                             <a class="btn btn-default" id="batch_rm" href="/cgi-bin/koha/course_reserves/batch_rm_items.pl"><i class="fa fa-minus"></i> Batch remove reserves</a>
40                         [% END %]
41                     </div><!-- /toolbar -->
42                     [% END %]
43
44                     <h1>Courses</h1>
45                     <table id="course_reserves_table">
46                         <thead>
47                             <tr>
48                                 <th>Name</th>
49                                 <th>Dept.</th>
50                                 <th>Course #</th>
51                                 <th>Section</th>
52                                 <th>[% tp('Semester', 'Term') | html %]</th>
53                                 <th>Instructors</th>
54                                 <th>Staff note</th>
55                                 <th>Public note</th>
56                                 <th># of students</th>
57                                 <th>Enabled</th>
58                             </tr>
59                         </thead>
60
61                         <tbody>
62                             [% FOREACH c IN courses %]
63                                 <tr>
64                                     <td><a href="course-details.pl?course_id=[% c.course_id | uri %]">[% c.course_name | html %]</a></td>
65                                     <td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) | html %]</td>
66                                     <td>[% c.course_number | html %]</td>
67                                     <td>[% c.section | html %]</td>
68                                     <td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) | html %]</td>
69                                     <td>
70                                         [% FOREACH i IN c.instructors %]
71                                             <div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber | uri %]">[% i.firstname | html %] [% i.surname | html %]</a></div>
72                                         [% END %]
73                                     </td>
74                                     <td>[% c.staff_note | html %]</td>
75                                     <td>[% c.public_note | $raw %]</td>
76                                     <td>[% c.students_count | html %]</td>
77                                     <td>
78                                         [% IF c.enabled == 'yes' %]
79                                             Yes
80                                         [% ELSE %]
81                                             No
82                                         [% END %]
83                                     </td>
84                             [% END %]
85                         </tbody>
86                     </table>
87
88             </div>
89         </div>
90
91 [% MACRO jsinclude BLOCK %]
92     [% INCLUDE 'datatables.inc' %]
93     [% INCLUDE 'columns_settings.inc' %]
94     <script>
95         var table_settings = [% TablesSettings.GetTableSettings( 'coursereserves', 'courses', 'course_reserves_table', 'json' ) | $raw %];
96         $(document).ready(function() {
97             var ctable = KohaTable("course_reserves_table", {
98                 "sPaginationType": "full",
99                 "bAutoWidth": false
100             }, table_settings );
101         });
102     </script>
103 [% END %]
104
105 [% INCLUDE 'intranet-bottom.inc' %]