Revision de78c073
Von Werner Hahn vor mehr als 8 Jahren hinzugefügt
SL/DB/ShopPart.pm | ||
---|---|---|
3 | 3 |
|
4 | 4 |
package SL::DB::ShopPart; |
5 | 5 |
|
6 |
use SL::DB::Helper::AttrHTML; |
|
6 | 7 |
use strict; |
7 | 8 |
|
8 | 9 |
use SL::DB::MetaSetup::ShopPart; |
9 | 10 |
use SL::DB::Manager::ShopPart; |
10 | 11 |
|
11 | 12 |
__PACKAGE__->meta->initialize; |
13 |
__PACKAGE__->attr_html('shop_description'); |
|
12 | 14 |
|
13 | 15 |
1; |
templates/webpages/ic/form_footer.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE HTML %] |
3 | 3 |
[%- USE LxERP %] |
4 |
[%- USE Dumper %] |
|
5 |
[% Dumper.Dump(SELF) %] |
|
4 | 6 |
[%- IF item == 'assembly' %] |
5 | 7 |
<!-- Wieder zurueck in die ic.pl, entweder alle Einzelteile auslagern oder gar keine --> |
6 | 8 |
<!-- tr> |
... | ... | |
41 | 43 |
|
42 | 44 |
[%- IF CUSTOM_VARIABLES.size %] |
43 | 45 |
<div id="custom_variables"> |
44 |
|
|
46 |
<!-- [%- Dumper.dump(CUSTOM_VARIABLES) %] --> |
|
45 | 47 |
<p>[% 'Unchecked custom variables will not appear in orders and invoices.' | $T8 %]</p> |
46 | 48 |
|
47 | 49 |
<p> |
48 | 50 |
<table> |
49 | 51 |
[%- FOREACH var = CUSTOM_VARIABLES %] |
50 |
<tr> |
|
51 |
<td align="right" valign="top">[% var.VALID_BOX %]</td> |
|
52 |
[%- IF !var.partsgroup_filtered %] |
|
53 |
<td align="right" valign="top">[% HTML.escape(var.description) %]</td> |
|
52 |
[%- IF !var.name.match('^shop_') %] |
|
53 |
<tr> |
|
54 |
<td align="right" valign="top">[% var.VALID_BOX %]</td> |
|
55 |
[%- IF !var.partsgroup_filtered %] |
|
56 |
<td align="right" valign="top">[% HTML.escape(var.description) %]</td> |
|
57 |
[%- END %] |
|
58 |
<td valign="top">[% var.HTML_CODE %]</td> |
|
59 |
</tr> |
|
54 | 60 |
[%- END %] |
55 |
<td valign="top">[% var.HTML_CODE %]</td> |
|
56 |
</tr> |
|
57 | 61 |
[%- END %] |
58 | 62 |
</table> |
59 | 63 |
</p> |
templates/webpages/ic/form_header.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 | 2 |
[%- USE HTML %] |
3 | 3 |
[%- USE LxERP %][%- USE L -%][%- USE P -%] |
4 |
[% USE Dumper %] |
|
5 |
[% # Dumper.dump(CUSTOM_VARIABLES) %] |
|
4 | 6 |
[% PROCESS 'common/select_warehouse_bin.html' %] |
5 | 7 |
<h1>[% title %] [% HTML.escape(partnumber) %] [% HTML.escape(description) %]</h1> |
6 | 8 |
|
templates/webpages/ic/tabs/_shop.html | ||
---|---|---|
1 | 1 |
[%- USE HTML %][%- USE L -%][%- USE P -%][%- USE LxERP -%] |
2 |
|
|
2 |
[%- USE Dumper %] |
|
3 | 3 |
<div id="shop_variables"> |
4 | 4 |
[% LxERP.t8("Active shops:") %] |
5 | 5 |
<table> |
... | ... | |
37 | 37 |
|
38 | 38 |
|
39 | 39 |
[% # L.dump(shop_part) %] |
40 |
<hr> |
|
41 |
[%- IF CUSTOM_VARIABLES.size %] |
|
42 |
<div id="shop_custom_variables"> |
|
43 |
<p> |
|
44 |
<table> |
|
45 |
[%- FOREACH var = CUSTOM_VARIABLES %] |
|
46 |
[%- IF var.name.match('^shop_') %] |
|
47 |
<tr> |
|
48 |
[%- IF !var.partsgroup_filtered %] |
|
49 |
<td align="right" valign="top">[% HTML.escape(var.description) %]</td> |
|
50 |
[%- END %] |
|
51 |
<td valign="top">[% var.HTML_CODE %]</td> |
|
52 |
</tr> |
|
53 |
[%- END %] |
|
54 |
[%- END %] |
|
55 |
</table> |
|
56 |
</p> |
|
57 |
</div> |
|
58 |
[%- END %] |
|
59 |
<div id="shop_images"> |
|
60 |
</div> |
|
40 | 61 |
</div> |
41 | 62 |
|
templates/webpages/shop_part/edit.html | ||
---|---|---|
1 |
[%- USE HTML %][%- USE L -%][%- USE P -%][%- USE LxERP -%] |
|
1 |
[%- USE HTML %] |
|
2 |
[%- USE T8 %] |
|
3 |
[%- USE L -%] |
|
4 |
[%- USE P -%] |
|
5 |
[%- USE LxERP -%] |
|
2 | 6 |
|
3 | 7 |
[% LxERP.t8("Part") %]: [% HTML.escape(SELF.shop_part.part.displayable_name) %]<br> |
4 | 8 |
[% LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %] |
... | ... | |
15 | 19 |
<table> |
16 | 20 |
<tr> |
17 | 21 |
<td>[% LxERP.t8("Description") %]</td> |
18 |
<td>[% L.textarea_tag("shop_part.shop_description", SELF.shop_part.shop_description) %]</td> |
|
22 |
<td>[% L.textarea_tag('shop_part.shop_description_as_restricted_html', SELF.shop_part.shop_description_as_restricted_html, style='width:100%', rows=20, class="texteditor") %]</td> |
|
23 |
<td>[% L.textarea_tag('letter.body_as_restricted_html', letter.body_as_restricted_html, style='width:100%', rows=20, class="texteditor") %]</td> |
|
24 |
<!-- <td>[% L.textarea_tag("shop_part.shop_description", SELF.shop_part.shop_description) %]</td> --> |
|
19 | 25 |
</tr> |
20 | 26 |
<tr> |
21 | 27 |
<td>[% LxERP.t8("Active") %]</td> |
Auch abrufbar als: Unified diff
ShopParts: Benutzerdefinierte Variablen mit Prefix 'shop_' werden im Reiter Shop Variables angezeigt und im Reiter Benutzerdefinierte Variablen NICHT angezeigt