Lines 6-14
Link Here
|
6 |
[% INCLUDE 'doc-head-close.inc' %] |
6 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
|
7 |
|
8 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
8 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
9 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
9 |
[% INCLUDE 'datatables.inc' %] |
10 |
[% INCLUDE 'datatables-strings.inc' %] |
|
|
11 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> |
12 |
<script type="text/javascript"> |
10 |
<script type="text/javascript"> |
13 |
//<![CDATA[ |
11 |
//<![CDATA[ |
14 |
$(document).ready(function(){ |
12 |
$(document).ready(function(){ |
Lines 17-24
Link Here
|
17 |
"aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], |
15 |
"aLengthMenu": [[10, 20, 50, 100, -1], [10, 20, 50, 100, "All"]], |
18 |
"iDisplayLength": 20, |
16 |
"iDisplayLength": 20, |
19 |
"aoColumnDefs": [ |
17 |
"aoColumnDefs": [ |
20 |
{ 'bSortable': false, 'aTargets': [ 9, 10, 11 ] } |
18 |
[% IF ( CAN_user_coursereserves_add_reserves ) %] |
21 |
] |
19 |
[% IF ( CAN_user_coursereserves_delete_reserves ) %] |
|
|
20 |
{ 'bSortable': false, 'aTargets': [ -1, -2, -3 ] } |
21 |
[% ELSE %] |
22 |
{ 'bSortable': false, 'aTargets': [ -1, -2 ] } |
23 |
[% END %] |
24 |
[% ELSIF ( CAN_user_coursereserves_delete_reserves ) %] |
25 |
{ 'bSortable': false, 'aTargets': [ -1, -2 ] } |
26 |
[% ELSE %] |
27 |
{ 'bSortable': false, 'aTargets': [ -1 ] } |
28 |
[% END %] |
29 |
], |
30 |
"aoColumns": [ |
31 |
{ "sType": "anti-the" },null,null,[% IF item_level_itypes %]null,[% END %]null,null,null,null,null,[% IF CAN_user_coursereserves_add_reserves %]null,[% END %][% IF CAN_user_coursereserves_delete_reserves %]null,[% END %]null |
32 |
], |
22 |
})); |
33 |
})); |
23 |
|
34 |
|
24 |
$("a.delete_item").click(function(){ |
35 |
$("a.delete_item").click(function(){ |
Lines 47-55
Link Here
|
47 |
<div id="yui-main"> |
58 |
<div id="yui-main"> |
48 |
<div id="toolbar"> |
59 |
<div id="toolbar"> |
49 |
<ul class="toolbar"> |
60 |
<ul class="toolbar"> |
50 |
[% IF CAN_user_coursereserves_add_reserves %]<li><a class="btn" id="add_items" href="/cgi-bin/koha/course_reserves/add_items.pl?course_id=[% course.course_id %]"><i class="icon-plus"></i> Add reserves</a></li>[% END %] |
61 |
[% IF CAN_user_coursereserves_add_reserves %]<li><a class="btn btn-small" id="add_items" href="/cgi-bin/koha/course_reserves/add_items.pl?course_id=[% course.course_id %]"><i class="icon-plus"></i> Add reserves</a></li>[% END %] |
51 |
[% IF ( CAN_user_coursereserves_manage_courses ) %]<li><a class="btn" id="edit_course" href="/cgi-bin/koha/course_reserves/course.pl?course_id=[% course.course_id %]"><i class="icon-pencil"></i> Edit course</a></li>[% END %] |
62 |
[% IF ( CAN_user_coursereserves_manage_courses ) %]<li><a class="btn btn-small" id="edit_course" href="/cgi-bin/koha/course_reserves/course.pl?course_id=[% course.course_id %]"><i class="icon-pencil"></i> Edit course</a></li>[% END %] |
52 |
[% IF ( CAN_user_coursereserves_manage_courses ) %]<li><a class="btn" id="delete_course" href="/cgi-bin/koha/course_reserves/mod_course.pl?course_id=[% course.course_id %]&action=del"><i class="icon-remove"></i> Delete course</a></li>[% END %] |
63 |
[% IF ( CAN_user_coursereserves_manage_courses ) %]<li><a class="btn btn-small" id="delete_course" href="/cgi-bin/koha/course_reserves/mod_course.pl?course_id=[% course.course_id %]&action=del"><i class="icon-remove"></i> Delete course</a></li>[% END %] |
53 |
</ul> |
64 |
</ul> |
54 |
</div><!-- /toolbar --> |
65 |
</div><!-- /toolbar --> |
55 |
|
66 |
|