CustomerVendor: namespace-Aufrufe entfernt
[kivitendo-erp.git] / templates / webpages / customer_vendor / tabs / shipto.html
1 [%- USE T8 %]
2 [%- USE LxERP %]
3 [%- USE L %]
4
5 <div id="shipto">
6   <table width="100%" id="shipto_table">
7     <tr>
8       <th align="right">[% 'Shipping Address' | $T8 %]</th>
9
10       <td>
11         [% L.select_tag(
12              'shipto.shipto_id',
13              SELF.shiptos,
14              default = SELF.shipto.shipto_id,
15              value_key = 'shipto_id',
16              title_key = 'displayable_id',
17              with_empty = 1,
18              empty_title = LxERP.t8('New shipto'),
19              onchange = "kivi.CustomerVendor.selectShipto({onFormSet: function(){shiptoMapWidget.testInputs();}});",
20            )
21         %]
22       </td>
23     </tr>
24
25     <tr>
26       <th align="right" nowrap>[% 'Name' | $T8 %]</th>
27
28       <td>
29         [% L.input_tag('shipto.shiptoname', SELF.shipto.shiptoname,  size = 35, maxlength = 75) %]
30       </td>
31     </tr>
32
33     <tr>
34       <th align="right" nowrap>[% 'Abteilung' | $T8 %]</th>
35
36       <td>
37         [% L.input_tag('shipto.shiptodepartment_1', SELF.shipto.shiptodepartment_1,  size = 16, maxlength = 75) %]
38         [% L.input_tag('shipto.shiptodepartment_2', SELF.shipto.shiptodepartment_2,  size = 16, maxlength = 75) %]
39       </td>
40     </tr>
41
42     <tr>
43       <th align="right" nowrap>[% 'Street' | $T8 %]</th>
44
45       <td>
46         [% L.input_tag('shipto.shiptostreet', SELF.shipto.shiptostreet,  size = 35, maxlength = 75) %]
47
48         <span id="shipto_map"></span>
49         <script type="text/javascript">
50           var shiptoMapWidget = kivi.CustomerVendor.showMapWidget('shipto_shipto', $('#shipto_map'));
51         </script>
52       </td>
53     </tr>
54
55     <tr>
56       <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
57
58       <td>
59         [% L.input_tag('shipto.shiptozipcode', SELF.shipto.shiptostreet,  size = 5, maxlength = 75) %]
60         [% L.input_tag('shipto.shiptocity', SELF.shipto.shiptocity,  size = 30, maxlength = 75) %]
61       </td>
62     </tr>
63
64     <tr>
65       <th align="right" nowrap>[% 'Country' | $T8 %]</th>
66
67       <td>
68         [% L.input_tag('shipto.shiptocountry', SELF.shipto.shiptocountry,  size = 35, maxlength = 75) %]
69       </td>
70     </tr>
71
72     <tr>
73       <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
74
75       <td>
76         [% L.input_tag('shipto.shiptocontact', SELF.shipto.shiptocontact,  size = 30, maxlength = 75) %]
77       </td>
78     </tr>
79
80     <tr>
81       <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
82
83       <td>
84         [% L.input_tag('shipto.shiptophone', SELF.shipto.shiptophone,  size = 30, maxlength = 30) %]
85       </td>
86     </tr>
87
88     <tr>
89       <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
90
91       <td>
92         [% L.input_tag('shipto.shiptofax', SELF.shipto.shiptofax,  size = 30, maxlength = 30) %]
93       </td>
94     </tr>
95
96     <tr>
97       <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
98
99       <td>
100         [% L.input_tag('shipto.shiptoemail', SELF.shipto.shiptoemail,  size = 45) %]
101       </td>
102     </tr>
103   </table>
104
105   [% L.button_tag('submitInputButton(this);', LxERP.t8('Delete Shipto'), name = 'action_delete_shipto', class = 'submit') %]
106   [% IF ( !SELF.shipto.shipto_id ) %]
107     <script type="text/javascript">
108       $('#action_delete_shipto').hide();
109     </script>
110   [% END %]
111 </div>