Bug 7298: (follow-up) various QA fixes
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / uncertainprice.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( booksellername ) %]Orders with uncertain prices for vendor [% booksellername %][% ELSE %]Orders with uncertain prices[% END %]</title>
3 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'datatables.inc' %]
6 <script type="text/javascript">
7 //<![CDATA[
8  $(document).ready(function() {
9     var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, {
10         "aoColumnDefs": [
11             { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
12         ],
13         "sPaginationType": "four_button"
14     } ) );
15  });
16 var MSG_INVALIDPRICE = _("ERROR: Price is not a valid number, please check the price and try again!");
17  //]]>
18 </script>
19 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
20 <script type="text/javascript">
21 //<![CDATA[
22 function check(form) {
23     form.submit();
24 }
25 //]]>
26 </script>
27 </head>
28 <body id="acq_uncertainprice" class="acq">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'acquisitions-search.inc' %]
31
32 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; [% IF ( booksellername ) %]<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo; Uncertain prices for vendor [% booksellername %][% ELSE %]Uncertain prices[% END %]</div>
33
34 <div id="doc3" class="yui-t2">
35
36     <div id="bd">
37     <div id="yui-main">
38     <div class="yui-b">
39
40 [% INCLUDE 'acquisitions-toolbar.inc' %]
41         [% IF ( validate ) %]
42             <META HTTP-EQUIV=Refresh CONTENT="0; url=[% scriptname %]?booksellerid=[% booksellerid %]">
43         [% ELSE %]
44         [% IF ( booksellername ) %]
45             <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a></h1>
46             <h2>Contact information</h2>
47             <p><strong>Address: </strong>
48                 [% booksellerpostal %]
49                 [% bookselleraddress1 %]
50                 [% bookselleraddress2 %]
51                 [% bookselleraddress3 %]
52                 [% bookselleraddress4 %]
53                 <a href="[% booksellerurl %]">[% booksellerurl %]</a>
54             </p>
55             <p><strong>Phone: </strong>
56                 [% booksellerphone %] / Fax:
57                 [% booksellerfax %]</p>
58             <dl>
59                 <dt><strong>Contact: </strong></dt>
60                 <dd>[% booksellercontact %]
61                 [% booksellercontpos %]
62                 [% booksellercontphone %]
63                 [% booksellercontaltphone %]
64                 [% booksellercontemail %]
65                 [% booksellercontnotes %]
66                 </dd>
67             </dl>
68             [% IF ( booksellernotes ) %]
69             <p><strong>Notes: </strong>
70                 [% booksellernotes %]</p>
71             [% END %]
72         [% END %]
73
74         <h2>Orders with uncertain prices</h2>
75         <form action="[% scriptname %]" method="post" name="uncertainprices">
76         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
77         Orders from:
78         <select name="owner">
79             [% IF ( owner ) %]
80             <option value="0">Everyone</option>
81             <option value="1" selected="selected">me</option>
82             [% ELSE %]
83             <option value="0" selected="selected">Everyone</option>
84             <option value="1">me</option>
85             [% END %]
86         </select>
87         <input type="submit" value="Filter" />
88         </form>
89         <form action="[% scriptname %]" method="post" name="uncertainprices">
90         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
91         <input type="hidden" name="op" value="validate" />
92         <table id="uncertainpricet">
93         <thead>
94             <tr>
95             <th>Basket</th>
96            <th>Order</th>
97             <th>By</th>
98             <th>Uncertain</th>
99             <th>Price</th>
100             <th>Quantity</th>
101             </tr>
102         </thead>
103         <tbody>
104             [% FOREACH uncertainpriceorder IN uncertainpriceorders %]
105             <tr>
106         <td>
107             [% uncertainpriceorder.basketname %]
108         </td>
109             <td>
110                 [% uncertainpriceorder.bibtitle %] / [% uncertainpriceorder.bibauthor %] <br /> [% uncertainpriceorder.bibpublishercode %], [% uncertainpriceorder.bibpublicationyear %]<br />[% uncertainpriceorder.bibisbn %]<br />
111                 <a href="neworderempty.pl?ordernumber=[% uncertainpriceorder.ordernumber %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% uncertainpriceorder.basketno %]">
112                     edit
113                 </a>
114             </td>
115         <td>
116             [% uncertainpriceorder.firstname %] [% uncertainpriceorder.surname %]
117         </td>
118             <td>
119                 <input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber %]" value="1" checked="checked" />
120             </td>
121             <td>
122                 <input type="text" size="10" name="price[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.listprice %]"
123                                                 onchange="uncheckbox(this.form, [% uncertainpriceorder.ordernumber %]);" />
124             </td>
125             <td>
126                 
127                 <input type="text" size="10" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]"
128                                                 onchange="uncheckbox(this.form, [% uncertainpriceorder.ordernumber %]);" />
129             </td>
130             </tr>
131             [% END %]
132     </tbody>
133         </table>
134         <fieldset class="action"><input type="button" value="Save" onclick="check(this.form)" /></fieldset>
135         </form>
136         [% END %]
137
138 </div>
139 </div>
140 <div class="yui-b">
141 [% INCLUDE 'vendor-menu.inc' %]
142 </div>
143 </div>
144 [% INCLUDE 'intranet-bottom.inc' %]