Bug 33005: (follow-up) Add spans for translatability
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / ordered.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE KohaDates %]
4 [% USE ItemTypes %]
5 [% USE Price %]
6 [% PROCESS 'i18n.inc' %]
7 [% SET footerjs = 1 %]
8 [% INCLUDE 'doc-head-open.inc' %]
9 <title>Ordered &rsaquo; Acquisitions &rsaquo; Koha</title>
10 [% INCLUDE 'doc-head-close.inc' %]
11 </head>
12
13 <body id="acq_ordered" class="acq">
14 [% WRAPPER 'header.inc' %]
15     [% INCLUDE 'acquisitions-search.inc' %]
16 [% END %]
17
18 [% WRAPPER 'sub-header.inc' %]
19     [% WRAPPER breadcrumbs %]
20         [% WRAPPER breadcrumb_item %]
21             <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
22         [% END %]
23         [% WRAPPER breadcrumb_item bc_active= 1 %]
24             <span>Ordered - [% fund_code | html %]</span>
25         [% END %]
26     [% END #/ WRAPPER breadcrumbs %]
27 [% END #/ WRAPPER sub-header.inc %]
28
29 <div class="main container-fluid">
30     <div class="row">
31         <div class="col-sm-10 col-sm-push-2">
32             <main>
33
34 <h1>Ordered - Fund: [% fund_code | html %]</h1>
35
36                 <div class="page-section">
37                     <table id="spent">
38                         <thead>
39                         <tr>
40                         <th class="anti-the"> Title </th>
41                         <th> [% tp('noun', 'Order') | html %] </th>
42                         <th> Vendor </th>
43                         <th> Item types </th>
44                         <th> Left on order </th>
45                         <th> Estimated cost per unit </th>
46                         <th> Date ordered </th>
47                         <th> Subtotal </th>
48                         </tr>
49                         </thead>
50                         <tbody>
51                     [% FOREACH order IN ordered %]
52                         <tr>
53                         <td class="cell">
54                                 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% order.biblionumber | uri %]">
55                             [% order.title | html %]
56                                 </a>
57                         </td>
58                         <td class="cell">
59                             [% IF ( CAN_user_acquisition_order_manage ) %]
60                                 <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% order.ordernumber | uri %]&amp;booksellerid=[% order.booksellerid | uri %]&amp;basketno=[% order.basketno | uri %]">[% order.ordernumber | html %]</a>
61                             [% ELSE %]
62                                 [% order.ordernumber | html %]
63                             [% END %]
64                         </td>
65                         <td class="cell">
66                             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid | uri %]">[% order.vendorname | html %]</a>
67                         </td>
68                         <td class="cell">
69                             [% FOREACH itemtype IN order.itemtypes %]
70                                 [% ItemTypes.GetDescription( itemtype ) | html %]
71                                 [% IF !loop.last() %] | [% END %]
72                             [% END %]
73                         </td>
74                         <td class="cell">
75                             [% order.left | html %]
76                         </td>
77                         <td class="data cell">
78                             [% order.ecost_tax_included | $Price %]
79                         </td>
80                         <td class="cell" data-order="[% order.entrydate | html %]">
81                             [% order.entrydate | $KohaDates %]
82                         </td>
83                         <td class="data cell">
84                             [% order.subtotal | $Price %]
85                         </td>
86                         </tr>
87                     [% END %]
88                         </tbody>
89                         <tfoot>
90                         [% IF ( adjustments && adjustments.count > 0 ) %]
91                                 [% FOREACH adjustment IN adjustments %]
92                                     <tr>
93                                         <td></td>
94                                         <td colspan="6">Adjustment cost for invoice
95                                             <a href="/cgi-bin/koha/acqui/invoice.pl?invoiceid=[% adjustment.invoiceid | uri %]">
96                                                 [% adjustment.invoice.invoicenumber | html %]
97                                             </a>
98                                         </td>
99                                         <td class="data total">[% adjustment.adjustment | $Price %]</td>
100                                     </tr>
101                                 [% END %]
102
103                         [% END %]
104                         <tr>
105                             <td> Total </td>
106                             <td> </td>
107                             <td> </td>
108                             <td> </td>
109                             <td> </td>
110                             <td> </td>
111                             <td> </td>
112                             <td class="data">
113                                 [% total | $Price %]
114                             </td>
115                         </tr>
116                         </tfoot>
117
118                     </table>
119                 </div> <!-- /.page-section -->
120
121 </main>
122 </div> <!-- /.col-sm-10.col-sm-push-2 -->
123
124 <div class="col-sm-2 col-sm-pull-10">
125     <aside>
126         [% INCLUDE 'acquisitions-menu.inc' %]
127     </aside>
128 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
129 </div> <!-- /.row -->
130
131 [% MACRO jsinclude BLOCK %]
132     [% Asset.js("js/acquisitions-menu.js") | $raw %]
133     [% INCLUDE 'datatables.inc' %]
134     <script>
135         $(document).ready(function() {
136             $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
137                 "aoColumnDefs": [
138                     { "sType": "anti-the", "aTargets" : [ "anti-the" ] }
139                 ],
140                 "sPaginationType": "full"
141             }));
142         });
143     </script>
144 [% END %]
145
146 [% INCLUDE 'intranet-bottom.inc' %]