Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision f6de0aa9

Von Moritz Bunkus vor fast 17 Jahren hinzugefügt

  • ID f6de0aa979f607520f718b51aa5834b314e674eb
  • Vorgänger 87dbaf3c
  • Nachfolger 8b797f8b

Kompatibilitätsfix für ältere Template-Versionen: Das Whitespace-Removal ~ gibt es in älteren Versionen nicht.

Unterschiede anzeigen:

templates/webpages/generic/multibox.html
39 39
[%- END -%]
40 40
[%- IF DATA.size and limit < DATA.size %]
41 41
<input type="text" 
42
 [%~ IF name     %] name="[%     HTML.escape(name)     %]"[% END ~%]
43
 [%~ IF id       %] id="[%       HTML.escape(id)       %]"[% END ~%]
44
 [%~ IF default  %] value="[%    HTML.escape(default)  %]"[% END ~%]
45
 [%~ IF style    %] style="[%    HTML.escape(style)    %]"[% END ~%]
42
 [%- IF name     %] name="[%     HTML.escape(name)     %]"[% END %]
43
 [%- IF id       %] id="[%       HTML.escape(id)       %]"[% END %]
44
 [%- IF default  %] value="[%    HTML.escape(default)  %]"[% END %]
45
 [%- IF style    %] style="[%    HTML.escape(style)    %]"[% END %]
46 46
>
47
[%~ IF select %]
47
[%- IF select %]
48 48
  <button type="button" onclick="[% select %]">?</button>
49
[% END ~%]
49
[% END %]
50 50
[%- ELSE %]
51 51
<select 
52
 [%~ IF name     %] name="[%     HTML.escape(name)     %]"[% END ~%]
53
 [%~ IF id       %] id="[%       HTML.escape(id)       %]"[% END ~%]
54
 [%~ IF style    %] style="[%    HTML.escape(style)    %]"[% END ~%]
55
 [%~ IF onChange %] onChange="[% HTML.escape(onChange) %]"[% END ~%]
52
 [%- IF name     %] name="[%     HTML.escape(name)     %]"[% END %]
53
 [%- IF id       %] id="[%       HTML.escape(id)       %]"[% END %]
54
 [%- IF style    %] style="[%    HTML.escape(style)    %]"[% END %]
55
 [%- IF onChange %] onChange="[% HTML.escape(onChange) %]"[% END %]
56 56
>
57 57
  [%- IF show_empty %]
58 58
  <option value=""></option>
templates/webpages/oe/orders_header_de.html
120 120
                  <tr>
121 121
                    <th align=right>Wechselkurs</th>
122 122
                    <td>
123
                     [%~ IF forex ~%]
123
                     [%- IF forex %]
124 124
                      [% LxERP.format_amount(exchangerate, 0) %]
125
                     [%~ ELSE ~%]
125
                     [%- ELSE %]
126 126
                      <input name=exchangerate size=10 value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
127
                     [%~ END ~%]
127
                     [%- END %]
128 128
                    </td>
129 129
                  </tr>
130 130
[%- END %]
......
214 214
[%- END %]
215 215
                  <tr>
216 216
                    <th align=right nowrap>
217
                     [%~ IF is_order ~%]
217
                     [%- IF is_order %]
218 218
                      Auftragsdatum
219
                     [%~ ELSE ~%]
219
                     [%- ELSE %]
220 220
                      Angebotsdatum
221
                     [%~ END ~%]
221
                     [%- END %]
222 222
                    </th>
223 223
                    [% button1 %]
224 224
                  </tr>
225 225
                  <tr>
226 226
                    <th align=right nowrap>
227
                     [%~ IF is_sales_quo ~%]
227
                     [%- IF is_sales_quo %]
228 228
                      g?ltig bis
229
                     [%~ ELSE ~%]
229
                     [%- ELSE %]
230 230
                      Lieferdatum
231
                     [%~ END ~%]
231
                     [%- END %]
232 232
                    </th>
233 233
                    [% button2 %]
234 234
                  </tr>
templates/webpages/oe/orders_header_master.html
120 120
                  <tr>
121 121
                    <th align=right><translate>Exchangerate</translate></th>
122 122
                    <td>
123
                     [%~ IF forex ~%]
123
                     [%- IF forex %]
124 124
                      [% LxERP.format_amount(exchangerate, 0) %]
125
                     [%~ ELSE ~%]
125
                     [%- ELSE %]
126 126
                      <input name=exchangerate size=10 value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
127
                     [%~ END ~%]
127
                     [%- END %]
128 128
                    </td>
129 129
                  </tr>
130 130
[%- END %]
......
214 214
[%- END %]
215 215
                  <tr>
216 216
                    <th align=right nowrap>
217
                     [%~ IF is_order ~%]
217
                     [%- IF is_order %]
218 218
                      <translate>Order Date</translate>
219
                     [%~ ELSE ~%]
219
                     [%- ELSE %]
220 220
                      <translate>Quotation Date</translate>
221
                     [%~ END ~%]
221
                     [%- END %]
222 222
                    </th>
223 223
                    [% button1 %]
224 224
                  </tr>
225 225
                  <tr>
226 226
                    <th align=right nowrap>
227
                     [%~ IF is_sales_quo ~%]
227
                     [%- IF is_sales_quo %]
228 228
                      <translate>Valid until</translate>
229
                     [%~ ELSE ~%]
229
                     [%- ELSE %]
230 230
                      <translate>Required by</translate>
231
                     [%~ END ~%]
231
                     [%- END %]
232 232
                    </th>
233 233
                    [% button2 %]
234 234
                  </tr>

Auch abrufbar als: Unified diff