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