Bug 19918: Close span tag in opac-registration-confirmation.tt
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / uncertainprice.tt
1 [% USE Koha %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( booksellername ) %]Orders with uncertain prices for vendor [% booksellername %][% ELSE %]Orders with uncertain prices[% END %]</title>
4 <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 [% INCLUDE 'datatables.inc' %]
7 <script type="text/javascript">
8 //<![CDATA[
9  $(document).ready(function() {
10     var uncertainpricet = $("#uncertainpricet").dataTable($.extend(true, {}, dataTablesDefaults, {
11         "aoColumnDefs": [
12             { "aTargets": [ -1, -2, -3 ], "bSortable": false, "bSearchable": false },
13         ],
14         "sPaginationType": "four_button"
15     } ) );
16     $(".check_uncertain").on("change",function(){
17         var form = document.getElementById("uncertainprices");
18         var ordernumber = $(this).data("ordernumber");
19         uncheckbox( form, ordernumber );
20     });
21  });
22 var MSG_INVALIDPRICE = _("ERROR: Price is not a valid number, please check the price and try again!");
23  //]]>
24 </script>
25 <script type="text/javascript" src="[% interface %]/[% theme %]/js/acq.js"></script>
26 </head>
27 <body id="acq_uncertainprice" class="acq">
28 [% INCLUDE 'header.inc' %]
29 [% INCLUDE 'acquisitions-search.inc' %]
30
31 <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>
32
33 <div id="doc3" class="yui-t2">
34
35     <div id="bd">
36     <div id="yui-main">
37     <div class="yui-b">
38
39 [% INCLUDE 'acquisitions-toolbar.inc' %]
40         [% IF ( validate ) %]
41             [% SET metacontent = '0; url=' _  scriptname  _ '?booksellerid=' _  booksellerid %]
42             <META HTTP-EQUIV=Refresh CONTENT="[% metacontent %]">
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                 [% FOREACH contact IN contacts %]
60                     <dt><strong>Contact: </strong></dt>
61                     <dd>[% contact.name %]
62                         [% contact.position %]
63                         [% contact.phone %]
64                         [% contact.altphone %]
65                         [% contact.email %]
66                         [% contact.notes %]
67                     </dd>
68                 [% END %]
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">
78         <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
79         <label for="owner">Orders from:</label>
80         <select id="owner" 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" id="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             <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% uncertainpriceorder.biblionumber %]">[% uncertainpriceorder.title |html %]</a>
113             [% IF ( uncertainpriceorder.author ) %] <em>by</em> [% uncertainpriceorder.author %][% END %]
114             [% IF ( uncertainpriceorder.publishercode ) %]
115                 <br /><em>Publisher:</em> [% uncertainpriceorder.publishercode %]
116                 [%- IF    ( uncertainpriceorder.publicationyear ) -%], [% uncertainpriceorder.publicationyear %]
117                 [%- ELSIF ( uncertainpriceorder.copyrightdate ) -%] [% uncertainpriceorder.copyrightdate %]
118                 [% END %]
119             [% END %]
120             [% IF ( uncertainpriceorder.isbn ) %]<br />[% uncertainpriceorder.isbn %][% END %]
121             <br />
122             <a href="neworderempty.pl?ordernumber=[% uncertainpriceorder.ordernumber %]&amp;booksellerid=[% booksellerid %]&amp;basketno=[% uncertainpriceorder.basketno %]">
123                 Edit
124             </a>
125         </td>
126         <td>
127             [% uncertainpriceorder.firstname %] [% uncertainpriceorder.surname %]
128         </td>
129             <td>
130                 <input type="checkbox" name="uncertainprice[% uncertainpriceorder.ordernumber %]" value="1" checked="checked" />
131             </td>
132             <td>
133             <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber %]" type="text" size="10" name="price[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.listprice %]" />
134             </td>
135             <td>
136         [% IF basket.effective_create_items == 'ordering' %]
137             [% uncertainpriceorder.quantity %]
138             <input type="hidden" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]" />
139         [% ELSE %]
140             <input class="check_uncertain" data-ordernumber="[% uncertainpriceorder.ordernumber %]" type="text" size="10" name="qty[% uncertainpriceorder.ordernumber %]" value="[% uncertainpriceorder.quantity %]" />
141         [% END %]
142             </td>
143             </tr>
144             [% END %]
145     </tbody>
146         </table>
147     <fieldset class="action"><input type="submit" value="Save" /></fieldset>
148         </form>
149         [% END %]
150
151 </div>
152 </div>
153 <div class="yui-b">
154 [% INCLUDE 'vendor-menu.inc' %]
155 </div>
156 </div>
157 [% INCLUDE 'intranet-bottom.inc' %]