Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1967b595

Von Moritz Bunkus vor etwa 16 Jahren hinzugefügt

  • ID 1967b595a33f1ac4436d7bef70e0b8f23813ce04
  • Vorgänger 018e340a
  • Nachfolger 90ae71a9

Kunden-/Lieferantendetails-Popup-Fenster: Schleifen für die Sprung-Links in eigenen Block ausgelagert, damit die Schleifenvariable "contact" nicht den Wert aus $form überschreibt.

Unterschiede anzeigen:

templates/webpages/common/show_vc_details_de.html
1
[% USE HTML %]<body>
1
[% USE HTML %]
2

  
3
[% BLOCK jump_block %]
4
 <p>
5
  Springe zu <a href="#billing">Rechnungsadresse</a>
6
  [%- FOREACH shipto = SHIPTO %]
7
   ,
8
   <a href="#shipping[% loop.count %]">
9
    Lieferadresse
10
    &quot;[% HTML.escape(shipto.shiptoname) %]&quot;
11
   </a>
12
  [%- END %]
13
  [%- FOREACH contact = CONTACTS %]
14
   ,
15
   <a href="#contact[% loop.count %]">
16
    Ansprechpartner
17
    &quot;[% HTML.escape(contact.cp_name) %]&quot;
18
   </a>
19
  [%- END %]
20
 </p>
21

  
22
 <hr>
23
[% END %]
24

  
25
<body>
2 26

  
3 27
 <div width="100%" class="listtop">
4 28
  [% IF is_customer %]Kundendetails[% ELSE %]Lieferantendetails[% END %] &quot;[% HTML.escape(name) %]&quot;
5 29
 </div>
6 30

  
7
 <p>Springe zu <a href="#billing">Rechnungsadresse</a>
8
  [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]">Lieferadresse &quot;[% HTML.escape(shipto.shiptoname) %]&quot;</a>[% END %]
9
  [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]">Ansprechpartner &quot;[% HTML.escape(contact.cp_name) %]&quot;</a>[% END %]</p>
10

  
11
 <hr>
31
 [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
12 32

  
13 33
 <a name="billing"><div class="listheading">Rechnungsadresse</div></a>
14 34

  
......
135 155

  
136 156

  
137 157

  
138

  
139

  
140

  
141

  
142 158
 [% FOREACH row = SHIPTO %]
143 159

  
144 160
  <hr>
145 161

  
146
  <p>Springe zu <a href="#billing">Rechnungsadresse</a>
147
   [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]">Lieferadresse &quot;[% HTML.escape(shipto.shiptoname) %]&quot;</a>[% END %]
148
   [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]">Ansprechpartner &quot;[% HTML.escape(contact.cp_name) %]&quot;</a>[% END %]</p>
149

  
150
  <hr>
162
  [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
151 163

  
152 164
  <a name="shipping[% loop.count %]"><div class="listheading">Lieferadresse &quot;[% HTML.escape(row.shiptoname) %]&quot;</div></a>
153 165

  
......
213 225

  
214 226
  <hr>
215 227

  
216
  <p>Springe zu <a href="#billing">Rechnungsadresse</a>
217
   [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]">Lieferadresse &quot;[% HTML.escape(shipto.shiptoname) %]&quot;</a>[% END %]
218
   [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]">Ansprechpartner &quot;[% HTML.escape(contact.cp_name) %]&quot;</a>[% END %]</p>
219

  
220
  <hr>
228
  [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
221 229

  
222 230
  <a name="contact[% loop.count %]"><div class="listheading">Ansprechpartner &quot;[% HTML.escape(row.cp_name) %]&quot;</div></a>
223 231

  
templates/webpages/common/show_vc_details_master.html
1
[% USE HTML %]<body>
1
[% USE HTML %]
2

  
3
[% BLOCK jump_block %]
4
 <p>
5
  <translate>Jump to</translate> <a href="#billing"><translate>Billing Address</translate></a>
6
  [%- FOREACH shipto = SHIPTO %]
7
   ,
8
   <a href="#shipping[% loop.count %]">
9
    <translate>Shipping Address</translate>
10
    &quot;[% HTML.escape(shipto.shiptoname) %]&quot;
11
   </a>
12
  [%- END %]
13
  [%- FOREACH contact = CONTACTS %]
14
   ,
15
   <a href="#contact[% loop.count %]">
16
    <translate>Contact Person</translate>
17
    &quot;[% HTML.escape(contact.cp_name) %]&quot;
18
   </a>
19
  [%- END %]
20
 </p>
21

  
22
 <hr>
23
[% END %]
24

  
25
<body>
2 26

  
3 27
 <div width="100%" class="listtop">
4 28
  [% IF is_customer %]<translate>Customer details</translate>[% ELSE %]<translate>Vendor details</translate>[% END %] &quot;[% HTML.escape(name) %]&quot;
5 29
 </div>
6 30

  
7
 <p><translate>Jump to</translate> <a href="#billing"><translate>Billing Address</translate></a>
8
  [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]"><translate>Shipping Address</translate> &quot;[% HTML.escape(shipto.shiptoname) %]&quot;</a>[% END %]
9
  [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]"><translate>Contact Person</translate> &quot;[% HTML.escape(contact.cp_name) %]&quot;</a>[% END %]</p>
10

  
11
 <hr>
31
 [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
12 32

  
13 33
 <a name="billing"><div class="listheading"><translate>Billing Address</translate></div></a>
14 34

  
......
135 155

  
136 156

  
137 157

  
138

  
139

  
140

  
141

  
142 158
 [% FOREACH row = SHIPTO %]
143 159

  
144 160
  <hr>
145 161

  
146
  <p><translate>Jump to</translate> <a href="#billing"><translate>Billing Address</translate></a>
147
   [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]"><translate>Shipping Address</translate> &quot;[% HTML.escape(shipto.shiptoname) %]&quot;</a>[% END %]
148
   [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]"><translate>Contact Person</translate> &quot;[% HTML.escape(contact.cp_name) %]&quot;</a>[% END %]</p>
149

  
150
  <hr>
162
  [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
151 163

  
152 164
  <a name="shipping[% loop.count %]"><div class="listheading"><translate>Shipping Address</translate> &quot;[% HTML.escape(row.shiptoname) %]&quot;</div></a>
153 165

  
......
213 225

  
214 226
  <hr>
215 227

  
216
  <p><translate>Jump to</translate> <a href="#billing"><translate>Billing Address</translate></a>
217
   [% FOREACH shipto = SHIPTO %], <a href="#shipping[% loop.count %]"><translate>Shipping Address</translate> &quot;[% HTML.escape(shipto.shiptoname) %]&quot;</a>[% END %]
218
   [% FOREACH contact = CONTACTS %], <a href="#contact[% loop.count %]"><translate>Contact Person</translate> &quot;[% HTML.escape(contact.cp_name) %]&quot;</a>[% END %]</p>
219

  
220
  <hr>
228
  [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO %]
221 229

  
222 230
  <a name="contact[% loop.count %]"><div class="listheading"><translate>Contact Person</translate> &quot;[% HTML.escape(row.cp_name) %]&quot;</div></a>
223 231

  

Auch abrufbar als: Unified diff