Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1a49205b

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

  • ID 1a49205b2de274e62b952b365853fa84488ad0a0
  • Vorgänger e5d39a3e
  • Nachfolger c326d9d2

design40: a2c920be72 - Wechselkurs in form_header anzeigen

Unterschiede anzeigen:

templates/design40_webpages/ap/form_header.html
90 90
    [% END %]
91 91
    <tr>
92 92
      <th>[% 'Currency' | $T8 %]</th>
93
      <th>
94
        [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name", class="wi-small") %]
95
        [% IF ( defaultcurrency && (currency != defaultcurrency) ) %]
96
          [% 'Exchangerate' | $T8 %]
97
          [% IF ( forex ) %]
98
            <input type="hidden" name="exchangerate" value="[% exchangerate | html %]">
99
            [% exchangerate | html %]
100
          [% ELSE %]
101
            <input type="text" name="exchangerate" size="10" value="[% exchangerate | html %]">
102
          [% END %]
103
        [% END %]
104
      </th>
93
      <td>
94
        [%- IF readonly  %]
95
          [% HTML.escape(currency) %]
96
          [% L.hidden_tag("currency", currency) %]
97
        [%- ELSE %]
98
          [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name", class="wi-small") %]
99
        [%- END %]
100
      </td>
105 101
    </tr>
102
    [% IF ( defaultcurrency && (currency != defaultcurrency) ) %]
103
      <tr>
104
        <th>[% 'Exchangerate' | $T8 %]</th>
105
        <td>
106
        [%- IF readonly  %]
107
          [% LxERP.format_amount(exchangerate, 5) %]
108
          [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
109
        [%- ELSE %]
110
          <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
111
        [%- END %]
112
          [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
113
     </td>
114
    </tr>
115
    [% END %]
106 116
    [% IF ALL_DEPARTMENTS %]
107 117
    <tr>
108 118
      <th>[% 'Department' | $T8 %]</th>
templates/design40_webpages/ar/form_header.html
93 93
      [% END %]
94 94
      <tr>
95 95
        <th>[% 'Currency' | $T8 %]</th>
96
        <td>[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]</td>
96
        <td>
97
          [%- IF readonly  %]
98
            [% HTML.escape(currency) %]
99
            [% L.hidden_tag("currency", currency) %]
100
          [%- ELSE %]
101
            [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]
102
          [%- END %]
103
        </td>
97 104
        [% L.hidden_tag('defaultcurrency', defaultcurrency) %]
98 105
        [% L.hidden_tag('fxgain_accno', fxgain_accno) %]
99 106
        [% L.hidden_tag('fxloss_accno', fxloss_accno) %]
100 107
        [% L.hidden_tag('forex', forex) %]
101
        [% IF show_exch %]
102
          <!-- PENDENT: Testen und Design ggf. anpassen -->
103
          &nbsp; [% 'Exchangerate' | $T8 %]:
104
          [% IF forex %]
105
            [% L.hidden_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1)) %][% LxERP.format_amount(exchangerate, 5, 1) %]
106
          [% ELSE %]
107
            [% L.input_tag('exchangerate', LxERP.format_amount(exchangerate, 5, 1), size=10) %]
108
          [% END %]
109
        [% END %]
108
      </tr>
109
      [% IF show_exch %]
110
      <tr>
111
        <th>[% 'Exchangerate' | $T8 %]</th>
112
        <td>
113
          [%- IF readonly  %]
114
            [% LxERP.format_amount(exchangerate, 5) %]
115
            [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
116
          [%- ELSE %]
117
            <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
118
          [%- END %]
119
          [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
120
        </td>
121
      </tr>
122
      [% END %]
110 123
      </tr>
111 124
      [% IF ALL_DEPARTMENTS %]
112 125
        <tr>
templates/design40_webpages/ir/form_header.html
124 124
    [% IF currencies %]
125 125
      <tr>
126 126
        <th>[% 'Currency' | $T8 %]</th>
127
        <td class="wi-small">[% currencies %]</td>
127
          <td class="wi-small">
128
          [%- IF readonly  %]
129
            [% HTML.escape(currency) %]
130
            [% L.hidden_tag("currency", currency) %]
131
          [%- ELSE %]
132
            [% currencies %]
133
          [%- END %]
134
          </td>
128 135
      </tr>
129 136
    [% END %]
130 137
    <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
......
133 140
      <tr>
134 141
        <th>[% 'Exchangerate' | $T8 %]</th>
135 142
        <td class="wi-small">
136
          [% IF forex %]
137
            <span class="data wi-small">[% LxERP.format_amount(exchangerate, 5) %]</span>
138
          [% ELSE %]
139
            <input type="text" name="exchangerate" class="wi-small" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
140
          [% END %]
143
        [%- IF readonly  %]
144
          [% LxERP.format_amount(exchangerate, 5) %]
145
          [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
146
        [% ELSE %]
147
          <input type="text" name="exchangerate" class="wi-small" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
148
        [% END %]
149
        [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
141 150
        </td>
142 151
      </tr>
143 152
    [% 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