Kompatibilitätsfix für ältere Template-Versionen: Das Whitespace-Removal ~ gibt es...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 21 Nov 2007 14:07:55 +0000 (14:07 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Wed, 21 Nov 2007 14:07:55 +0000 (14:07 +0000)
templates/webpages/generic/multibox.html
templates/webpages/oe/orders_header_de.html
templates/webpages/oe/orders_header_master.html

index 5d8e863..49b7333 100644 (file)
 [%- END -%]
 [%- IF DATA.size and limit < DATA.size %]
 <input type="text" 
- [%~ IF name     %] name="[%     HTML.escape(name)     %]"[% END ~%]
- [%~ IF id       %] id="[%       HTML.escape(id)       %]"[% END ~%]
- [%~ IF default  %] value="[%    HTML.escape(default)  %]"[% END ~%]
- [%~ IF style    %] style="[%    HTML.escape(style)    %]"[% END ~%]
+ [%- IF name     %] name="[%     HTML.escape(name)     %]"[% END %]
+ [%- IF id       %] id="[%       HTML.escape(id)       %]"[% END %]
+ [%- IF default  %] value="[%    HTML.escape(default)  %]"[% END %]
+ [%- IF style    %] style="[%    HTML.escape(style)    %]"[% END %]
 >
-[%~ IF select %]
+[%- IF select %]
   <button type="button" onclick="[% select %]">?</button>
-[% END ~%]
+[% END %]
 [%- ELSE %]
 <select 
- [%~ IF name     %] name="[%     HTML.escape(name)     %]"[% END ~%]
- [%~ IF id       %] id="[%       HTML.escape(id)       %]"[% END ~%]
- [%~ IF style    %] style="[%    HTML.escape(style)    %]"[% END ~%]
- [%~ IF onChange %] onChange="[% HTML.escape(onChange) %]"[% END ~%]
+ [%- IF name     %] name="[%     HTML.escape(name)     %]"[% END %]
+ [%- IF id       %] id="[%       HTML.escape(id)       %]"[% END %]
+ [%- IF style    %] style="[%    HTML.escape(style)    %]"[% END %]
+ [%- IF onChange %] onChange="[% HTML.escape(onChange) %]"[% END %]
 >
   [%- IF show_empty %]
   <option value=""></option>
index 1e3ea8b..a251784 100644 (file)
                   <tr>
                     <th align=right>Wechselkurs</th>
                     <td>
-                     [%~ IF forex ~%]
+                     [%- IF forex %]
                       [% LxERP.format_amount(exchangerate, 0) %]
-                     [%~ ELSE ~%]
+                     [%- ELSE %]
                       <input name=exchangerate size=10 value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
-                     [%~ END ~%]
+                     [%- END %]
                     </td>
                   </tr>
 [%- END %]
 [%- END %]
                   <tr>
                     <th align=right nowrap>
-                     [%~ IF is_order ~%]
+                     [%- IF is_order %]
                       Auftragsdatum
-                     [%~ ELSE ~%]
+                     [%- ELSE %]
                       Angebotsdatum
-                     [%~ END ~%]
+                     [%- END %]
                     </th>
                     [% button1 %]
                   </tr>
                   <tr>
                     <th align=right nowrap>
-                     [%~ IF is_sales_quo ~%]
+                     [%- IF is_sales_quo %]
                       gültig bis
-                     [%~ ELSE ~%]
+                     [%- ELSE %]
                       Lieferdatum
-                     [%~ END ~%]
+                     [%- END %]
                     </th>
                     [% button2 %]
                   </tr>
index 682daf5..76c3970 100644 (file)
                   <tr>
                     <th align=right><translate>Exchangerate</translate></th>
                     <td>
-                     [%~ IF forex ~%]
+                     [%- IF forex %]
                       [% LxERP.format_amount(exchangerate, 0) %]
-                     [%~ ELSE ~%]
+                     [%- ELSE %]
                       <input name=exchangerate size=10 value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
-                     [%~ END ~%]
+                     [%- END %]
                     </td>
                   </tr>
 [%- END %]
 [%- END %]
                   <tr>
                     <th align=right nowrap>
-                     [%~ IF is_order ~%]
+                     [%- IF is_order %]
                       <translate>Order Date</translate>
-                     [%~ ELSE ~%]
+                     [%- ELSE %]
                       <translate>Quotation Date</translate>
-                     [%~ END ~%]
+                     [%- END %]
                     </th>
                     [% button1 %]
                   </tr>
                   <tr>
                     <th align=right nowrap>
-                     [%~ IF is_sales_quo ~%]
+                     [%- IF is_sales_quo %]
                       <translate>Valid until</translate>
-                     [%~ ELSE ~%]
+                     [%- ELSE %]
                       <translate>Required by</translate>
-                     [%~ END ~%]
+                     [%- END %]
                     </th>
                     [% button2 %]
                   </tr>