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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/rotating_collections/rotatingCollections.tt (-16 / +32 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
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
6
[% INCLUDE 'datatables.inc' %]
5
<script type="text/javascript">
7
<script type="text/javascript">
6
    $(document).ready(function(){
8
    $(document).ready(function(){
7
        $(".confirmdelete").click(function(){
9
        $(".confirmdelete").click(function(){
Lines 13-18 Link Here
13
                return false;
15
                return false;
14
            }
16
            }
15
        });
17
        });
18
        $('#rotating-collections-table').dataTable($.extend(true, {}, dataTablesDefaults, {
19
            "autoWidth": false,
20
            "aoColumnDefs": [
21
                { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
22
            ],
23
            "sPaginationType": "four_button"
24
        } ));
16
    });
25
    });
17
</script>
26
</script>
18
</head>
27
</head>
Lines 32-59 Link Here
32
                <h1>Rotating collections</h1>
41
                <h1>Rotating collections</h1>
33
                <div>
42
                <div>
34
                    [% IF ( collectionsLoop ) %]
43
                    [% IF ( collectionsLoop ) %]
35
                        <table>
44
                        <table id="rotating-collections-table">
36
                            <tr>
45
                            <thead>
37
                                <th>Title</th>
46
                                <tr>
38
                                <th>Description</th>
47
                                    <th>Title</th>
39
                                <th>Current location</th>
48
                                    <th>Description</th>
40
                                <th>&nbsp;</th>
49
                                    <th>Current location</th>
41
                                <th>&nbsp;</th>
50
                                    <th>&nbsp;</th>
42
                                <th>&nbsp;</th>
51
                                </tr>
43
                                <th>&nbsp;</th>
52
                            </thead>
44
                            </tr>
53
                            <tbody>
45
46
                            [% FOREACH collectionsLoo IN collectionsLoop %]
54
                            [% FOREACH collectionsLoo IN collectionsLoop %]
47
                                <tr>
55
                                <tr>
48
                                    <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">[% collectionsLoo.colTitle %]</a></td>
56
                                    <td><a href="/cgi-bin/koha/rotating_collections/addItems.pl?colId=[% collectionsLoo.colId %]">[% collectionsLoo.colTitle %]</a></td>
49
                                    <td>[% collectionsLoo.colDesc %]</td>
57
                                    <td>[% collectionsLoo.colDesc %]</td>
50
                                    <td>[% Branches.GetName( collectionsLoo.colBranchcode ) %]</td>
58
                                    <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>
59
                                    <td>
52
                                    <td><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]">Transfer</a></td>
60
                                    <div class="dropdown">
53
                                    <td><a href="/cgi-bin/koha/rotating_collections/editCollections.pl?action=edit&amp;colId=[% collectionsLoo.colId %]">Edit</a></td>
61
                                        <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>
62
                                        Actions <b class="caret"></b></a>
63
                                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="collectionsactions[% collectionsLoo.colId %]">
64
                                            <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>
65
                                            <li><a href="/cgi-bin/koha/rotating_collections/transferCollection.pl?colId=[% collectionsLoo.colId %]"><i class="fa fa-exchange"></i> Transfer</a></li>
66
                                            <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>
67
                                            <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>
68
                                        </ul>
69
                                    </div>
70
                                    </td>
55
                                </tr>
71
                                </tr>
56
                            [% END %]
72
                            [% END %]
73
                            </tbody>
57
                        </table>
74
                        </table>
58
                    [% ELSE %]
75
                    [% ELSE %]
59
                        <div class="dialog message">There are no collections currently defined.</div>
76
                        <div class="dialog message">There are no collections currently defined.</div>
60
- 

Return to bug 15830