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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt (-9 / +21 lines)
Lines 2-7 Link Here
2
[% INCLUDE 'doc-head-open.inc' %]
2
[% INCLUDE 'doc-head-open.inc' %]
3
<title>Koha &rsaquo; Tools &rsaquo; Rotating collections</title>
3
<title>Koha &rsaquo; Tools &rsaquo; Rotating collections</title>
4
[% INCLUDE 'doc-head-close.inc' %]
4
[% INCLUDE 'doc-head-close.inc' %]
5
[% INCLUDE 'datatables.inc' %]
5
<script type="text/javascript">
6
<script type="text/javascript">
6
    $(document).ready(function(){
7
    $(document).ready(function(){
7
        $(".confirmdelete").click(function(){
8
        $(".confirmdelete").click(function(){
Lines 13-18 Link Here
13
                return false;
14
                return false;
14
            }
15
            }
15
        });
16
        });
17
        $('#rotating-collections-table').dataTable($.extend(true, {}, dataTablesDefaults, {
18
            "autoWidth": false,
19
            "aoColumnDefs": [
20
                { "aTargets": [ -1, -2, -3, -4 ], "bSortable": false, "bSearchable": false },
21
            ],
22
            "sPaginationType": "four_button"
23
        } ));
16
    });
24
    });
17
</script>
25
</script>
18
</head>
26
</head>
Lines 32-46 Link Here
32
                <h1>Rotating collections</h1>
40
                <h1>Rotating collections</h1>
33
                <div>
41
                <div>
34
                    [% IF ( collectionsLoop ) %]
42
                    [% IF ( collectionsLoop ) %]
35
                        <table>
43
                        <table id="rotating-collections-table">
36
                            <tr>
44
                            <tr>
37
                                <th>Title</th>
45
                                <th>Title</th>
38
                                <th>Description</th>
46
                                <th>Description</th>
39
                                <th>Current location</th>
47
                                <th>Current location</th>
40
                                <th>&nbsp;</th>
48
                                <th>&nbsp;</th>
41
                                <th>&nbsp;</th>
42
                                <th>&nbsp;</th>
43
                                <th>&nbsp;</th>
44
                            </tr>
49
                            </tr>
45
50
46
                            [% FOREACH collectionsLoo IN collectionsLoop %]
51
                            [% FOREACH collectionsLoo IN collectionsLoop %]
Lines 48-57 Link Here
48
                                    <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">[% collectionsLoo.colTitle %]</a></td>
53
                                    <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">[% collectionsLoo.colTitle %]</a></td>
49
                                    <td>[% collectionsLoo.colDesc %]</td>
54
                                    <td>[% collectionsLoo.colDesc %]</td>
50
                                    <td>[% Branches.GetName( collectionsLoo.colBranchcode ) %]</td>
55
                                    <td>[% Branches.GetName( collectionsLoo.colBranchcode ) %]</td>
51
                                    <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">Add or remove items</a></td>
56
                                    <td>
52
                                    <td><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]">Transfer</a></td>
57
                                    <div class="dropdown">
53
                                    <td><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&amp;colId=[% collectionsLoo.colId %]">Edit</a></td>
58
                                        <a class="btn btn-mini" dropdown-toggle" id="collectionsactions[% collectionsLoo.colId %]" role="button" data-toggle="dropdown" href="#">
54
                                    <td><a class="confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&amp;colId=[% collectionsLoo.colId %]">Delete</a></td>
59
                                        Actions <b class="caret"></b></a>
60
                                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId %]">
61
                                            <li><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-plus"></i> Add or remove items</a></li>
62
                                            <li><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-exchange"></i> Transfer</a></li>
63
                                            <li><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&amp;colId=[% collectionsLoo.colId %]"><i class="fa fa-pencil"></i> Edit</a></li>
64
                                            <li><a class="confirmdelete" href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=delete&amp;colId=[% collectionsLoo.colId %]"><i class="fa fa-trash"></i> Delete</a></li>
65
                                        </ul>
66
                                    </div>
67
                                    </td>
55
                                </tr>
68
                                </tr>
56
                            [% END %]
69
                            [% END %]
57
                        </table>
70
                        </table>
58
- 

Return to bug 15830