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