Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8d265555

Von Hans P. Schlaepfer vor mehr als 4 Jahren hinzugefügt

  • ID 8d265555287687ddd0068f8daf61729c7689446b
  • Vorgänger ec78c010
  • Nachfolger 124c34d0

Neues Design 2019 Standard-Code templates/webpages/io/select_item.html

Unterschiede anzeigen:

templates/webpages/io/select_item.html
<form method="post" action="[% HTML.escape(script) %]" id="form">
<table width="100%">
<tr class="listheading">
[%- IF MYCONFIG.item_multiselect %]
<th>[% LxERP.t8('Qty') %]</th>
[%- ELSE %]
<th>&nbsp;</th>
[%- END %]
<th>[% LxERP.t8('Number') %]</th>
<th>[% LxERP.t8('Part Classification') %]</th>
<th>[% LxERP.t8('Part Description') %]</th>
[%- IF INSTANCE_CONF.get_show_longdescription_select_item %]
[% SET COLS = COLS + 1 %]
<th>[% LxERP.t8('Long Description') %]</th>
[%- END %]
<th>[% LxERP.t8('Other Matches') %]</th>
<th>[% LxERP.t8('Price') %]</th>
[%- IF IS_PURCHASE %]
[% SET COLS = COLS + 1 %]
<th>[% LxERP.t8('ROP') %]</th>
[%- END %]
<th>[% LxERP.t8('Qty') %]</th>
<th>[% LxERP.t8('Unit') %]</th>
</tr>
[%- FOREACH item = ITEM_LIST %]
<tr class="listrow[% loop.count % 2 %]">
[%- IF MYCONFIG.item_multiselect %]
<td>[% L.input_tag('select_qty_' _ HTML.escape(item.id), '', size => 5) %]</td>
[%- ELSE %]
<td><input name="select_item_id" class="radio" type="radio" value="[% HTML.escape(item.id) %]"[% IF loop.first %] checked[% END %]></td>
[%- END %]
<td>[% HTML.escape(item.partnumber) %]</td>
<td>[% HTML.escape(item.type_and_classific) %]</td>
<td>[% HTML.escape(item.description) %]</td>
[%- IF INSTANCE_CONF.get_show_longdescription_select_item %]
<td>[% P.restricted_html(item.longdescription) %]</td>
[%- END %]
<td>[% HTML.escape(item.matches).join('<br>') %]</td>
<td align="right">[% LxERP.format_amount(item.display_sellprice, 2) %]</td>
[%- IF IS_PURCHASE %]
<td align="right">[% LxERP.format_amount(item.rop, '') %]</td>
[%- END %]
<td align="right">[% LxERP.format_amount(item.onhand, '') %]</td>
<td>[% HTML.escape(item.unit) %]</td>
</tr>
[%- END %]
<tr><td colspan="[% COLS %]"><hr size="3" noshade></td></tr>
<table class="tbl-list wi-moderate">
<thead>
<tr>
[% IF MYCONFIG.item_multiselect %]
<th>[% LxERP.t8('Qty') %]</th>
[% ELSE %]
<th>&nbsp;</th>
[% END %]
<th>[% LxERP.t8('Number') %]</th>
<th>[% LxERP.t8('Part Classification') %]</th>
<th>[% LxERP.t8('Part Description') %]</th>
[% IF INSTANCE_CONF.get_show_longdescription_select_item %]
[% SET COLS = COLS + 1 %]
<th>[% LxERP.t8('Long Description') %]</th>
[% END %]
<th>[% LxERP.t8('Other Matches') %]</th>
<th class="right">[% LxERP.t8('Price') %]</th>
[% IF IS_PURCHASE %]
[% SET COLS = COLS + 1 %]
<th class="right">[% LxERP.t8('ROP') %]</th>
[% END %]
<th class="right">[% LxERP.t8('Qty') %]</th>
<th>[% LxERP.t8('Unit') %]</th>
</tr>
</thead>
<tbody>
[% FOREACH item = ITEM_LIST %]
<tr class="listrow[% loop.count % 2 %]">
[% IF MYCONFIG.item_multiselect %]
<td>[% L.input_tag('select_qty_' _ HTML.escape(item.id), '', size => 5) %]</td>
[% ELSE %]
<td><input name="select_item_id" type="radio" value="[% HTML.escape(item.id) %]"[% IF loop.first %] checked[% END %]></td>
[% END %]
<td>[% HTML.escape(item.partnumber) %]</td>
<td>[% HTML.escape(item.type_and_classific) %]</td>
<td>[% HTML.escape(item.description) %]</td>
[% IF INSTANCE_CONF.get_show_longdescription_select_item %]
<td>[% P.restricted_html(item.longdescription) %]</td>
[% END %]
<td>[% HTML.escape(item.matches).join('<br>') %]</td>
<td class="numeric">[% LxERP.format_amount(item.display_sellprice, 2) %]</td>
[% IF IS_PURCHASE %]
<td class="numeric">[% LxERP.format_amount(item.rop, '') %]</td>
[% END %]
<td class="numeric">[% LxERP.format_amount(item.onhand, '') %]</td>
<td>[% HTML.escape(item.unit) %]</td>
</tr>
[% END %]
</tbody>
</table>
<p>&nbsp;</p>
[% L.hidden_tag('select_item_mode', MODE) %]
[% L.hidden_tag('select_item_previous_form', PREVIOUS_FORM) %]
[% L.hidden_tag('action', 'item_selected') %]
</form>
[%- IF MYCONFIG.item_multiselect %]
[% IF MYCONFIG.item_multiselect %]
<script type='text/javascript'>
var first_click = 1;;
[%- FOREACH item = ITEM_LIST %]
[% FOREACH item = ITEM_LIST %]
[% SET THIS_ID = 'select_qty_' _ HTML.escape(item.id) %]
$('#[% THIS_ID %]').click(function(){
var qty = '1';
......
$('#[% THIS_ID %]').attr('value', qty); $('#[% THIS_ID %]').select();
}
});
[%- END %]
[% END %]
</script>
[%- END %]
[% END %]

Auch abrufbar als: Unified diff