Revision f18f5e43
Von Cem Aydin vor etwa 2 Jahren hinzugefügt
templates/design40_webpages/requirement_spec_part/_edit.html | ||
---|---|---|
[%- USE LxERP -%][%- USE L -%][%- USE P -%]
|
||
[% USE LxERP %]
|
||
[% USE L %]
|
||
[% USE P %]
|
||
|
||
[% SET parts = SELF.requirement_spec.parts_sorted %]
|
||
|
||
<div id="additional_parts_form_container" class="edit-additional-parts-context-menu">
|
||
|
||
<h2>[% LxERP.t8("Edit additional articles") %]</h2>
|
||
|
||
<div>
|
||
[% LxERP.t8("Add part") %]:
|
||
[% P.part.picker('additional_parts_add_part_id', '', style="width: 300px") %]
|
||
[% L.button_tag('kivi.requirement_spec.add_additional_part()', LxERP.t8('Add part')) %]
|
||
</div>
|
||
<h2>[% LxERP.t8("Edit additional articles") %]</h2>
|
||
|
||
<form method="post" id="edit_additional_parts_form">
|
||
<div id="edit_additional_parts_list_empty"[% IF parts.size %] style="display: none;"[% END %]>
|
||
[% LxERP.t8("No articles have been added yet.") %]
|
||
<div>
|
||
[% LxERP.t8("Add part") %]:
|
||
[% P.part.picker('additional_parts_add_part_id', '', style="width: 300px") %]
|
||
[% L.button_tag('kivi.requirement_spec.add_additional_part()', LxERP.t8('Add part')) %]
|
||
</div>
|
||
|
||
<table id="edit_additional_parts_list" class="tbl-list"[% IF !parts.size %] style="display: none;"[% END %]>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th>[%- LxERP.t8("Part Number") %]</th>
|
||
<th>[%- LxERP.t8("Description") %]</th>
|
||
<th>[%- LxERP.t8("Qty") %]</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
<tbody>
|
||
[%- FOREACH part = parts %]
|
||
[%- INCLUDE 'requirement_spec_part/_part.html' part=part %]
|
||
[%- END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
[% L.button_tag("kivi.requirement_spec.standard_additional_parts_ajax_call('save')", LxERP.t8("Save")) %]
|
||
<form method="post" id="edit_additional_parts_form">
|
||
<div id="edit_additional_parts_list_empty"[% IF parts.size %] style="display: none;"[% END %]>
|
||
[% LxERP.t8("No articles have been added yet.") %]
|
||
</div>
|
||
|
||
<table id="edit_additional_parts_list" class="tbl-list"[% IF !parts.size %] style="display: none;"[% END %]>
|
||
<thead>
|
||
<tr>
|
||
<th></th>
|
||
<th>[% LxERP.t8("Part Number") %]</th>
|
||
<th>[% LxERP.t8("Description") %]</th>
|
||
<th>[% LxERP.t8("Qty") %]</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
<tbody>
|
||
[% FOREACH part = parts %]
|
||
[% INCLUDE 'requirement_spec_part/_part.html' part=part %]
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
|
||
[% L.button_tag("kivi.requirement_spec.standard_additional_parts_ajax_call('save')", LxERP.t8("Save")) %]
|
||
</form>
|
||
</div>
|
templates/design40_webpages/requirement_spec_part/_part.html | ||
---|---|---|
[%- USE HTML -%][%- USE L -%][%- USE LxERP -%]
|
||
[% USE HTML %]
|
||
[% USE L %]
|
||
[% USE LxERP %]
|
||
|
||
<tr class="edit-additional-parts-row-context-menu">
|
||
<td class="center">
|
||
[% L.hidden_tag("additional_parts[+].part_id", part.part.id) %]
|
||
[% L.hidden_tag("additional_parts[].id", part.id) %]
|
||
[% L.img_tag(src="image/updown.png", alt=LxERP.t8("reorder item"), class="dragdrop") %]
|
||
</td>
|
||
<td>[% HTML.escape(part.part.partnumber) %]</td>
|
||
<td>[% L.input_tag("additional_parts[].description", part.description, size="30") %]</td>
|
||
<td>
|
||
[% L.input_tag("additional_parts[].qty_as_number", part.qty_as_number, size="10") %]
|
||
[% L.select_tag("additional_parts[].unit_id", part.unit.convertible_units, title_key="name", default=part.unit.id) %]
|
||
</td>
|
||
<td class="center">
|
||
[% L.hidden_tag("additional_parts[+].part_id", part.part.id) %]
|
||
[% L.hidden_tag("additional_parts[].id", part.id) %]
|
||
[% L.img_tag(src="image/updown.png", alt=LxERP.t8("reorder item"), class="dragdrop") %]
|
||
</td>
|
||
<td>[% HTML.escape(part.part.partnumber) %]</td>
|
||
<td>[% L.input_tag("additional_parts[].description", part.description, size="30") %]</td>
|
||
<td>
|
||
[% L.input_tag("additional_parts[].qty_as_number", part.qty_as_number, size="10") %]
|
||
[% L.select_tag("additional_parts[].unit_id", part.unit.convertible_units, title_key="name", default=part.unit.id) %]
|
||
</td>
|
||
</tr>
|
templates/design40_webpages/requirement_spec_part/show.html | ||
---|---|---|
[%- USE LxERP -%][%- USE L -%][%- USE P -%][%- USE HTML -%]
|
||
[% USE LxERP %]
|
||
[% USE L %]
|
||
[% USE P %]
|
||
[% USE HTML %]
|
||
|
||
[% SET parts = SELF.requirement_spec.parts_sorted %]
|
||
|
||
<div id="additional_parts_list_container" class="additional-parts-context-menu"[% IF initially_hidden %] style="display: none;"[% END %]>
|
||
|
||
<h2>[% LxERP.t8("Additional articles") %]</h2>
|
||
<h2>[% LxERP.t8("Additional articles") %]</h2>
|
||
|
||
<div id="additional_parts_list_empty"[% IF parts.size %] style="display: none;"[% END %]>
|
||
[% LxERP.t8("No articles have been added yet.") %]
|
||
</div>
|
||
<div id="additional_parts_list_empty"[% IF parts.size %] style="display: none;"[% END %]>
|
||
[% LxERP.t8("No articles have been added yet.") %]
|
||
</div>
|
||
|
||
<table id="additional_parts_list"[% IF !parts.size %] style="display:none;"[% END %] class="tbl-list">
|
||
<thead>
|
||
<tr>
|
||
<th>[%- LxERP.t8("Part Number") %]</th>
|
||
<th>[%- LxERP.t8("Description") %]</th>
|
||
<th>[%- LxERP.t8("Qty") %]</th>
|
||
</tr>
|
||
</thead>
|
||
<table id="additional_parts_list"[% IF !parts.size %] style="display:none;"[% END %] class="tbl-list">
|
||
<thead>
|
||
<tr>
|
||
<th>[% LxERP.t8("Part Number") %]</th>
|
||
<th>[% LxERP.t8("Description") %]</th>
|
||
<th>[% LxERP.t8("Qty") %]</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
<tbody>
|
||
[% FOREACH part = parts %]
|
||
<tr>
|
||
<td>[% HTML.escape(part.part.partnumber) %]</td>
|
||
<td>[% HTML.escape(part.description) %]</td>
|
||
<td class="numeric">[% HTML.escape(part.qty_as_number) %] [% HTML.escape(part.unit.name) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
<tbody>
|
||
[% FOREACH part = parts %]
|
||
<tr>
|
||
<td>[% HTML.escape(part.part.partnumber) %]</td>
|
||
<td>[% HTML.escape(part.description) %]</td>
|
||
<td class="numeric">[% HTML.escape(part.qty_as_number) %] [% HTML.escape(part.unit.name) %]</td>
|
||
</tr>
|
||
[% END %]
|
||
</tbody>
|
||
</table>
|
||
</div>
|
Auch abrufbar als: Unified diff
design40: Templates requirement_spec_part/ vereinheitlicht/bereinigt
- Formatierung vereinheitlicht
- Einrückung angepasst