Auftrags-Controller: Preis und Rabatt immer rechtsbündig.
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 2 Dec 2015 15:20:01 +0000 (16:20 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Fri, 11 Mar 2016 11:53:26 +0000 (12:53 +0100)
templates/webpages/order/tabs/_item_input.html
templates/webpages/order/tabs/_multi_items_result.html
templates/webpages/order/tabs/_row.html

index aacaa4b..4e92e15 100644 (file)
         <td>[% L.part_picker('add_item.parts_id', '', fat_set_item=1, style='width: 300px', class="add_item_input") %]</td>
         <td>[% L.input_tag('add_item.description', '', class="add_item_input") %]</td>
         <td>
-          [% L.input_tag('add_item.qty_as_number', '', size = 5, style='text-align:right', class="add_item_input") %]
+          [% L.input_tag('add_item.qty_as_number', '', size = 5, class="add_item_input numeric") %]
           [% L.hidden_tag('add_item.unit', '', class="add_item_input") %]
         </td>
-        <td>[% L.input_tag('add_item.sellprice_as_number', '', size = 10, style='text-align:right', class="add_item_input") %]</td>
-        <td>[% L.input_tag('add_item.discount_as_percent', '', size = 5, style='text-align:right', class="add_item_input") %]</td>
+        <td>[% L.input_tag('add_item.sellprice_as_number', '', size = 10, class="add_item_input numeric") %]</td>
+        <td>[% L.input_tag('add_item.discount_as_percent', '', size = 5, class="add_item_input numeric") %]</td>
         <td>[% L.button_tag('add_item()', LxERP.t8('Add part')) %]</td>
       </tr>
     </tbody>
index 248fe8f..11313a9 100644 (file)
@@ -3,7 +3,7 @@
 <table width="100%">
     <tr>
       <td>[% 'for all' | $T8 %]
-      <td>[% L.input_tag("multi_items.all_qty", '', size = 5, style='text-align:right') %]</td>
+      <td>[% L.input_tag("multi_items.all_qty", '', size = 5, class='numeric') %]</td>
     </tr>
     <tr>
       <td colspan="5"><hr></td>
@@ -13,8 +13,8 @@
       <td></td>
       <td>
         [% L.hidden_tag("add_multi_items[+].parts_id", item.id) %]
-        [% L.input_tag("add_multi_items[].qty_as_number", '', size = 5, style='text-align:right',
-                       class = 'multi_items_qty', onclick = 'set_qty_to_one(this)') %]
+        [% L.input_tag("add_multi_items[].qty_as_number", '', size = 5,
+                       class = 'multi_items_qty numeric', onclick = 'set_qty_to_one(this)') %]
       </td>
       <td>[% HTML.escape(item.unit) %]</td>
       <td>[% HTML.escape(item.partnumber) %]</td>
index fd3f30a..9ca6bbb 100644 (file)
       [%- L.input_tag("order.orderitems[].qty_as_number",
                       ITEM.qty_as_number,
                       size = 5,
-                      style='text-align:right',
-                      class="recalc reformat_number") %]
+                      class="recalc reformat_number numeric") %]
     </td>
     <td>
       [%- L.input_tag("order.orderitems[].price_factor",
                       ITEM.price_factor,
                       size = 5,
-                      style='text-align:right',
-                      class="recalc") %]
+                      class="recalc numeric") %]
     </td>
     <td nowrap>
       [%- L.select_tag("order.orderitems[].unit",
     <td>
       [%- L.hidden_tag("order.orderitems[].active_price_source", ITEM.active_price_source.source) %]
       [%- SET EDIT_PRICE = (AUTH.assert('edit_prices', 1) && ITEM.active_price_source.source == '') %]
-      <div name="editable_price" [%- IF !EDIT_PRICE %]style="display:none"[%- END %]>
+      <div name="editable_price" [%- IF !EDIT_PRICE %]style="display:none"[%- END %] class="numeric">
         [%- L.input_tag("order.orderitems[].sellprice_as_number",
                         ITEM.sellprice_as_number,
                         size = 10,
-                        style='text-align:right',
                         disabled=(EDIT_PRICE? '' : 1),
-                        class="recalc reformat_number") %]
+                        class="recalc reformat_number numeric") %]
       </div>
       <div name="not_editable_price" [%- IF EDIT_PRICE %]style="display:none"[%- END %]>
-        [%- L.div_tag(ITEM.sellprice_as_number, name="sellprice_text", style='text-align:right') %]
+        [%- L.div_tag(ITEM.sellprice_as_number, name="sellprice_text", class="numeric") %]
         [%- L.hidden_tag("order.orderitems[].sellprice_as_number",
                          ITEM.sellprice_as_number,
                          disabled=(EDIT_PRICE? 1 : '')) %]
     <td>
       [%- L.hidden_tag("order.orderitems[].active_discount_source", ITEM.active_discount_source.source) %]
       [%- SET EDIT_DISCOUNT = (AUTH.assert('edit_prices', 1) && ITEM.active_discount_source.source == '') %]
-      <div name="editable_discount" [%- IF !EDIT_DISCOUNT %]style="display:none"[%- END %]>
+      <div name="editable_discount" [%- IF !EDIT_DISCOUNT %]style="display:none"[%- END %] class="numeric">
         [%- L.input_tag("order.orderitems[].discount_as_percent",
                         ITEM.discount_as_percent,
                         size = 5,
-                        style='text-align:right',
                         disabled=(EDIT_DISCOUNT? '' : 1),
-                        class="recalc reformat_number") %]
+                        class="recalc reformat_number numeric") %]
       </div>
       <div name="not_editable_discount" [%- IF EDIT_DISCOUNT %]style="display:none"[%- END %]>
-        [%- L.div_tag(ITEM.discount_as_percent, name="discount_text", style='text-align:right') %]
+        [%- L.div_tag(ITEM.discount_as_percent, name="discount_text", class="numeric") %]
         [%- L.hidden_tag("order.orderitems[].discount_as_percent",
                          ITEM.discount_as_percent,
                          disabled=(EDIT_DISCOUNT? 1 : '')) %]