X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=templates%2Fwebpages%2Fio%2Fship_to.html;h=2ffed371fcd89286fdddc4c770432382215a4bf7;hb=061f4d6d32ed95055114582ede45e8387b302a53;hp=10f0ce2cc4edb9fe4c94a95faf9a5588e635ec46;hpb=0e723a19cf157a78a57458dda69fd1ea36e68ea1;p=kivitendo-erp.git diff --git a/templates/webpages/io/ship_to.html b/templates/webpages/io/ship_to.html index 10f0ce2cc..2ffed371f 100644 --- a/templates/webpages/io/ship_to.html +++ b/templates/webpages/io/ship_to.html @@ -1,6 +1,83 @@ -[% 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")) %] +

@@ -47,6 +124,11 @@ + + + + + @@ -82,5 +164,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")) %]
[% 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) %]