6 <table width="100%" id="shipto_table">
8 <th align="right">[% 'Shipping Address' | $T8 %]</th>
14 default = SELF.shipto.shipto_id,
15 value_key = 'shipto_id',
16 title_key = 'displayable_id',
18 empty_title = LxERP.t8('New shipto'),
19 onchange = "kivi.CustomerVendor.selectShipto({onFormSet: function(){ shiptoMapWidget.testInputs(); local_reinit_widgets(); }});",
26 <th align="right" nowrap>[% 'Name' | $T8 %]</th>
29 [% L.input_tag('shipto.shiptoname', SELF.shipto.shiptoname, size = 35) %]
34 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
37 [% L.input_tag('shipto.shiptodepartment_1', SELF.shipto.shiptodepartment_1, size = 16) %]
38 [% L.input_tag('shipto.shiptodepartment_2', SELF.shipto.shiptodepartment_2, size = 16) %]
43 <th align="right" nowrap>[% 'Street' | $T8 %]</th>
46 [% L.input_tag('shipto.shiptostreet', SELF.shipto.shiptostreet, size = 35) %]
48 <span id="shipto_map"></span>
49 <script type="text/javascript">
50 shiptoMapWidget = new kivi.CustomerVendor.MapWidget('shipto_shipto');
52 shiptoMapWidget.render($('#shipto_map'));
59 <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
62 [% L.input_tag('shipto.shiptozipcode', SELF.shipto.shiptozipcode, size = 5) %]
63 [% L.input_tag('shipto.shiptocity', SELF.shipto.shiptocity, size = 30) %]
68 <th align="right" nowrap>[% 'Country' | $T8 %]</th>
71 [% L.input_tag('shipto.shiptocountry', SELF.shipto.shiptocountry, size = 35) %]
76 <th align="right" nowrap>[% 'GLN' | $T8 %]</th>
79 [% L.input_tag('shipto.shiptogln', SELF.shipto.shiptogln, size = 35) %]
84 <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
87 [% L.input_tag('shipto.shiptocontact', SELF.shipto.shiptocontact, size = 30) %]
92 <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
95 [% L.input_tag('shipto.shiptophone', SELF.shipto.shiptophone, size = 30) %]
100 <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
103 [% L.input_tag('shipto.shiptofax', SELF.shipto.shiptofax, size = 30) %]
108 <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
111 [% L.input_tag('shipto.shiptoemail', SELF.shipto.shiptoemail, size = 45) %]
115 [% shipto_cvars = SELF.shipto.cvars_by_config %]
117 [% IF ( shipto_cvars.size ) %]
124 [% FOREACH var = shipto_cvars %]
126 <th align="right" valign="top" nowrap>[% var.config.description | html %]</th>
129 [% INCLUDE 'common/render_cvar_input.html'
130 cvar_name_prefix = 'shipto_cvars.'
138 [% L.button_tag('submitInputButton(this);', LxERP.t8('Delete Shipto'), name = 'action_delete_shipto', class = 'submit') %]
139 [% IF ( !SELF.shipto.shipto_id ) %]
140 <script type="text/javascript">
141 $('#action_delete_shipto').hide();