Bug 33908: Improve translation of title tags: Acquisitions
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / uncertainprice.tt
1 [% USE raw %]
2 [% USE Asset %]
3 [% USE Koha %]
4 [% USE Price %]
5 [% PROCESS 'i18n.inc' %]
6 [% SET footerjs = 1 %]
7 [% INCLUDE 'doc-head-open.inc' %]
8 <title>[% FILTER collapse %]
9     [% IF ( booksellername ) %]
10         [% tx("Orders with uncertain prices for vendor {vendor}", { vendor = booksellername }) | html %]
11     [% ELSE %]
12         [% t("Orders with uncertain prices") | html %]
13     [% END %] &rsaquo;
14     [% t("Acquisitions") | html %] &rsaquo;
15     [% t("Koha") | html %]
16 [% END %]</title>
17 [% INCLUDE 'doc-head-close.inc' %]
18 </head>
19
20 <body id="acq_uncertainprice" class="acq">
21 [% WRAPPER 'header.inc' %]
22     [% INCLUDE 'acquisitions-search.inc' %]
23 [% END %]
24
25 [% WRAPPER 'sub-header.inc' %]
26     [% WRAPPER breadcrumbs %]
27         [% WRAPPER breadcrumb_item %]
28             <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a>
29         [% END %]
30         [% IF ( booksellername ) %]
31             [% WRAPPER breadcrumb_item %]
32                 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a>
33             [% END %]
34             [% WRAPPER breadcrumb_item bc_active= 1 %]
35                 <span>Uncertain prices for vendor [% booksellername | html %]</span>
36             [% END %]
37         [% ELSE %]
38             [% WRAPPER breadcrumb_item bc_active= 1 %]
39                 <span>Uncertain prices</span>
40             [% END %]
41         [% END %]
42     [% END #/ WRAPPER breadcrumbs %]
43 [% END #/ WRAPPER sub-header.inc %]
44
45 <div class="main container-fluid">
46     <div class="row">
47         <div class="col-sm-10 col-sm-push-2">
48             <main>
49
50 [% INCLUDE 'acquisitions-toolbar.inc' %]
51         [% IF ( validate ) %]
52             [% SET metacontent = '0; url=' _  scriptname  _ '?booksellerid=' _  booksellerid %]
53             <META HTTP-EQUIV=Refresh CONTENT="[% metacontent | html %]">
54         [% ELSE %]
55         [% IF ( booksellername ) %]
56             <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1>
57
58             <div class="page-section">
59                 <h2>Contact information</h2>
60                 <p><strong>Address: </strong>
61                     [% booksellerpostal | html %]
62                     [% bookselleraddress1 | html %]
63                     [% bookselleraddress2 | html %]
64                     [% bookselleraddress3 | html %]
65                     [% bookselleraddress4 | html %]
66                 </p>
67                 <p><strong>Phone: </strong>
68                     [% booksellerphone | html %]
69                 <dl>
70                     [% FOREACH contact IN contacts %]
71                         <dt><strong>Contact: </strong></dt>
72                         <dd>[% contact.name | html %]
73                             [% contact.position | html %]
74                             [% contact.phone | html %]
75                             [% contact.altphone | html %]
76                             [% contact.email | html %]
77                             [% contact.notes | html %]
78                         </dd>
79                     [% END %]
80                 </dl>
81                 [% IF ( booksellernotes ) %]
82                 <p><strong>Notes: </strong>
83                     [% booksellernotes | html %]</p>
84                 [% END %]
85             </div> <!-- /.page-section -->
86         [% END %]
87
88         <div class="page-section">
89             <h2>Order lines with uncertain prices</h2>
90             <form action="[% scriptname | html %]" method="post">
91                 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
92                 <label for="owner">Orders from:</label>
93                 <select id="owner" name="owner">
94                     [% IF ( owner ) %]
95                         <option value="0">Everyone</option>
96                         <option value="1" selected="selected">me</option>
97                     [% ELSE %]
98                         <option value="0" selected="selected">Everyone</option>
99                         <option value="1">me</option>
100                     [% END %]
101                 </select>
102                 <input type="submit" class="btn btn-primary" value="Filter" />
103             </form>
104         </div> <!-- /.page-section -->
105         <form action="[% scriptname | html %]" method="post" id="uncertainprices">
106             <fieldset class="rows">
107                 <input type="hidden" name="booksellerid" value="[% booksellerid | html %]" />
108                 <input type="hidden" name="op" value="validate" />
109                 <table id="uncertainpricet">
110                     <thead>
111                         <tr>
112                             <th>Basket</th>
113                             <th>[% tp('noun', 'Order') | html %]</th>
114                             <th>By</th>
115                             <th class="NoSort">Uncertain</th>
116                             <th class="NoSort">Price</th>
117                             <th class="NoSort">Quantity</th>
118                             <th class="NoSort">Edit</th>
119                         </tr>
120                     </thead>
121                     <tbody>
122                         [% FOREACH uncertainpriceorder IN uncertainpriceorders %]
123                             <tr>
124                                 <td>
125                                     <a href="/cgi-bin/koha/acqui/basket.pl?basketno=[% uncertainpriceorder.basketno | uri %]">[% uncertainpriceorder.basketname | html %]</a>
126                                 </td>
127                                 <td>
128                                     [% INCLUDE 'biblio-title.inc' biblio=uncertainpriceorder link = 1 %]
129                                     [% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author | html %][% END %]
130                                     [% IF ( uncertainpriceorder.publishercode ) %]
131                                         <br /><em>Publisher:</em> [% uncertainpriceorder.publishercode | html %]
132                                         [%- IF    ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear | html %]
133                                         [%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate | html %]
134                                         [% END %]
135                                     [% END %]
136                                     [% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn | html %][% END %]
137                                     <br />
138                                 </td>
139                                 <td>
140                                     [% uncertainpriceorder.firstname | html %] [% uncertainpriceorder.surname | html %]
141                                 </td>
142                                 <td>
143                                     <input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber | html %]" value="1" checked="checked" />
144                                 </td>
145                                 <td>
146                                     <input class="check_uncertain decimal" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="price[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.listprice | $Price on_editing => 1 %]" />
147                                 </td>
148                                 <td>
149                                 [% IF basket.effective_create_items == 'ordering' %]
150                                     [% uncertainpriceorder.quantity | html %]
151                                     <input type="hidden" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" />
152                                 [% ELSE %]
153                                     <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber | html %]" type="text" size="10" name="qty[% uncertainpriceorder.ordernumber | html %]" value="[% uncertainpriceorder.quantity | html %]" />
154                                 [% END %]
155                                 </td>
156                                 <td class="actions">
157                                     <a href="/cgi-bin/koha/acqui/neworderempty.pl?ordernumber=[% uncertainpriceorder.ordernumber | uri %]&amp;booksellerid=[% booksellerid | uri %]&amp;basketno=[% uncertainpriceorder.basketno | uri %]" class="btn btn-default btn-xs"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a>
158                                 </td>
159                             </tr>
160                         [% END %]
161                     </tbody>
162                 </table>
163             </fieldset>
164             <fieldset class="action"><input type="submit" class="btn btn-primary" value="Save" /></fieldset>
165         </form>
166     [% END %]
167
168 </main>
169 </div> <!-- /.col-sm-10.col-sm-push-2 -->
170
171 <div class="col-sm-2 col-sm-pull-10">
172     <aside>
173         [% INCLUDE 'vendor-menu.inc' %]
174     </aside>
175 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
176 </div> <!-- /.row -->
177
178 [% MACRO jsinclude BLOCK %]
179     [% Asset.js("js/acquisitions-menu.js") | $raw %]
180     [% Asset.js("js/acq.js") | $raw %]
181     [% INCLUDE 'datatables.inc' %]
182     <script>
183         $(document).ready(function() {
184             var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, {
185                 "aoColumnDefs": [
186                     { 'bSortable': false, "bSearchable": false, 'aTargets': [ 'NoSort' ] },
187                 ],
188                 "sPaginationType": "full"
189             }));
190             $(".check_uncertain").on("change",function(){
191                 var form = document.getElementById("uncertainprices");
192                 var ordernumber = $(this).data("ordernumber");
193                 uncheckbox( form, ordernumber );
194             });
195         });
196     </script>
197     [% Asset.js("js/acq.js") | $raw %]
198 [% END %]
199
200 [% INCLUDE 'intranet-bottom.inc' %]