From: Moritz Bunkus Date: Tue, 5 Aug 2008 12:50:56 +0000 (+0000) Subject: Kunden-/Lieferantendetails-Popup-Fenster: Schleifen für die Sprung-Links in eigenen... X-Git-Tag: release-2.6.0beta1~12 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1967b595a33f1ac4436d7bef70e0b8f23813ce04;p=kivitendo-erp.git Kunden-/Lieferantendetails-Popup-Fenster: Schleifen für die Sprung-Links in eigenen Block ausgelagert, damit die Schleifenvariable "contact" nicht den Wert aus $form überschreibt. --- diff --git a/templates/webpages/common/show_vc_details_de.html b/templates/webpages/common/show_vc_details_de.html index 8896c97d6..2e2e54544 100644 --- a/templates/webpages/common/show_vc_details_de.html +++ b/templates/webpages/common/show_vc_details_de.html @@ -1,14 +1,34 @@ -[% USE HTML %] +[% USE HTML %] + +[% BLOCK jump_block %] +

+ Springe zu Rechnungsadresse + [%- FOREACH shipto = SHIPTO %] + , + + Lieferadresse + "[% HTML.escape(shipto.shiptoname) %]" + + [%- END %] + [%- FOREACH contact = CONTACTS %] + , + + Ansprechpartner + "[% HTML.escape(contact.cp_name) %]" + + [%- END %] +

+ +
+[% END %] + +
[% IF is_customer %]Kundendetails[% ELSE %]Lieferantendetails[% END %] "[% HTML.escape(name) %]"
-

Springe zu Rechnungsadresse - [% FOREACH shipto = SHIPTO %], Lieferadresse "[% HTML.escape(shipto.shiptoname) %]"[% END %] - [% FOREACH contact = CONTACTS %], Ansprechpartner "[% HTML.escape(contact.cp_name) %]"[% END %]

- -
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
Rechnungsadresse
@@ -135,19 +155,11 @@ - - - - [% FOREACH row = SHIPTO %]
-

Springe zu Rechnungsadresse - [% FOREACH shipto = SHIPTO %], Lieferadresse "[% HTML.escape(shipto.shiptoname) %]"[% END %] - [% FOREACH contact = CONTACTS %], Ansprechpartner "[% HTML.escape(contact.cp_name) %]"[% END %]

- -
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
Lieferadresse "[% HTML.escape(row.shiptoname) %]"
@@ -213,11 +225,7 @@
-

Springe zu Rechnungsadresse - [% FOREACH shipto = SHIPTO %], Lieferadresse "[% HTML.escape(shipto.shiptoname) %]"[% END %] - [% FOREACH contact = CONTACTS %], Ansprechpartner "[% HTML.escape(contact.cp_name) %]"[% END %]

- -
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
Ansprechpartner "[% HTML.escape(row.cp_name) %]"
diff --git a/templates/webpages/common/show_vc_details_master.html b/templates/webpages/common/show_vc_details_master.html index ca6fca25f..d172ecb00 100644 --- a/templates/webpages/common/show_vc_details_master.html +++ b/templates/webpages/common/show_vc_details_master.html @@ -1,14 +1,34 @@ -[% USE HTML %] +[% USE HTML %] + +[% BLOCK jump_block %] +

+ Jump to Billing Address + [%- FOREACH shipto = SHIPTO %] + , + + Shipping Address + "[% HTML.escape(shipto.shiptoname) %]" + + [%- END %] + [%- FOREACH contact = CONTACTS %] + , + + Contact Person + "[% HTML.escape(contact.cp_name) %]" + + [%- END %] +

+ +
+[% END %] + +
[% IF is_customer %]Customer details[% ELSE %]Vendor details[% END %] "[% HTML.escape(name) %]"
-

Jump to Billing Address - [% FOREACH shipto = SHIPTO %], Shipping Address "[% HTML.escape(shipto.shiptoname) %]"[% END %] - [% FOREACH contact = CONTACTS %], Contact Person "[% HTML.escape(contact.cp_name) %]"[% END %]

- -
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
Billing Address
@@ -135,19 +155,11 @@ - - - - [% FOREACH row = SHIPTO %]
-

Jump to Billing Address - [% FOREACH shipto = SHIPTO %], Shipping Address "[% HTML.escape(shipto.shiptoname) %]"[% END %] - [% FOREACH contact = CONTACTS %], Contact Person "[% HTML.escape(contact.cp_name) %]"[% END %]

- -
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
Shipping Address "[% HTML.escape(row.shiptoname) %]"
@@ -213,11 +225,7 @@
-

Jump to Billing Address - [% FOREACH shipto = SHIPTO %], Shipping Address "[% HTML.escape(shipto.shiptoname) %]"[% END %] - [% FOREACH contact = CONTACTS %], Contact Person "[% HTML.escape(contact.cp_name) %]"[% END %]

- -
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
Contact Person "[% HTML.escape(row.cp_name) %]"