Revision 1b537c74
Von Tamino Steinert vor 23 Tagen hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
1244 | 1244 |
my $title = $title_hash{$self->part->part_type}; |
1245 | 1245 |
$title .= |
1246 | 1246 |
' (' . SL::Presenter::Part::variant_type_abbreviation($self->part->variant_type) . ')' |
1247 |
if $self->part->variant_type;
|
|
1247 |
if $self->part->is_variant || $self->part->is_parent_variant;
|
|
1248 | 1248 |
|
1249 | 1249 |
$self->render( |
1250 | 1250 |
'part/form', |
templates/design40_webpages/part/_basic_data.html | ||
---|---|---|
4 | 4 |
[% USE L %] |
5 | 5 |
[% USE P %] |
6 | 6 |
|
7 |
[% IF SELF.part.image || SELF.part.description %] |
|
8 |
[% IF SELF.part.image && INSTANCE_CONF.get_parts_show_image %] |
|
9 |
<div class="image col"> |
|
10 |
<a href="[% SELF.part.image | html %]" target="_blank"> |
|
11 |
<img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.part.image | html %]"/> |
|
12 |
</a> |
|
13 |
</div> |
|
14 |
[% END %] |
|
15 |
[% IF SELF.part.description %] |
|
16 |
<h2 class="record-title col"> |
|
17 |
[% SELF.part.description %] [% IF SELF.part.partnumber %]<small>([% SELF.part.partnumber %])</small>[% END %] |
|
18 |
</h2> |
|
19 |
[% END %] |
|
7 |
[% IF SELF.part.image && INSTANCE_CONF.get_parts_show_image %] |
|
8 |
<div class="image col"> |
|
9 |
<a href="[% SELF.part.image | html %]" target="_blank"> |
|
10 |
<img style="[% INSTANCE_CONF.get_parts_image_css %]" src="[% SELF.part.image | html %]"/> |
|
11 |
</a> |
|
12 |
</div> |
|
13 |
[% END %] |
|
14 |
|
|
15 |
[% IF SELF.part.description %] |
|
16 |
<h2 class="record-title col"> |
|
17 |
[% SELF.part.description %] |
|
18 |
[% IF SELF.part.partnumber %]<small>([% SELF.part.partnumber %])</small>[% END %] |
|
19 |
[% IF SELF.part.is_variant %] |
|
20 |
<br><small>[% 'Parent Variant' | $T8 %]: [% SELF.part.parent_variant.presenter.part %]</small> |
|
21 |
[% END %] |
|
22 |
</h2> |
|
20 | 23 |
[% END %] |
21 | 24 |
|
22 | 25 |
<div class="wrapper" id="wrapper-1"> |
Auch abrufbar als: Unified diff
Varianten: Stammartikel in Basisdaten anzeigen