X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/acf2e152bc180b28e459363a0793f6f998d24b5e..d339e8dcec0d5e03f7f7a6cb1b80c679acad35a3:/SL/Controller/Part.pm diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index 14be0ed02..3f7409e8b 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -157,6 +157,14 @@ sub action_save { } } +sub action_abort { + my ($self) = @_; + + if ( $::form->{callback} ) { + $self->redirect_to($::form->unescape($::form->{callback})); + } +} + sub action_delete { my ($self) = @_; @@ -1334,6 +1342,12 @@ sub _setup_form_action_bar { ], ], # end of combobox "Save" + action => [ + t8('Abort'), + submit => [ '#ic', { action => "Part/abort" } ], + only_if => !!$::form->{show_abort}, + ], + action => [ t8('Delete'), call => [ 'kivi.Part.delete' ],