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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroups.tt (-79 / +78 lines)
Lines 29-118 Link Here
29
        Basket groups
29
        Basket groups
30
    </div>
30
    </div>
31
31
32
    <div id="doc3" class="yui-t2">
32
    <div class="main container-fluid">
33
        <div id="bd">
33
        <div class="row">
34
            <div id="yui-main">
34
            <div class="col-sm-10 col-sm-push-2">
35
                <div class="yui-b">
35
                [% IF bookseller %]
36
                    [% IF bookseller %]
36
                    <div id="toolbar" class="btn-toolbar">
37
                        <div id="toolbar" class="btn-toolbar">
37
                        <div class="btn-group">
38
                            <div class="btn-group">
38
                            <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&amp;booksellerid=[% bookseller.id | $raw %]" class="btn btn-default btn-sm" id="newbasketgroup"><i class="fa fa-plus"></i> New basket group</a>
39
                                <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&amp;booksellerid=[% bookseller.id | $raw %]" class="btn btn-default btn-sm" id="newbasketgroup"><i class="fa fa-plus"></i> New basket group</a>
40
                            </div>
41
                        </div>
39
                        </div>
40
                    </div>
42
41
43
                        <h1>Basket groups for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id | $raw %]">[% bookseller.name | html %]</a></h1>
42
                    <h1>Basket groups for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% bookseller.id | $raw %]">[% bookseller.name | html %]</a></h1>
44
                    [% END %]
43
                [% END %]
45
44
46
                    [% IF basketgroups.size > 0 %]
45
                [% IF basketgroups.size > 0 %]
47
                        <table id="basketgroups-table" class="group">
46
                    <table id="basketgroups-table" class="group">
48
                            <thead>
47
                        <thead>
48
                            <tr>
49
                                <th>Name</th>
50
                                <th>Vendor</th>
51
                                <th>Billing place</th>
52
                                <th>Delivery place</th>
53
                                <th>No. of baskets</th>
54
                                <th>No. of ordered titles</th>
55
                                <th>No. of received titles</th>
56
                                <th>Date closed</th>
57
                                <th>Action</th>
58
                            </tr>
59
                        </thead>
60
                        <tbody>
61
                            [% FOREACH basketgroup IN basketgroups %]
49
                                <tr>
62
                                <tr>
50
                                    <th>Name</th>
63
                                    <td>
51
                                    <th>Vendor</th>
64
                                        [% IF ( basketgroup.name ) %]
52
                                    <th>Billing place</th>
65
                                            [% basketgroup.name | html %]
53
                                    <th>Delivery place</th>
66
                                        [% ELSE %]
54
                                    <th>No. of baskets</th>
67
                                            Basket group no. [% basketgroup.id | $raw %]
55
                                    <th>No. of ordered titles</th>
68
                                        [% END %]
56
                                    <th>No. of received titles</th>
69
                                    </td>
57
                                    <th>Date closed</th>
70
                                    <td>[% basketgroup.vendor.name | html %]</td>
58
                                    <th>Action</th>
71
                                    <td>[% Branches.GetName(basketgroup.billingplace) | html %]</td>
59
                                </tr>
72
                                    <td>
60
                            </thead>
73
                                        [% IF (basketgroup.freedeliveryplace) %]
61
                            <tbody>
74
                                            [% basketgroup.freedeliveryplace | html %]
62
                                [% FOREACH basketgroup IN basketgroups %]
75
                                        [% ELSE %]
63
                                    <tr>
76
                                            [% Branches.GetName(basketgroup.deliveryplace) | html %]
64
                                        <td>
77
                                        [% END %]
65
                                            [% IF ( basketgroup.name ) %]
78
                                    </td>
66
                                                [% basketgroup.name | html %]
79
                                    <td>[% basketgroup.baskets_count | $raw %]</td>
67
                                            [% ELSE %]
80
                                    <td>[% basketgroup.ordered_titles_count | $raw %]</td>
68
                                                Basket group no. [% basketgroup.id | $raw %]
81
                                    <td>[% basketgroup.received_titles_count | $raw %]</td>
69
                                            [% END %]
82
                                    <td>[% basketgroup.closeddate | $KohaDates %]</td>
70
                                        </td>
83
                                    <td>
71
                                        <td>[% basketgroup.vendor.name | html %]</td>
84
                                        <div class="dropdown">
72
                                        <td>[% Branches.GetName(basketgroup.billingplace) | html %]</td>
85
                                        <a class="btn btn-default btn-xs dropdown-toggle" id="actions-[% basketgroup.id | $raw %]" role="button" data-toggle="dropdown">Actions <b class="caret"></b></a>
73
                                        <td>
86
                                        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="actions-[% basketgroup.id | $raw %]">
74
                                            [% IF (basketgroup.freedeliveryplace) %]
87
                                        [% IF basketgroup.closeddate %]
75
                                                [% basketgroup.freedeliveryplace | html %]
88
                                            <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basketgroup.booksellerid | $raw %]&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-eye"></i> View</a></li>
76
                                            [% ELSE %]
89
                                            <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=reopen&booksellerid=[% basketgroup.booksellerid | $raw %]&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-folder-open"></i> Reopen</a></li>
77
                                                [% Branches.GetName(basketgroup.deliveryplace) | html %]
90
                                            <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=print&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-print"></i> Export as PDF</a></li>
78
                                            [% END %]
91
                                            <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=export&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-file-text"></i> Export as CSV</a></li>
79
                                        </td>
92
                                            <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=ediprint&booksellerid=[% basketgroup.booksellerid | $raw %]&basketgroupid=[% basketgroup.id | $raw %]">Generate EDIFACT order</a></li>
80
                                        <td>[% basketgroup.baskets_count | $raw %]</td>
93
                                        [% ELSE %]
81
                                        <td>[% basketgroup.ordered_titles_count | $raw %]</td>
94
                                            <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basketgroup.booksellerid | $raw %]&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-pencil"></i> Edit</a></li>
82
                                        <td>[% basketgroup.received_titles_count | $raw %]</td>
95
                                            <li><a class="closeandprint" href="/cgi-bin/koha/acqui/basketgroup.pl?op=closeandprint&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-print"></i> Close and export as PDF</a></li>
83
                                        <td>[% basketgroup.closeddate | $KohaDates %]</td>
96
                                            [% UNLESS basketgroup.baskets_count %]
84
                                        <td>
97
                                                <li><a class="delete" href="/cgi-bin/koha/acqui/basketgroup.pl?op=delete&booksellerid=[% basketgroup.booksellerid | $raw %]&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-trash"></i> Delete</a></li>
85
                                            <div class="dropdown">
86
                                            <a class="btn btn-default btn-xs dropdown-toggle" id="actions-[% basketgroup.id | $raw %]" role="button" data-toggle="dropdown">Actions <b class="caret"></b></a>
87
                                            <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="actions-[% basketgroup.id | $raw %]">
88
                                            [% IF basketgroup.closeddate %]
89
                                                <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basketgroup.booksellerid | $raw %]&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-eye"></i> View</a></li>
90
                                                <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=reopen&booksellerid=[% basketgroup.booksellerid | $raw %]&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-folder-open"></i> Reopen</a></li>
91
                                                <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=print&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-print"></i> Export as PDF</a></li>
92
                                                <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=export&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-file-text"></i> Export as CSV</a></li>
93
                                                <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=ediprint&booksellerid=[% basketgroup.booksellerid | $raw %]&basketgroupid=[% basketgroup.id | $raw %]">Generate EDIFACT order</a></li>
94
                                            [% ELSE %]
95
                                                <li><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basketgroup.booksellerid | $raw %]&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-pencil"></i> Edit</a></li>
96
                                                <li><a class="closeandprint" href="/cgi-bin/koha/acqui/basketgroup.pl?op=closeandprint&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-print"></i> Close and export as PDF</a></li>
97
                                                [% UNLESS basketgroup.baskets_count %]
98
                                                    <li><a class="delete" href="/cgi-bin/koha/acqui/basketgroup.pl?op=delete&booksellerid=[% basketgroup.booksellerid | $raw %]&basketgroupid=[% basketgroup.id | $raw %]"><i class="fa fa-trash"></i> Delete</a></li>
99
                                                [% END %]
100
                                            [% END %]
98
                                            [% END %]
101
                                            </ul>
99
                                        [% END %]
102
                                            </div>
100
                                        </ul>
103
                                        </td>
101
                                        </div>
104
                                    </tr>
102
                                    </td>
105
                                [% END %]
103
                                </tr>
106
                            </tbody>
104
                            [% END %]
107
                        </table>
105
                        </tbody>
108
                    [% END %]
106
                    </table>
109
                </div>
110
            </div>
111
            <div class="yui-b">
112
                [% IF bookseller %]
113
                    [% INCLUDE 'vendor-menu.inc' booksellerid = bookseller.id %]
114
                [% END %]
107
                [% END %]
115
                [% INCLUDE 'acquisitions-menu.inc' %]
108
            </div>
109
            <div class="col-sm-2 col-sm-pull-10">
110
                <aside>
111
                    [% IF bookseller %]
112
                        [% INCLUDE 'vendor-menu.inc' booksellerid = bookseller.id %]
113
                    [% END %]
114
                    [% INCLUDE 'acquisitions-menu.inc' %]
115
                </aside>
116
            </div>
116
            </div>
117
        </div>
117
        </div>
118
118
119
- 

Return to bug 11708