CustomerVendor: Tabs in eigene Dateien ausgelagert
[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 = "namespace('kivi.CustomerVendor').selectShipto();"
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         <a href="#" onclick="namespace('kivi.CustomerVendor').showMap('shipto_shipto');" title="[% 'Map' | $T8 %]">
49           <img src="image/map.png" alt="[% 'Map' | $T8 %]" />
50         </a>
51       </td>
52     </tr>
53
54     <tr>
55       <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
56
57       <td>
58         [% L.input_tag('shipto.shiptozipcode', SELF.shipto.shiptostreet,  size = 5, maxlength = 75) %]
59         [% L.input_tag('shipto.shiptocity', SELF.shipto.shiptocity,  size = 30, maxlength = 75) %]
60       </td>
61     </tr>
62
63     <tr>
64       <th align="right" nowrap>[% 'Country' | $T8 %]</th>
65
66       <td>
67         [% L.input_tag('shipto.shiptocountry', SELF.shipto.shiptocountry,  size = 35, maxlength = 75) %]
68       </td>
69     </tr>
70
71     <tr>
72       <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
73
74       <td>
75         [% L.input_tag('shipto.shiptocontact', SELF.shipto.shiptocontact,  size = 30, maxlength = 75) %]
76       </td>
77     </tr>
78
79     <tr>
80       <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
81
82       <td>
83         [% L.input_tag('shipto.shiptophone', SELF.shipto.shiptophone,  size = 30, maxlength = 30) %]
84       </td>
85     </tr>
86
87     <tr>
88       <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
89
90       <td>
91         [% L.input_tag('shipto.shiptofax', SELF.shipto.shiptofax,  size = 30, maxlength = 30) %]
92       </td>
93     </tr>
94
95     <tr>
96       <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
97
98       <td>
99         [% L.input_tag('shipto.shiptoemail', SELF.shipto.shiptoemail,  size = 45) %]
100       </td>
101     </tr>
102   </table>
103
104   [% L.button_tag('submitInputButton(this);', LxERP.t8('Delete Shipto'), name = 'action_delete_shipto', class = 'submit') %]
105   [% IF ( !SELF.shipto.shipto_id ) %]
106     <script type="text/javascript">
107       $('#action_delete_shipto').hide();
108     </script>
109   [% END %]
110 </div>