Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7ba8bddf

Von Jan Büren vor etwa 2 Jahren hinzugefügt

  • ID 7ba8bddf57364c5c1b0c3cb9b9de023b17a01757
  • Vorgänger 2fa31576
  • Nachfolger 8301beec

design40: a2c920be72 - Wechselkurs in form_header anzeigen

Unterschiede anzeigen:

templates/design40_webpages/ap/form_header.html
[% END %]
<tr>
<th>[% 'Currency' | $T8 %]</th>
<th>
[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name", class="wi-small") %]
[% IF ( defaultcurrency && (currency != defaultcurrency) ) %]
[% 'Exchangerate' | $T8 %]
[% IF ( forex ) %]
<input type="hidden" name="exchangerate" value="[% exchangerate | html %]">
[% exchangerate | html %]
[% ELSE %]
<input type="text" name="exchangerate" size="10" value="[% exchangerate | html %]">
[% END %]
[% END %]
</th>
<td>
[%- IF readonly %]
[% HTML.escape(currency) %]
[% L.hidden_tag("currency", currency) %]
[%- ELSE %]
[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name", class="wi-small") %]
[%- END %]
</td>
</tr>
[% IF ( defaultcurrency && (currency != defaultcurrency) ) %]
<tr>
<th>[% 'Exchangerate' | $T8 %]</th>
<td>
[%- IF readonly %]
[% LxERP.format_amount(exchangerate, 5) %]
[% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
[%- ELSE %]
<input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
[%- END %]
[% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
</td>
</tr>
[% END %]
[% IF ALL_DEPARTMENTS %]
<tr>
<th>[% 'Department' | $T8 %]</th>
templates/design40_webpages/ar/form_header.html
[% END %]
<tr>
<th>[% 'Currency' | $T8 %]</th>
<td>[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]</td>
<td>
[%- IF readonly %]
[% HTML.escape(currency) %]
[% L.hidden_tag("currency", currency) %]
[%- ELSE %]
[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]
[%- END %]
</td>
[% L.hidden_tag('defaultcurrency', defaultcurrency) %]
[% L.hidden_tag('fxgain_accno', fxgain_accno) %]
[% L.hidden_tag('fxloss_accno', fxloss_accno) %]
[% L.hidden_tag('forex', forex) %]
[% IF show_exch %]
<!-- PENDENT: Testen und Design ggf. anpassen -->
&nbsp; [% 'Exchangerate' | $T8 %]:
[% IF forex %]
[% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1)) %][% LxERP.format_amount(exchangerate, 5, 1) %]
[% ELSE %]
[% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1), size=10) %]
[% END %]
[% END %]
</tr>
[% IF show_exch %]
<tr>
<th>[% 'Exchangerate' | $T8 %]</th>
<td>
[%- IF readonly %]
[% LxERP.format_amount(exchangerate, 5) %]
[% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
[%- ELSE %]
<input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
[%- END %]
[% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
</td>
</tr>
[% END %]
</tr>
[% IF ALL_DEPARTMENTS %]
<tr>
templates/design40_webpages/ir/form_header.html
[% IF currencies %]
<tr>
<th>[% 'Currency' | $T8 %]</th>
<td class="wi-small">[% currencies %]</td>
<td class="wi-small">
[%- IF readonly %]
[% HTML.escape(currency) %]
[% L.hidden_tag("currency", currency) %]
[%- ELSE %]
[% currencies %]
[%- END %]
</td>
</tr>
[% END %]
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
......
<tr>
<th>[% 'Exchangerate' | $T8 %]</th>
<td class="wi-small">
[% IF forex %]
<span class="data wi-small">[% LxERP.format_amount(exchangerate, 5) %]</span>
[% ELSE %]
<input type="text" name="exchangerate" class="wi-small" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
[% END %]
[%- IF readonly %]
[% LxERP.format_amount(exchangerate, 5) %]
[% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
[% ELSE %]
<input type="text" name="exchangerate" class="wi-small" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
[% END %]
[% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
</td>
</tr>
[% END %]
templates/design40_webpages/is/form_header.html
[% IF currencies %]
<tr>
<th>[% 'Currency' | $T8 %]</th>
<td>[% currencies %]</td>
<td>
[%- IF readonly %]
[% HTML.escape(currency) %]
[% L.hidden_tag("currency", currency) %]
[%- ELSE %]
[% currencies %]
[%- END %]
</td>
</tr>
[% END %]
<!--PENDENT: Hardcoded! Ist das korrekt? hps-->
......
<tr>
<th>[% 'Exchangerate' | $T8 %]</th>
<td>
[% IF forex %]
[%- IF readonly %]
[% LxERP.format_amount(exchangerate, 5) %]
[% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
[% ELSE %]
<input type="text" name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
[% END %]
[% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
</td>
</tr>
[% END %]

Auch abrufbar als: Unified diff