Koha/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt
Owen Leonard 32fa69ee36 Bug 2774 - Path to theme is hard-coded in many places
This patch corrects serveral more places in the templates where the path
to the prog theme is hard-coded. To test, apply the patch and view the
following cases:

- When a database update is triggered the login page loads login.css.
  This path should be correct. (Reference to wizard.css is removed as
  per Bug 10422).
- The course reserves home page should load datatables-related assets
  correctly.
- Help pages for the Quick spine label creator and the staff client home
  page should show the correct paths where they reference the Koha file
  system.
- The web installer pages should correctly load the Koha logo.
- The label creator "manage" pages (layouts, templates, etc.) should
  correctly load datatables-related assets.

Signed-off-by: Liz Rea <liz@catalyst.net.nz>
Checked all 5 - look good.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-06-07 09:04:15 -07:00

113 lines
5 KiB
Text

[% USE AuthorisedValues %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; Course reserves</title>
[% INCLUDE 'doc-head-close.inc' %]
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
[% INCLUDE 'datatables-strings.inc' %]
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
<script type="text/javascript" id="js">
$(document).ready(function() {
$("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
"sPaginationType": "four_button",
"aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]],
"iDisplayLength": 20
}));
});
</script>
</head>
<body id="lists_shelves" class="lists">
[% INCLUDE 'header.inc' %]
[% INCLUDE 'cat-search.inc' %]
<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>
<div id="doc2" class="yui-t7">
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<div class="yui-g">
<div id="toolbar">
<ul class="toolbar">
[% IF ( CAN_user_coursereserves_manage_courses ) %]
<li><a class="btn" id="new_course" href="/cgi-bin/koha/course_reserves/course.pl">New course</a></li>
[% END %]
</ul>
</div><!-- /toolbar -->
<!--
<div id="search-toolbar">
<script type="text/javascript">
//<![CDATA[
function submitSearchForm(p_oEvent){
$('#search_courses_form').submit();
}
$(document).ready(function(){
newCourseButton = new YAHOO.widget.Button("search_courses");
newCourseButton.on("click", submitSearchForm );
});
//]]>
</script>
<ul class="toolbar">
<li><form id="search_courses_form"><input type="text" name="search_on" id="search_on"></form></li>
<li><a id="search_courses">Search courses</a></li>
</ul>
</div>
-->
<h1>Courses</h1>
<table id="course_reserves_table">
<thead>
<tr>
<th>Name</th>
<th>Dept.</th>
<th>Course #</th>
<th>Section</th>
<th>Term</th>
<th>Instructors</th>
<th>Staff note</th>
<th>Public note</th>
<th># of Students</th>
<th>Enabled</th>
</tr>
</thead>
<tbody>
[% FOREACH c IN courses %]
<tr>
<td><a href="course-details.pl?course_id=[% c.course_id %]">[% c.course_name %]</a></td>
<td>[% AuthorisedValues.GetByCode( 'DEPARTMENT', c.department ) %]</td>
<td>[% c.course_number %]</td>
<td>[% c.section %]</td>
<td>[% AuthorisedValues.GetByCode( 'TERM' c.term ) %]</td>
<td>
[% FOREACH i IN c.instructors %]
<div class="instructor"><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% i.borrowernumber %]">[% i.firstname %] [% i.surname %]</a></div>
[% END %]
</td>
<td>[% c.staff_note %]</td>
<td>[% c.public_note %]</td>
<td>[% c.students_count %]</td>
<td>
[% IF c.enabled == 'yes' %]
<img src="[% interface %]/[% theme %]/img/approve.gif" />
[% ELSE %]
<img src="[% interface %]/[% theme %]/img/deny.gif" />
[% END %]
</td>
[% END %]
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
[% INCLUDE 'intranet-bottom.inc' %]