Revision 61b62e3c
Von Bernd Bleßmann vor fast 3 Jahren hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
709 | 709 |
|
710 | 710 |
sub _set_javascript { |
711 | 711 |
my ($self) = @_; |
712 |
$::request->layout->use_javascript("${_}.js") for qw(kivi.Part kivi.File kivi.PriceRule ckeditor/ckeditor ckeditor/adapters/jquery kivi.ShopPart); |
|
712 |
$::request->layout->use_javascript("${_}.js") for qw(kivi.Part kivi.File kivi.PriceRule ckeditor/ckeditor ckeditor/adapters/jquery kivi.ShopPart kivi.Validator);
|
|
713 | 713 |
$::request->layout->add_javascripts_inline("\$(function(){kivi.PriceRule.load_price_rules_for_part(@{[ $self->part->id ]})});") if $self->part->id; |
714 | 714 |
} |
715 | 715 |
|
... | ... | |
1335 | 1335 |
t8('Save'), |
1336 | 1336 |
call => [ 'kivi.Part.save' ], |
1337 | 1337 |
disabled => !$may_edit ? t8('You do not have the permissions to access this function.') : undef, |
1338 |
checks => ['kivi.validate_form'], |
|
1338 | 1339 |
], |
1339 | 1340 |
action => [ |
1340 | 1341 |
t8('Use as new'), |
templates/webpages/part/_basic_data.html | ||
---|---|---|
33 | 33 |
</tr> |
34 | 34 |
<tr> |
35 | 35 |
<th align="right">[% 'EAN-Code' | $T8 %]</th> |
36 |
<td>[% L.input_tag("part.ean", SELF.part.ean, size=40) %]</td> |
|
36 |
<td>[% L.input_tag("part.ean", SELF.part.ean, size=40, "data-validate"="trimmed_whitespaces") %]</td>
|
|
37 | 37 |
</tr> |
38 | 38 |
<tr> |
39 | 39 |
[%- IF SELF.all_partsgroups.size %] |
Auch abrufbar als: Unified diff
Warenstammdaten: EAN: Leerzeichen trimmen