[% USE T8 %] [% USE LxERP %] [% USE L %]
[% 'Select Shipping Address' | $T8 %] [% L.select_tag( 'shipto.shipto_id', SELF.shiptos, default = SELF.shipto.shipto_id, value_key = 'shipto_id', title_key = 'displayable_id', with_empty = 1, empty_title = LxERP.t8('New shipto'), onchange = "kivi.CustomerVendor.selectShipto({onFormSet: function(){ shiptoMapWidget.testInputs(); kivi.reinit_widgets(); }});", ) %]
[% 'Name and Address' | $T8 %]
[% 'Name' | $T8 %] [% L.input_tag_trim('shipto.shiptoname', SELF.shipto.shiptoname, class="wi-wide") %]
[% 'Department' | $T8 %] [% L.input_tag_trim('shipto.shiptodepartment_1', SELF.shipto.shiptodepartment_1, class="wi-wide") %]
[% L.input_tag_trim('shipto.shiptodepartment_2', SELF.shipto.shiptodepartment_2, class="wi-wide addition") %]
[% 'Street' | $T8 %] [% L.input_tag_trim('shipto.shiptostreet', SELF.shipto.shiptostreet, class="wi-wide") %]
[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %] [% L.input_tag_trim('shipto.shiptozipcode', SELF.shipto.shiptozipcode, class="wi-verysmall") %][% L.input_tag_trim('shipto.shiptocity', SELF.shipto.shiptocity, class="wi-wide--verysmall", style='width:13.1em;') %]
[% 'Country' | $T8 %] [% L.input_tag_trim('shipto.shiptocountry', SELF.shipto.shiptocountry, class="wi-wide") %]
[% 'GLN' | $T8 %] [% L.input_tag_trim('shipto.shiptogln', SELF.shipto.shiptogln, class="wi-wide") %]
[% shipto_cvars = SELF.shipto.cvars_by_config %] [% IF ( shipto_cvars.size ) %] [% FOREACH var = shipto_cvars %] [% END %] [% END %]
[% 'Communication' | $T8 %]
[% 'Contact' | $T8 %] [% L.input_tag_trim('shipto.shiptocontact', SELF.shipto.shiptocontact, class="wi-wide") %]
[% 'Phone' | $T8 %] [% L.input_tag_trim('shipto.shiptophone', SELF.shipto.shiptophone, class="wi-wide") %]
[% 'Fax' | $T8 %] [% L.input_tag_trim('shipto.shiptofax', SELF.shipto.shiptofax, class="wi-wide") %]
[% 'E-mail' | $T8 %] [% L.input_tag_trim('shipto.shiptoemail', SELF.shipto.shiptoemail, class="wi-wide") %]
[% var.config.description | html %] [% INCLUDE 'common/render_cvar_input.html', cvar_name_prefix='shipto_cvars.' %]
[% L.button_tag('submitInputButton("delete_shipto");', LxERP.t8('Delete Shipto'), class = 'submit') %]
[% IF ( !SELF.shipto.shipto_id ) %] [% END %]