Bug 8942: Translation process breaks javascript
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / parcels.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Receive shipment from vendor [% name %]</title>
3 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 [% INCLUDE 'calendar.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9 <script type="text/javascript">
10 //<![CDATA[
11  $(document).ready(function() {
12 [% IF (dateformat == 'metric') %]
13     dt_add_type_uk_date();
14 [% END %]
15     var parcelst = $("#parcelst").dataTable($.extend(true, {}, dataTablesDefaults, {
16         "sPaginationType": "four_button"
17     } ) );
18  });
19  //]]>
20 </script>
21 </head>
22 <body id="acq_parcels" class="acq">
23 [% INCLUDE 'header.inc' %]
24 [% INCLUDE 'acquisitions-search.inc' %]
25
26 <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 %]">[% name %]</a> &rsaquo; Receive shipment from vendor [% name %]</div>
27
28 [% IF ( count ) %]<div id="doc3" class="yui-t2">[% ELSE %]<div id="doc" class="yui-t7">[% END %]
29    
30    <div id="bd">
31         <div id="yui-main">
32         <div class="yui-b">
33
34 [% IF ( error_failed_to_create_invoice ) %]
35     <div id="error" class="dialog error">
36         <p>An error has occured. Invoice cannot be created.</p>
37     </div>
38 [% END %]
39 <h1>Receive shipment from vendor <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% name %]</a></h1>
40
41 [% IF ( count ) %]
42 <p> [% count %] shipments</p>
43 <div id="resultlist">
44 <!-- Search Results Table -->
45
46 <table class="small" id="parcelst">
47     <thead>
48         <tr>
49             <th>Line</th>
50             <th>Date received</th>
51             <th>Invoice number</th>
52             <th>Item count</th>
53             <th>Biblio count</th>
54             <th>Items expected</th>
55         </tr>
56     </thead>
57     <tbody>
58     <!-- Actual Search Results -->
59     [% FOREACH searchresult IN searchresults %]
60         [% UNLESS ( loop.odd ) %]
61         <tr class="highlight">
62         [% ELSE %]
63         <tr>
64         [% END %]
65             <td>
66                 [% searchresult.number %]
67             </td>
68             <td>
69                 [% searchresult.datereceived %]
70             </td>
71             <td>
72                 [% IF ( searchresult.code ) %]
73                     <a href="/cgi-bin/koha/acqui/parcel.pl?invoiceid=[% searchresult.invoiceid %]">[% searchresult.code %]</a>
74                 [% ELSE %]
75                     <acronym title="not available">n/a</acronym>
76                 [% END %]
77             </td>
78             <td>
79                 [% searchresult.reccount %]
80             </td>
81             <td>
82                 [% searchresult.bibcount %]
83             </td>
84             <td>
85                 [% searchresult.itemcount %]
86             </td>
87         </tr>
88     [% END %]
89     </tbody>
90 </table>
91
92 <div id="resultnumber">
93 <!-- Row of numbers corresponding to search result pages -->
94 [% IF ( displayprev ) %]
95     <a href="parcels.pl?booksellerid=[% booksellerid %]&amp;startfrom=[% prevstartfrom %][% IF ( datefrom ) %]&amp;datefrom=[% datefrom %][% END %][% IF ( dateto ) %]&amp;dateto=[% dateto %][% END %][% IF ( code ) %]&amp;filter=[% code %][% END %][% IF ( orderby ) %]&amp;orderby=[% orderby %][% END %][% IF ( resultsperpage ) %]&amp;resultsperpage=[% resultsperpage %][% END %]&amp;type=intra">&lt;&lt; Previous</a>
96 [% END %]
97 [% FOREACH number IN numbers %]
98     [% IF ( number.highlight ) %]
99     <span class="current">[% number.number %]</span>
100     [% ELSE %]
101     <a href="parcels.pl?booksellerid=[% number.booksellerid %]&amp;startfrom=[% number.startfrom %][% IF ( number.datefrom ) %]&amp;datefrom=[% number.datefrom %][% END %][% IF ( number.dateto ) %]&amp;dateto=[% number.dateto %][% END %][% IF ( number.code ) %]&amp;filter=[% number.code %][% END %][% IF ( number.orderby ) %]&amp;orderby=[% number.orderby %][% END %][% IF ( number.resultsperpage ) %]&amp;resultsperpage=[% number.resultsperpage %][% END %]&amp;type=intra">[% number.number %]</a>
102     [% END %]
103 [% END %]
104 [% IF ( displaynext ) %]
105     <a href="parcels.pl?booksellerid=[% booksellerid %]&amp;startfrom=[% nextstartfrom %][% IF ( datefrom ) %]&amp;datefrom=[% datefrom %][% END %][% IF ( dateto ) %]&amp;dateto=[% dateto %][% END %][% IF ( code ) %]&amp;filter=[% code %][% END %][% IF ( orderby ) %]&amp;orderby=[% orderby %][% END %][% IF ( resultsperpage ) %]&amp;resultsperpage=[% resultsperpage %][% END %]&amp;type=intra">Next &gt;&gt;</a>
106 [% END %]
107 </div>
108 </div>
109 [% END %]
110
111     <div id="parcels_new_parcel">
112         <form method="get" action="parcels.pl">
113     <fieldset class="rows">
114     <legend>Receive a new shipment</legend>
115        <ol> <li>
116             <label for="invoice">Vendor invoice </label>
117             <input type="hidden" name="booksellerid" value="[% booksellerid %]" />
118             <input type="hidden" name="op" value="new" />
119                         <input type="text" size="20" id="invoice" name="invoice" />
120         </li>
121                 [% IF ( gst ) %]
122         <li>
123             <label for="gst">GST:</label>
124             <input type="text" size="20" id="gst" name="gst" />
125         </li>
126                 [% END %]
127       <!--  // Removing freight input until shipping can be proplerly handled .
128           <li>
129             <label for="freight">Shipping:</label>
130             <input type="text" size="20" id="freight" name="freight" />
131         </li> -->
132          <li>
133             <label for="shipmentdate">Shipment date: </label>
134             <input type="text" id="shipmentdate" name="shipmentdate" maxlength="10" size="10" value="[% shipmentdate_today %]" class="datepicker" />
135             <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
136         </li>
137         <li>
138             <label for="shipmentcost">Shipment cost: </label>
139             <input type="text" id="shipmentcost" name="shipmentcost" size="10" />
140         </li>
141         <li>
142             <label for="shipmentcost_budgetid">Budget: </label>
143             <select id="shipmentcost_budgetid" name="shipmentcost_budgetid">
144                 <option value="">No budget</option>
145                 [% FOREACH budget IN budgets %]
146                     <option value="[% budget.budget_id %]">[% budget.budget_name %]</option>
147                 [% END %]
148             </select>
149         </li>
150                 </ol>
151     </fieldset>
152             <fieldset class="action"><input type="submit" class="button" value="Next" /> <a class="cancel" href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">Cancel</a></fieldset>
153         </form>
154     </div>
155 </div>
156 </div>
157 <div class="yui-b">
158 [% IF ( count ) %]<form method="get" action="parcels.pl">
159     <fieldset class="brief">
160         <h4>Filter</h4>
161         <ol>
162             <li> <input type="hidden" name="booksellerid" value="[% booksellerid %]" /></li>
163             <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li>
164             <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" /><br /> 
165                 <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" /></li>
166             <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby">
167                 <option value="invoicenumber">Invoice number</option>
168                 <option value="shipmentdate">Shipment date</option>
169                 <option value="shipmentdate desc">Shipment date reverse</option>
170                 <option value="invoicenumber desc">Invoice number reverse</option>
171                 </select><br />
172                 <label for="resultsperpage">Results per page :</label><select name="resultsperpage" id="resultsperpage">
173                 <option value="20">20</option>
174                 <option value="30">30</option>
175                 <option value="50">50</option>
176                 <option value="100">100</option>
177                 </select></li>
178         </ol>
179         <fieldset class="action"><input type="submit" class="button" value="Filter" /> <a href="/cgi-bin/koha/acqui/parcels.pl?booksellerid=[% booksellerid %]">Clear</a></fieldset>
180         </fieldset>
181 </form>[% END %]
182 </div>
183 </div>
184 [% INCLUDE 'intranet-bottom.inc' %]