Revision 8bd7bbaf
Von Werner Hahn vor mehr als 7 Jahren hinzugefügt
SL/DB/ShopPart.pm | ||
---|---|---|
4 | 4 |
package SL::DB::ShopPart; |
5 | 5 |
#package SL::DB::ShopPart; |
6 | 6 |
|
7 |
use SL::DB::Helper::AttrHTML; |
|
7 | 8 |
use strict; |
8 | 9 |
|
9 | 10 |
use SL::DB::MetaSetup::ShopPart; |
10 | 11 |
use SL::DB::Manager::ShopPart; |
11 | 12 |
|
12 | 13 |
__PACKAGE__->meta->initialize; |
14 |
__PACKAGE__->attr_html('shop_description'); |
|
13 | 15 |
|
14 | 16 |
1; |
templates/webpages/ic/tabs/_shop.html | ||
---|---|---|
1 |
<!-- TMP --> |
|
2 | 1 |
[%- USE HTML %][%- USE L -%][%- USE P -%][%- USE LxERP -%] |
3 |
<<<<<<< HEAD |
|
4 | 2 |
[%- USE Dumper %] |
5 | 3 |
[%- USE JavaScript -%] |
6 | 4 |
<div id="shop_variables"> |
... | ... | |
82 | 80 |
</script> |
83 | 81 |
<div id="shop_images" border=1 > |
84 | 82 |
</div> |
83 |
|
|
84 |
<div id="shop_variables"> |
|
85 |
[% LxERP.t8("Active shops:") %] |
|
86 |
<table> |
|
87 |
<thead> |
|
88 |
<tr> |
|
89 |
<th>[% LxERP.t8("Shop") %]</th> |
|
90 |
<th>[% LxERP.t8("Active") %]</th> |
|
91 |
<th>[% LxERP.t8("Shop part") %]</th> |
|
92 |
<th>[% LxERP.t8("Last update") %]</th> |
|
93 |
<th>[% LxERP.t8("Action") %]</th> |
|
94 |
<th>[% LxERP.t8("Action") %]</th> |
|
95 |
</tr> |
|
96 |
</thead> |
|
97 |
[%- FOREACH shop_part = SHOP_PARTS %] |
|
98 |
<tr> |
|
99 |
<td>[% HTML.escape( shop_part.shop.description ) %]</td> |
|
100 |
<td>[% L.html_tag('span', shop_part.active, id => 'shop_part_active_' _ shop_part.id ) %]</td> |
|
101 |
<td>[% L.html_tag('span', shop_part.shop_description, id => 'shop_part_description_' _ shop_part.id ) %]</td> |
|
102 |
<td>[% L.html_tag('span', shop_part.last_update.to_kivitendo('precision' => 'minute'), id => 'shop_part_last_update_' _ shop_part.id ) %]</td> |
|
103 |
<td>[% L.button_tag("kivi.shop_part.edit_shop_part(" _ shop_part.id _ ")", LxERP.t8("Edit")) %]</td> |
|
104 |
<td>[% L.button_tag("kivi.shop_part.update_shop_part(" _ shop_part.id _ ")", LxERP.t8("Update")) %]</td> |
|
105 |
</tr> |
|
106 |
[%- END %] |
|
107 |
[%- FOREACH shop = SHOPS_NOT_ASSIGNED %] |
|
108 |
<tr> |
|
109 |
<td>[% HTML.escape( shop.description ) %]</td> |
|
110 |
<td></td> |
|
111 |
<td></td> |
|
112 |
<td></td> |
|
113 |
<td>[% L.button_tag("kivi.shop_part.create_shop_part(" _ id _ ", " _ shop.id _ ")", LxERP.t8("Add")) %]</td> |
|
114 |
<td></td> |
|
115 |
</tr> |
|
116 |
[%- END %] |
|
117 |
</table> |
|
118 |
|
|
119 |
|
|
120 |
[% # L.dump(shop_part) %] |
|
121 |
<hr> |
|
122 |
[%- IF CUSTOM_VARIABLES.size %] |
|
123 |
<div id="shop_custom_variables"> |
|
124 |
<p> |
|
125 |
<table> |
|
126 |
[%- FOREACH var = CUSTOM_VARIABLES %] |
|
127 |
[%- IF var.name.match('^shop_') %] |
|
128 |
<tr> |
|
129 |
[%- IF !var.partsgroup_filtered %] |
|
130 |
<td align="right" valign="top">[% HTML.escape(var.description) %]</td> |
|
131 |
[%- END %] |
|
132 |
<td valign="top">[% var.HTML_CODE %]</td> |
|
133 |
</tr> |
|
134 |
[%- END %] |
|
135 |
[%- END %] |
|
136 |
</table> |
|
137 |
</p> |
|
138 |
</div> |
|
139 |
[%- END %] |
|
140 |
<div id="shop_images"> |
|
141 |
</div> |
|
85 | 142 |
</div> |
86 | 143 |
|
templates/webpages/shop_part/edit.html | ||
---|---|---|
1 |
<!-- TMP --> |
|
2 |
[%- USE HTML %][%- USE L -%][%- USE P -%][%- USE LxERP -%] |
|
1 |
[%- USE HTML %] |
|
2 |
[%- USE T8 %] |
|
3 |
[%- USE L -%] |
|
4 |
[%- USE P -%] |
|
5 |
[%- USE LxERP -%] |
|
3 | 6 |
|
4 | 7 |
[% LxERP.t8("Part") %]: [% HTML.escape(SELF.shop_part.part.displayable_name) %]<br> |
5 | 8 |
[% LxERP.t8("Shop") %]: [% HTML.escape(SELF.shop_part.shop.description) %] |
... | ... | |
16 | 19 |
<table> |
17 | 20 |
<tr> |
18 | 21 |
<td>[% LxERP.t8("Description") %]</td> |
19 |
<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> --> |
|
20 | 25 |
</tr> |
21 | 26 |
<tr> |
22 | 27 |
<td>[% LxERP.t8("Active") %]</td> |
Auch abrufbar als: Unified diff
Shopmodul: ShopParts - Benutzerdefinierte Variablen mit Prefix 'shop_' werden im Reiter Shop Variables angezeigt und im Reiter Benutzerdefinierte Variablen NICHT angezeigt
Conflicts:
templates/webpages/ic/tabs/_shop.html
Conflicts:
templates/webpages/ic/tabs/_shop.html
templates/webpages/shop_part/edit.html