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

@@ -48,6 +124,11 @@ + + + + + @@ -57,7 +138,7 @@ @@ -83,7 +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) %][% LxERP.t8('Gender') %] - [% L.select_tag("shiptocp_gender", L.options_for_select([ [ "m", LxERP.t8("male") ], [ "f", LxERP.t8("female") ] ], "default", shiptocp_gender)) %] + [% L.select_tag('shiptocp_gender', [ [ 'm', LxERP.t8('male') ], [ 'f', LxERP.t8('female') ] ], 'default' = shiptocp_gender) %]