559dc0bb2d742be98185dd34837d62d5878318dc
[kivitendo-erp.git] / templates / webpages / customer_vendor / tabs / deliveries.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE L %]
4
5 <div id="deliveries">
6   <table>
7     <tr>
8       <th align="right">[% 'Shipping Address' | $T8 %]</th>
9       <td colspan="3">
10         [% temp = [{shipto_id = 'all', displayable_id = LxERP.t8('All')}] %]
11         [% temp = temp.merge(SELF.shiptos) %]
12         [%
13           L.select_tag(
14             'delivery_id',
15             temp,
16             value_key = 'shipto_id',
17             title_key = 'displayable_id',
18             with_empty = 1,
19             onchange = "namespace('kivi.CustomerVendor').selectDelivery();"
20           )
21         %]
22       </td>
23     </tr>
24
25     <tr>
26       <th align="right" nowrap>[% 'From' | $T8 %]</th>
27
28       <td>
29         [%
30           L.date_tag(
31             'delivery_from',
32             FORM.delivery_from,
33             onchange => "namespace('kivi.CustomerVendor').selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
34           )
35         %]
36       </td>
37
38
39       <th align="right" nowrap>[% 'To (time)' | $T8 %]</th>
40
41       <td>
42         [%
43           L.date_tag(
44             'delivery_to',
45             FORM.delivery_to,
46             onchange => "namespace('kivi.CustomerVendor').selectDelivery(this.form.delivery_from.value, this.form.delivery_to.value);"
47           )
48         %]
49       </td>
50     </tr>
51
52     <tr>
53       <td colspan="4">
54         <div id="delivery"></div>
55       </td>
56     </tr>
57   </table>
58 </div>