View | Details | Raw Unified | Return to bug 11713
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-details.tt (-8 / +19 lines)
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 %]&amp;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 %]&amp;action=del"><i class="icon-remove"></i> Delete course</a></li>[% END %]
53
                </ul>
64
                </ul>
54
            </div><!-- /toolbar -->
65
            </div><!-- /toolbar -->
55
66
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course-reserves.tt (-5 / +2 lines)
Lines 4-12 Link Here
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
5
6
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
7
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7
[% INCLUDE 'datatables.inc' %]
8
[% INCLUDE 'datatables-strings.inc' %]
9
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
10
<script type="text/javascript" id="js">
8
<script type="text/javascript" id="js">
11
$(document).ready(function() {
9
$(document).ready(function() {
12
    $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
10
    $("#course_reserves_table").dataTable($.extend(true, {}, dataTablesDefaults, {
Lines 34-40 $(document).ready(function() { Link Here
34
                    <div id="toolbar">
32
                    <div id="toolbar">
35
                        <ul class="toolbar">
33
                        <ul class="toolbar">
36
                            [% IF ( CAN_user_coursereserves_manage_courses ) %]
34
                            [% IF ( CAN_user_coursereserves_manage_courses ) %]
37
                            <li><a class="btn" id="new_course" href="/cgi-bin/koha/course_reserves/course.pl">New course</a></li>
35
                            <li><a class="btn btn-small" id="new_course" href="/cgi-bin/koha/course_reserves/course.pl"><i class="icon-plus"></i> New course</a></li>
38
                            [% END %]
36
                            [% END %]
39
                        </ul>
37
                        </ul>
40
                    </div><!-- /toolbar -->
38
                    </div><!-- /toolbar -->
41
- 

Return to bug 11713