-[% USE HTML %]<body>
+[% USE HTML %]
+
+[% BLOCK jump_block %]
+ <p>
+ Springe zu <a href="#billing">Rechnungsadresse</a>
+ [%- FOREACH shipto = SHIPTO %]
+ ,
+ <a href="#shipping[% loop.count %]">
+ Lieferadresse
+ "[% HTML.escape(shipto.shiptoname) %]"
+ </a>
+ [%- END %]
+ [%- FOREACH contact = CONTACTS %]
+ ,
+ <a href="#contact[% loop.count %]">
+ Ansprechpartner
+ "[% HTML.escape(contact.cp_name) %]"
+ </a>
+ [%- END %]
+ </p>
+
+ <hr>
+[% END %]
+
+<body>
<div width="100%" class="listtop">
[% IF is_customer %]Kundendetails[% ELSE %]Lieferantendetails[% END %] "[% HTML.escape(name) %]"
</div>
- <p>Springe zu <a href="#billing">Rechnungsadresse</a>
- [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]">Lieferadresse "[% HTML.escape(shipto.shiptoname) %]"</a>[% END %]
- [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]">Ansprechpartner "[% HTML.escape(contact.cp_name) %]"</a>[% END %]</p>
-
- <hr>
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
<a name="billing"><div class="listheading">Rechnungsadresse</div></a>
-
-
-
-
[% FOREACH row = SHIPTO %]
<hr>
- <p>Springe zu <a href="#billing">Rechnungsadresse</a>
- [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]">Lieferadresse "[% HTML.escape(shipto.shiptoname) %]"</a>[% END %]
- [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]">Ansprechpartner "[% HTML.escape(contact.cp_name) %]"</a>[% END %]</p>
-
- <hr>
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
<a name="shipping[% loop.count %]"><div class="listheading">Lieferadresse "[% HTML.escape(row.shiptoname) %]"</div></a>
<hr>
- <p>Springe zu <a href="#billing">Rechnungsadresse</a>
- [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]">Lieferadresse "[% HTML.escape(shipto.shiptoname) %]"</a>[% END %]
- [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]">Ansprechpartner "[% HTML.escape(contact.cp_name) %]"</a>[% END %]</p>
-
- <hr>
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
<a name="contact[% loop.count %]"><div class="listheading">Ansprechpartner "[% HTML.escape(row.cp_name) %]"</div></a>
-[% USE HTML %]<body>
+[% USE HTML %]
+
+[% BLOCK jump_block %]
+ <p>
+ <translate>Jump to</translate> <a href="#billing"><translate>Billing Address</translate></a>
+ [%- FOREACH shipto = SHIPTO %]
+ ,
+ <a href="#shipping[% loop.count %]">
+ <translate>Shipping Address</translate>
+ "[% HTML.escape(shipto.shiptoname) %]"
+ </a>
+ [%- END %]
+ [%- FOREACH contact = CONTACTS %]
+ ,
+ <a href="#contact[% loop.count %]">
+ <translate>Contact Person</translate>
+ "[% HTML.escape(contact.cp_name) %]"
+ </a>
+ [%- END %]
+ </p>
+
+ <hr>
+[% END %]
+
+<body>
<div width="100%" class="listtop">
[% IF is_customer %]<translate>Customer details</translate>[% ELSE %]<translate>Vendor details</translate>[% END %] "[% HTML.escape(name) %]"
</div>
- <p><translate>Jump to</translate> <a href="#billing"><translate>Billing Address</translate></a>
- [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]"><translate>Shipping Address</translate> "[% HTML.escape(shipto.shiptoname) %]"</a>[% END %]
- [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]"><translate>Contact Person</translate> "[% HTML.escape(contact.cp_name) %]"</a>[% END %]</p>
-
- <hr>
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
<a name="billing"><div class="listheading"><translate>Billing Address</translate></div></a>
-
-
-
-
[% FOREACH row = SHIPTO %]
<hr>
- <p><translate>Jump to</translate> <a href="#billing"><translate>Billing Address</translate></a>
- [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]"><translate>Shipping Address</translate> "[% HTML.escape(shipto.shiptoname) %]"</a>[% END %]
- [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]"><translate>Contact Person</translate> "[% HTML.escape(contact.cp_name) %]"</a>[% END %]</p>
-
- <hr>
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
<a name="shipping[% loop.count %]"><div class="listheading"><translate>Shipping Address</translate> "[% HTML.escape(row.shiptoname) %]"</div></a>
<hr>
- <p><translate>Jump to</translate> <a href="#billing"><translate>Billing Address</translate></a>
- [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]"><translate>Shipping Address</translate> "[% HTML.escape(shipto.shiptoname) %]"</a>[% END %]
- [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]"><translate>Contact Person</translate> "[% HTML.escape(contact.cp_name) %]"</a>[% END %]</p>
-
- <hr>
+ [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
<a name="contact[% loop.count %]"><div class="listheading"><translate>Contact Person</translate> "[% HTML.escape(row.cp_name) %]"</div></a>