[%- USE T8 %] [%- USE LxERP %] [%- USE L %]
[% shipto_cvars = SELF.shipto.cvars_by_config %] [% IF ( shipto_cvars.size ) %] [% FOREACH var = shipto_cvars %] [% END %] [% END %]
[% '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' | $T8 %] [% L.input_tag('shipto.shiptoname', SELF.shipto.shiptoname, size = 35) %]
[% 'Department' | $T8 %] [% L.input_tag('shipto.shiptodepartment_1', SELF.shipto.shiptodepartment_1, size = 16) %] [% L.input_tag('shipto.shiptodepartment_2', SELF.shipto.shiptodepartment_2, size = 16) %]
[% 'Street' | $T8 %] [% L.input_tag('shipto.shiptostreet', SELF.shipto.shiptostreet, size = 35) %]
[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %] [% L.input_tag('shipto.shiptozipcode', SELF.shipto.shiptozipcode, size = 5) %] [% L.input_tag('shipto.shiptocity', SELF.shipto.shiptocity, size = 30) %]
[% 'Country' | $T8 %] [% L.input_tag('shipto.shiptocountry', SELF.shipto.shiptocountry, size = 35) %]
[% 'GLN' | $T8 %] [% L.input_tag('shipto.shiptogln', SELF.shipto.shiptogln, size = 35) %]
[% 'Contact' | $T8 %] [% L.input_tag('shipto.shiptocontact', SELF.shipto.shiptocontact, size = 30) %]
[% 'Phone' | $T8 %] [% L.input_tag('shipto.shiptophone', SELF.shipto.shiptophone, size = 30) %]
[% 'Fax' | $T8 %] [% L.input_tag('shipto.shiptofax', SELF.shipto.shiptofax, size = 30) %]
[% 'E-mail' | $T8 %] [% L.input_tag('shipto.shiptoemail', SELF.shipto.shiptoemail, size = 45) %]

[% 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 %]