Umstellung der Vorlagen in templates/webpages/common von HTML::Template auf Template.
[kivitendo-erp.git] / templates / webpages / oe / check_for_direct_delivery_de.html
index 6a307a8..7ab223b 100644 (file)
@@ -1,4 +1,4 @@
-<body>
+[% USE HTML %]<body>
 
  <div class="listtop" width="100%">Lieferadresse &uuml;bernehmen</div>
 
@@ -8,57 +8,57 @@
   <table>
    <tr>
     <th align="right" valign="top">Name:</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptoname ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptoname) %]</td>
    </tr>
 
    <tr>
     <th align="right" valign="top">Abteilung:</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptodepartment_1 ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptodepartment_1) %]</td>
    </tr>
 
    <tr>
     <th align="right" valign="top">&nbsp;</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptodepartment_2 ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptodepartment_2) %]</td>
    </tr>
 
    <tr>
     <th align="right" valign="top">Straße:</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptostreet ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptostreet) %]</td>
    </tr>
 
    <tr>
     <th align="right" valign="top">PLZ:</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptozipcode ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptozipcode) %]</td>
    </tr>
 
    <tr>
     <th align="right" valign="top">Stadt:</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptocity ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptocity) %]</td>
    </tr>
 
    <tr>
     <th align="right" valign="top">Land:</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptocountry ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptocountry) %]</td>
    </tr>
 
    <tr>
     <th align="right" valign="top">Kontakt:</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptocontact ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptocontact) %]</td>
    </tr>
 
    <tr>
     <th align="right" valign="top">Telefon:</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptophone ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptophone) %]</td>
    </tr>
 
    <tr>
     <th align="right" valign="top">Fax:</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptofax ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptofax) %]</td>
    </tr>
 
    <tr>
     <th align="right" valign="top">eMail:</th>
-    <td valign="top"><TMPL_VAR CFDD_shiptoemail ESCAPE=HTML></td>
+    <td valign="top">[% HTML.escape(CFDD_shiptoemail) %]</td>
    </tr>
   </table>
  </p>
@@ -76,8 +76,9 @@
   <input type="hidden" name="yes_nextsub" value="check_for_direct_delivery_yes">
   <input type="hidden" name="no_nextsub" value="check_for_direct_delivery_no">
 
-  <TMPL_LOOP VARIABLES>
-   <input type="hidden" name="<TMPL_VAR key ESCAPE=HTML>" value="<TMPL_VAR value ESCAPE=HTML>"></TMPL_LOOP>
+  [%- FOREACH row = VARIABLES %]
+  <input type="hidden" name="[% HTML.escape(row.key) %]" value="[% HTML.escape(row.value) %]">
+  [%- END %]
 
  </form>