<table width="100%">
<tr>
<td>[% 'for all' | $T8 %]
- <td>[% L.input_tag("multi_items.all_qty", '', size = 5) %]</td>
+ <td>[% L.input_tag("multi_items.all_qty", '', size = 5, style='text-align:right') %]</td>
</tr>
<tr>
<td colspan="5"><hr></td>
<td></td>
<td>
[% L.hidden_tag("add_multi_items[+].parts_id", item.id) %]
- [% L.input_tag("add_multi_items[].qty", '', size = 5,
- class = 'multi_items_qty') %]
+ [% L.input_tag("add_multi_items[].qty", '', size = 5, style='text-align:right',
+ class = 'multi_items_qty', onclick = 'set_qty_to_one(this)') %]
</td>
<td>[% HTML.escape(item.unit) %]</td>
<td>[% HTML.escape(item.partnumber) %]</td>
</table>
<script type='text/javascript'>
+ function set_qty_to_one(clicked) {
+ if ($(clicked).val() == '') {
+ $(clicked).val('1,00');
+ $(clicked).select();
+ }
+ }
+
$('#multi_items_all_qty').change(function(event){
$('.multi_items_qty').val($(event.target).val());
});