Merge remote-tracking branch 'origin/new/bug_8022'
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / uncertainprice.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Orders with uncertain prices for Vendor [% booksellername %]</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;<a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> &rsaquo; Uncertain prices for vendor: [% booksellername %]</div>
34
35 <div id="doc" class="yui-t7">
36    <div id="bd">
37         <div id="yui-main">
38         [% IF ( validate ) %]
39             <META HTTP-EQUIV=Refresh CONTENT="0; url=[% scriptname %]?booksellerid=[% booksellerid %]">
40         [% ELSE %]
41         <h1>Orders with uncertain prices for vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername %]</a> <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]&amp;op=enter">(edit)</a></h1>
42         <h2>Contact information</h2>
43         <p><strong>Address: </strong>
44             [% booksellerpostal %]
45             [% bookselleraddress1 %]
46             [% bookselleraddress2 %]
47             [% bookselleraddress3 %]
48             [% bookselleraddress4 %]
49             <a href="[% booksellerurl %]">[% booksellerurl %]</a>
50         </p>
51         <p><strong>Phone: </strong>
52             [% booksellerphone %] / Fax:
53             [% booksellerfax %]</p>
54         <dl>
55             <dt><strong>Contact: </strong></dt>
56             <dd>[% booksellercontact %]
57             [% booksellercontpos %]
58             [% booksellercontphone %]
59             [% booksellercontaltphone %]
60             [% booksellercontemail %]
61             [% booksellercontnotes %]
62             </dd>
63         </dl>
64         [% IF ( booksellernotes ) %]
65         <p><strong>Notes: </strong>
66             [% booksellernotes %]</p>
67         [% END %]
68         <h2>Orders with uncertain prices</h2>
69         <form action="[% scriptname %]" method="post" name="uncertainprices">
70         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
71         <input type="hidden" name="op" value="validate" />
72         Orders from:
73         <select name="owner">
74             [% IF ( owner ) %]
75             <option value="0">Everyone</option>
76             <option value="1" selected="selected">me</option>
77             [% ELSE %]
78             <option value="0" selected="selected">Everyone</option>
79             <option value="1">me</option>
80             [% END %]
81         </select>
82         <input type="submit" value="Filter" />
83         </form>
84         <form action="[% scriptname %]" method="post" name="uncertainprices">
85         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
86         <input type="hidden" name="op" value="validate" />
87         <table id="uncertainpricet">
88         <thead>
89             <tr>
90             <th>basket</th>
91                 <th>order</th>
92             <th>by</th>
93             <th>uncertain</th>
94                 <th>price</th>
95                 <th>quantity</th>
96             </tr>
97         </thead>
98         <tbody>
99             [% FOREACH uncertainpriceorder IN uncertainpriceorders %]
100             <tr>
101         <td>
102             [% uncertainpriceorder.basketname %]
103         </td>
104             <td>
105                 [% uncertainpriceorder.bibtitle %] / [% uncertainpriceorder.bibauthor %] <br /> [% uncertainpriceorder.bibpublishercode %], [% uncertainpriceorder.bibpublicationyear %]<br />[% uncertainpriceorder.bibisbn %]<br />
106                 <a href="neworderempty.pl?ordernumber=[% uncertainpriceorder.ordernumber %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% uncertainpriceorder.basketno %]">
107                     edit
108                 </a>
109             </td>
110         <td>
111             [% uncertainpriceorder.firstname %] [% uncertainpriceorder.surname %]
112         </td>
113             <td>
114                 <input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber %]" value="1" checked="checked" />
115             </td>
116             <td>
117                 <input type="text" size="10" name="price[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.listprice %]"
118                                                 onchange="uncheckbox(this.form, [% uncertainpriceorder.ordernumber %]);" />
119             </td>
120             <td>
121                 
122                 <input type="text" size="10" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]"
123                                                 onchange="uncheckbox(this.form, [% uncertainpriceorder.ordernumber %]);" />
124             </td>
125             </tr>
126             [% END %]
127     </tbody>
128         </table>
129         <fieldset class="action"><input type="button" value="Save" onclick="check(this.form)" /></fieldset>
130         </form>
131         [% END %]
132 </div>
133 </div>[% INCLUDE 'intranet-bottom.inc' %]