Lines 3-8
Link Here
|
3 |
[% USE AuthorisedValues %] |
3 |
[% USE AuthorisedValues %] |
4 |
[% USE ItemTypes %] |
4 |
[% USE ItemTypes %] |
5 |
[% USE Branches %] |
5 |
[% USE Branches %] |
|
|
6 |
[% USE ColumnsSettings %] |
6 |
[% SET footerjs = 1 %] |
7 |
[% SET footerjs = 1 %] |
7 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
[% INCLUDE 'doc-head-open.inc' %] |
8 |
<title>Koha › Course reserves › Course details for [% course.course_name | html %]</title> |
9 |
<title>Koha › Course reserves › Course details for [% course.course_name | html %]</title> |
Lines 20-26
Link Here
|
20 |
|
21 |
|
21 |
<div class="main container-fluid"> |
22 |
<div class="main container-fluid"> |
22 |
<div class="row"> |
23 |
<div class="row"> |
23 |
<div class="col-md-8 col-md-offset-2"> |
24 |
<div class="col-md-10 col-md-offset-1"> |
24 |
|
25 |
|
25 |
[% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %] |
26 |
[% IF CAN_user_coursereserves_add_reserves OR CAN_user_coursereserves_manage_courses OR CAN_user_coursereserves_manage_courses %] |
26 |
<div id="toolbar"> |
27 |
<div id="toolbar"> |
Lines 53-60
Link Here
|
53 |
</div> |
54 |
</div> |
54 |
|
55 |
|
55 |
[% IF course_reserves %] |
56 |
[% IF course_reserves %] |
|
|
57 |
<h1>Reserves</h1> |
56 |
<table id="course_reserves_table"> |
58 |
<table id="course_reserves_table"> |
57 |
<caption>Reserves</caption> |
|
|
58 |
<thead> |
59 |
<thead> |
59 |
<tr> |
60 |
<tr> |
60 |
<th class="antithe">Title</th> |
61 |
<th class="antithe">Title</th> |
Lines 202-216
Link Here
|
202 |
|
203 |
|
203 |
[% MACRO jsinclude BLOCK %] |
204 |
[% MACRO jsinclude BLOCK %] |
204 |
[% INCLUDE 'datatables.inc' %] |
205 |
[% INCLUDE 'datatables.inc' %] |
205 |
<script type="text/javascript"> |
206 |
[% INCLUDE 'columns_settings.inc' %] |
|
|
207 |
<script> |
208 |
var columns_settings = [% ColumnsSettings.GetColumns( 'coursereserves', 'reserves', 'course_reserves_table', 'json' ) | $raw %]; |
206 |
$(document).ready(function(){ |
209 |
$(document).ready(function(){ |
207 |
$("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, { |
210 |
var rtable = KohaTable("course_reserves_table", { |
208 |
"sPaginationType": "four_button", |
211 |
"sPaginationType": "four_button", |
|
|
212 |
"bAutoWidth": false, |
209 |
"aoColumnDefs": [ |
213 |
"aoColumnDefs": [ |
210 |
{ 'bSortable': false, 'aTargets': [ 'NoSort' ] }, |
214 |
{ 'bSortable': false, 'aTargets': [ 'NoSort' ] }, |
211 |
{ 'sType': "anti-the", 'aTargets' : [ 'antithe'] } |
215 |
{ 'sType': "anti-the", 'aTargets' : [ 'antithe'] } |
212 |
] |
216 |
] |
213 |
})); |
217 |
}, columns_settings ); |
214 |
|
218 |
|
215 |
$(".delete_item").click(function(){ |
219 |
$(".delete_item").click(function(){ |
216 |
return confirmDelete(_("Are you sure you want to remove this item from the course?")); |
220 |
return confirmDelete(_("Are you sure you want to remove this item from the course?")); |