Revision 978a5f2f
Von Tamino Steinert vor 6 Monaten hinzugefügt
SL/Controller/VariantProperty.pm | ||
---|---|---|
);
|
||
}
|
||
|
||
sub action_delete_variant_property_value {
|
||
my ($self) = @_;
|
||
|
||
die "'variant_property_value.id' is needed" unless $::form->{variant_property_value}->{id};
|
||
|
||
my $variant_property_value = SL::DB::Manager::VariantPropertyValue->find_by(
|
||
id => $::form->{variant_property_value}->{id}
|
||
) or die t8("Could not find Variant Property Value");
|
||
|
||
SL::DB->client->with_transaction(sub {
|
||
$variant_property_value->delete;
|
||
flash_later('info',
|
||
t8(
|
||
'The Variant Property Value \'#1\' has been deleted.',
|
||
$variant_property_value->displayable_name
|
||
)
|
||
);
|
||
1;
|
||
}
|
||
) or flash_later('error',
|
||
t8(
|
||
'The Variant Property Value \'#1\' is in use and cannot be deleted.',
|
||
$variant_property_value->displayable_name
|
||
)
|
||
);
|
||
|
||
$self->redirect_to(
|
||
action => 'edit_variant_property',
|
||
id => $variant_property_value->variant_property_id,
|
||
);
|
||
}
|
||
|
||
sub action_add_variant_property_value {
|
||
my ($self) = @_;
|
||
|
js/kivi.VariantProperty.js | ||
---|---|---|
$.post('controller.pl', data, kivi.eval_json_result);
|
||
};
|
||
|
||
ns.delete_variant_property_value = function() {
|
||
var data = $('#variant_property_value_form').serializeArray();
|
||
data.push({ name: 'action', value: 'VariantProperty/delete_variant_property_value' });
|
||
$.post('controller.pl', data, kivi.eval_json_result);
|
||
};
|
||
|
||
ns.add_variant_property_value = function() {
|
||
var data = $('#variant_property_value_list_form').serializeArray();
|
||
data.push({ name: 'action', value: 'VariantProperty/add_variant_property_value' });
|
locale/de/all | ||
---|---|---|
'The VAT ID number \'#1\' is invalid.' => 'Die UStID-Nummer »#1« ist ungültig.',
|
||
'The VAT ID number in the client configuration is invalid.' => 'Die UStID-Nummer in der Mandantenkonfiguraiton ist ungültig.',
|
||
'The VAT registration number is missing in the client configuration.' => 'Die Umsatzsteuer-ID-Nummer fehlt in der Mandantenkonfiguration.',
|
||
'The Variant Property Value \'#1\' has been deleted.' => 'Die Ausprägung \'#1\' würde gelöscht.',
|
||
'The Variant Property Value \'#1\' is in use and cannot be deleted.' => 'Die Ausprägung \'#1\' is in Verwendung und kann nicht gelöscht werden.',
|
||
'The Variant Property Value has been saved.' => 'Die Ausprägung wurde gespeichert.',
|
||
'The Variant Property has been created.' => 'Die Varianteneigenschaft wurde erfasst.',
|
||
'The Variant Property has been deleted.' => 'Die Varianteneigenschaft wurde gelöscht.',
|
locale/en/all | ||
---|---|---|
'The VAT ID number \'#1\' is invalid.' => '',
|
||
'The VAT ID number in the client configuration is invalid.' => '',
|
||
'The VAT registration number is missing in the client configuration.' => '',
|
||
'The Variant Property Value \'#1\' has been deleted.' => '',
|
||
'The Variant Property Value \'#1\' is in use and cannot be deleted.' => '',
|
||
'The Variant Property Value has been saved.' => '',
|
||
'The Variant Property has been created.' => '',
|
||
'The Variant Property has been deleted.' => '',
|
templates/design40_webpages/variant_property/variant_property_value_form.html | ||
---|---|---|
|
||
<div class="buttons">
|
||
[% L.button_tag("kivi.VariantProperty.save_variant_property_value()", LxERP.t8("Save")) %]
|
||
[% L.button_tag("kivi.VariantProperty.delete_variant_property_value()", LxERP.t8("Delete")) %]
|
||
</div>
|
||
|
Auch abrufbar als: Unified diff
Varianten: Ausprägung löschen