Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 42cb473f

Von Cem Aydin vor 11 Monaten hinzugefügt

  • ID 42cb473f4b587eeb8c83839595fb33aebdda9775
  • Vorgänger 22749661
  • Nachfolger 6f4b00d5

Design4.0: Debitorenbuchung templates/Ansicht vereinheitlichen

- Breiten angepasst
- span class data hinzugefügt
- label zu checkbox tag hinzugefügt
- textarea Inhalt escaped
- Presenter für input verwendet

Unterschiede anzeigen:

templates/design40_webpages/ar/form_header.html
49 49

  
50 50
  <table class="tbl-horizontal">
51 51
    <caption>[% 'Customer &amp; Order' | $T8 %]</caption>
52
    <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
52
    <colgroup><col class="wi-mediumsmall"><col class="wi-lightwide"></colgroup>
53 53
    <tbody>
54 54
      <tr>
55 55
        <th>[% 'Customer' | $T8 %]</th>
56
        <td>
56
        <td class="wi-lightwide">
57 57
         [% P.customer_vendor.picker("customer_id", customer_id, type="customer", show_details="1") %]
58 58
         [% L.hidden_tag("previous_customer_id", customer_id) %]
59 59
         [% L.hidden_tag('terms', terms) %]
......
79 79
      <tr>
80 80
        <th>[% LxERP.t8("Credit Limit") %]</th>
81 81
        <td>
82
         [% LxERP.format_amount(creditlimit, 0) %][% L.hidden_tag('creditlimit', LxERP.format_amount(creditlimit, 0)) %];
83
         [% LxERP.t8("Remaining") %]
84
         <span class="plus[% creditremaining < 0 ? 0 : 1 %]">[% LxERP.format_amount(creditremaining, 0) %][% L.hidden_tag('creditremaining', LxERP.format_amount(creditremaining, 0)) %]</span>
82
          <span class="data wi-lightwide">
83
            [% LxERP.format_amount(creditlimit, 0) %][% L.hidden_tag('creditlimit', LxERP.format_amount(creditlimit, 0)) %],
84
            [% LxERP.t8("Remaining") %]
85
            <span class="plus[% creditremaining < 0 ? 0 : 1 %]">[% LxERP.format_amount(creditremaining, 0) %][% L.hidden_tag('creditremaining', LxERP.format_amount(creditremaining, 0)) %]</span>
86
          </span>
85 87
        </td>
86 88
      </tr>
87 89
      [% IF invoice_obj.sepa_exports.as_list.size %]
......
102 104
            [% HTML.escape(currency) %]
103 105
            [% L.hidden_tag("currency", currency) %]
104 106
          [%- ELSE %]
105
            [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]
107
            [% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name", class="wi-lightwide") %]
106 108
          [%- END %]
107 109
        </td>
108 110
        [% L.hidden_tag('defaultcurrency', defaultcurrency) %]
......
118 120
            [% LxERP.format_amount(exchangerate, 5) %]
119 121
            [% L.hidden_tag("exchangerate", LxERP.format_amount(exchangerate, 5)) %]
120 122
          [%- ELSE %]
121
            <input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
123
            [% L.input_tag("exchangerate", LxERP.format_amount(exchangerate), class="wi-lightwide") %]
122 124
          [%- END %]
123 125
          [% IF record_forex %][% 'record exchange rate' | $T8 %][%- ELSE %][% 'default exchange rate' | $T8 %][%- END %]
124 126
        </td>
......
128 130
      [% IF ALL_DEPARTMENTS %]
129 131
        <tr>
130 132
          <th>[% 'Department' | $T8 %]</th>
131
          <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td>
133
          <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class="wi-lightwide") %]</td>
132 134
        </tr>
133 135
      [% END %]
134 136
      <tr>
......
137 139
      </tr>
138 140
      <tr>
139 141
        <th></th>
140
        <td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %] <label for="taxincluded">[% 'Tax Included' | $T8 %]</label></td>
142
        <td>[% L.checkbox_tag('taxincluded', checked=taxincluded, label=LxERP.t8('Tax Included')) %]</td>
141 143
      </tr>
142 144
      <tr>
143 145
        <th></th>
144
        <td>[% L.checkbox_tag('direct_debit', checked=direct_debit) %] <label for="direct_debit">[% 'direct debit' | $T8 %]</label></td>
146
        <td>[% L.checkbox_tag('direct_debit', checked=direct_debit, label=LxERP.t8('direct debit')) %]</td>
145 147
      </tr>
146 148
    </tbody>
147 149
  </table>
148 150

  
149 151
  <table class="tbl-horizontal">
150 152
    <caption>[% 'Notes' | $T8 %]</caption>
153
    <colgroup><col class="wi-wide"></colgroup>
151 154
    <tbody>
152 155
      <tr>
153 156
        <td>
154
          <textarea name="notes" rows="[% rows %]" cols="30" wrap="soft">[% notes | html %]</textarea>
157
          [% L.textarea_tag("notes", HTML.escape(notes), wrap="soft", rows=rows, class="wi-wide") %]
155 158
        </td>
156 159
      </tr>
157 160
      <tr>
158
        <th>
159
          [% 'Notes for customer' | $T8 %]<br>
160
          <textarea name="intnotes" rows="[% rows %]" cols="30" wrap="soft" readonly>[% intnotes | html %]</textarea>
161
        </th>
161
        <td>
162
          <span class="label above">[% 'Notes for customer' | $T8 %]</span>
163
          [% L.textarea_tag("intnotes", HTML.escape(intnotes), wrap="soft", rows=rows, readonly=readonly, class="wi-wide") %]
164
        </td>
162 165
      </tr>
163 166
    </tbody>
164 167
  </table>
165 168

  
166 169
  <table class="tbl-horizontal">
167 170
    <caption>[% 'Numbers & Dates' | $T8 %]</caption>
168
    <colgroup><col class="wi-small"><col class="wi-lightwide"></colgroup>
171
    <colgroup><col class="wi-mediumsmall"><col class="wi-lightwide"></colgroup>
169 172
    <tbody>
170 173
      <tr>
171 174
        <th>[% 'Salesperson' | $T8 %]</th>
......
173 176
      </tr>
174 177
      <tr>
175 178
        <th>[% 'Invoice Number' | $T8 %]</th>
176
        <td><input type="text" name="invnumber" size="11" value="[% invnumber | html %]"></td>
179
        <td>[% L.input_tag("invnumber", invnumber, size="11") %]</td>
177 180
      </tr>
178 181
      <tr>
179 182
        <th>[% 'Order Number' | $T8 %]</th>
180
        <td><input type="text" name="ordnumber" size="11" value="[% ordnumber | html %]"></td>
183
        <td>[% L.input_tag("ordnumber", ordnumber, size="11") %]</td>
181 184
      </tr>
182 185
      <tr>
183 186
        <th>[% 'Invoice Date' | $T8 %]</th>

Auch abrufbar als: Unified diff