X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fio%2Fship_to.html;h=e3e6500ba5a3221bbe18a28bf5eb895bf5745a5e;hb=219d88ab03186a74e5dd474175e49bd74dacf15f;hp=7e1b1098037b638d78fb8be1097f145470c02f4a;hpb=83542c806dc5c249bf640e344eaf3831cdf2f2ea;p=kivitendo-erp.git diff --git a/templates/webpages/io/ship_to.html b/templates/webpages/io/ship_to.html index 7e1b10980..e3e6500ba 100644 --- a/templates/webpages/io/ship_to.html +++ b/templates/webpages/io/ship_to.html @@ -1,7 +1,89 @@ -[% USE HTML %][% USE L %][% USE LxERP %] - +[% USE HTML %][% USE L %][% USE LxERP %][%- USE JavaScript -%] + + + +[% select_options = [ [ 0, LxERP.t8("Billing Address") ] ] ; + FOREACH shipto = vc_obj.shipto ; + tmpcity = shipto.shiptozipcode _ ' ' _ shipto.shiptocity ; + tmptitle = [ shipto.shiptoname, shipto.shiptostreet, tmpcity ] ; + CALL select_options.import([ [ loop.count, tmptitle.grep('\S').join("; ") ] ]) ; + END ; + '' %]
+ [% L.hidden_tag("shipto_id", shipto_id) %] + +

+ [% LxERP.t8("Copy address from master data") %]: + [% L.select_tag("", select_options, id="shipto_to_copy", style="width: 400px") %] + [% L.button_tag("copy_address()", LxERP.t8("Copy")) %] + [% L.button_tag("clear_fields()", LxERP.t8("Clear fields")) %] +

@@ -48,6 +130,11 @@ + + + + + @@ -75,6 +162,13 @@ +[% FOREACH var = cvars %] + + + + + +[% END %]
[% HTML.escape(country) %] [% L.input_tag("shiptocountry", shiptocountry, "size", "35") %]
[% LxERP.t8('GLN') %][% HTML.escape(gln) %][% L.input_tag("shiptogln", shiptogln, "size", "35") %]
[% LxERP.t8('Contact') %] [% HTML.escape(contact) %][% HTML.escape(email) %] [% L.input_tag("shiptoemail", shiptoemail, "size", "35") %]
[% HTML.escape(var.config.description) %][% INCLUDE 'common/render_cvar_input.html' cvar_name_prefix='shiptocvar_' %]

@@ -83,6 +177,5 @@ [% L.hidden_tag("nextsub", nextsub) %] [% L.hidden_tag("previousform", previousform) %] - [% L.submit_tag("__dummy", LxERP.t8("Continue")) %] + [% L.button_tag("clear_shipto_id_before_submit()", LxERP.t8("Continue")) %]
-