Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7ba8bddf

Von Jan Büren vor fast 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
94 94
    [% END %]
95 95
    <tr>
96 96
      <th>[% 'Currency' | $T8 %]</th>
97
      <th>
98
        [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name", class="wi-small") %]
99
        [% IF ( defaultcurrency && (currency != defaultcurrency) ) %]
100
          [% 'Exchangerate' | $T8 %]
101
          [% IF ( forex ) %]
102
            <input type="hidden" name="exchangerate" value="[% exchangerate | html %]">
103
            [% exchangerate | html %]
104
          [% ELSE %]
105
            <input type="text" name="exchangerate" size="10" value="[% exchangerate | html %]">
106
          [% END %]
107
        [% END %]
108
      </th>
97
      <td>
98
        [%- IF readonly  %]
99
          [% HTML.escape(currency) %]
100
          [% L.hidden_tag("currency", currency) %]
101
        [%- ELSE %]
102
          [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name", class="wi-small") %]
103
        [%- END %]
104
      </td>
109 105
    </tr>
106
    [% IF ( defaultcurrency && (currency != defaultcurrency) ) %]
107
      <tr>
108
        <th>[% 'Exchangerate' | $T8 %]</th>
109
        <td>
110
        [%- IF readonly  %]
111
          [% LxERP.format_amount(exchangerate, 5) %]
112
          [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
113
        [%- ELSE %]
114
          <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
115
        [%- END %]
116
          [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
117
     </td>
118
    </tr>
119
    [% END %]
110 120
    [% IF ALL_DEPARTMENTS %]
111 121
    <tr>
112 122
      <th>[% 'Department' | $T8 %]</th>
templates/design40_webpages/ar/form_header.html
97 97
      [% END %]
98 98
      <tr>
99 99
        <th>[% 'Currency' | $T8 %]</th>
100
        <td>[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]</td>
100
        <td>
101
          [%- IF readonly  %]
102
            [% HTML.escape(currency) %]
103
            [% L.hidden_tag("currency", currency) %]
104
          [%- ELSE %]
105
            [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]
106
          [%- END %]
107
        </td>
101 108
        [% L.hidden_tag('defaultcurrency', defaultcurrency) %]
102 109
        [% L.hidden_tag('fxgain_accno', fxgain_accno) %]
103 110
        [% L.hidden_tag('fxloss_accno', fxloss_accno) %]
104 111
        [% L.hidden_tag('forex', forex) %]
105
        [% IF show_exch %]
106
          <!-- PENDENT: Testen und Design ggf. anpassen -->
107
          &nbsp; [% 'Exchangerate' | $T8 %]:
108
          [% IF forex %]
109
            [% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1)) %][% LxERP.format_amount(exchangerate, 5, 1) %]
110
          [% ELSE %]
111
            [% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1), size=10) %]
112
          [% END %]
113
        [% END %]
112
      </tr>
113
      [% IF show_exch %]
114
      <tr>
115
        <th>[% 'Exchangerate' | $T8 %]</th>
116
        <td>
117
          [%- IF readonly  %]
118
            [% LxERP.format_amount(exchangerate, 5) %]
119
            [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
120
          [%- ELSE %]
121
            <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
122
          [%- END %]
123
          [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
124
        </td>
125
      </tr>
126
      [% END %]
114 127
      </tr>
115 128
      [% IF ALL_DEPARTMENTS %]
116 129
        <tr>
templates/design40_webpages/ir/form_header.html
127 127
    [% IF currencies %]
128 128
      <tr>
129 129
        <th>[% 'Currency' | $T8 %]</th>
130
        <td class="wi-small">[% currencies %]</td>
130
          <td class="wi-small">
131
          [%- IF readonly  %]
132
            [% HTML.escape(currency) %]
133
            [% L.hidden_tag("currency", currency) %]
134
          [%- ELSE %]
135
            [% currencies %]
136
          [%- END %]
137
          </td>
131 138
      </tr>
132 139
    [% END %]
133 140
    <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
......
136 143
      <tr>
137 144
        <th>[% 'Exchangerate' | $T8 %]</th>
138 145
        <td class="wi-small">
139
          [% IF forex %]
140
            <span class="data wi-small">[% LxERP.format_amount(exchangerate, 5) %]</span>
141
          [% ELSE %]
142
            <input type="text" name="exchangerate" class="wi-small" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
143
          [% END %]
146
        [%- IF readonly  %]
147
          [% LxERP.format_amount(exchangerate, 5) %]
148
          [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
149
        [% ELSE %]
150
          <input type="text" name="exchangerate" class="wi-small" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
151
        [% END %]
152
        [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
144 153
        </td>
145 154
      </tr>
146 155
    [% END %]
templates/design40_webpages/is/form_header.html
152 152
  [% IF currencies %]
153 153
    <tr>
154 154
      <th>[% 'Currency' | $T8 %]</th>
155
      <td>[% currencies %]</td>
155
      <td>
156
       [%- IF readonly  %]
157
         [% HTML.escape(currency) %]
158
         [% L.hidden_tag("currency", currency) %]
159
       [%- ELSE %]
160
         [% currencies %]
161
       [%- END %]
162
      </td>
156 163
    </tr>
157 164
  [% END %]
158 165
  <!--PENDENT: Hardcoded! Ist das korrekt? hps-->
......
200 207
      <tr>
201 208
        <th>[% 'Exchangerate' | $T8 %]</th>
202 209
        <td>
203
          [% IF forex %]
210
          [%- IF readonly  %]
204 211
            [% LxERP.format_amount(exchangerate, 5) %]
212
            [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
205 213
          [% ELSE %]
206 214
            <input type="text" name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
207 215
          [% END %]
216
          [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
208 217
        </td>
209 218
      </tr>
210 219
    [% END %]

Auch abrufbar als: Unified diff