Revision ef8a858d
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
SL/Controller/BackgroundJob.pm | ||
---|---|---|
4 | 4 |
|
5 | 5 |
use parent qw(SL::Controller::Base); |
6 | 6 |
|
7 |
use SL::BackgroundJob::Base; |
|
7 | 8 |
use SL::Controller::Helper::GetModels; |
8 | 9 |
use SL::Controller::Helper::Paginated; |
9 | 10 |
use SL::Controller::Helper::Sorted; |
... | ... | |
50 | 51 |
sub action_new { |
51 | 52 |
my ($self) = @_; |
52 | 53 |
|
53 |
$self->background_job(SL::DB::BackgroundJob->new(cron_spec => '* * * * *')); |
|
54 |
$self->render('background_job/form', title => $::locale->text('Create a new background job')); |
|
54 |
$self->background_job(SL::DB::BackgroundJob->new(cron_spec => '* * * * *', package_name => 'Test')); |
|
55 |
$self->render('background_job/form', |
|
56 |
title => $::locale->text('Create a new background job'), |
|
57 |
JOB_CLASSES => [ SL::BackgroundJob::Base->get_known_job_classes ]); |
|
55 | 58 |
} |
56 | 59 |
|
57 | 60 |
sub action_edit { |
58 | 61 |
my ($self) = @_; |
59 |
$self->render('background_job/form', title => $::locale->text('Edit background job')); |
|
62 |
|
|
63 |
$self->render('background_job/form', |
|
64 |
title => $::locale->text('Edit background job'), |
|
65 |
JOB_CLASSES => [ SL::BackgroundJob::Base->get_known_job_classes ]); |
|
60 | 66 |
} |
61 | 67 |
|
62 | 68 |
sub action_create { |
Auch abrufbar als: Unified diff
Hintergrundjob bearbeiten: Paketname aus Auswahlliste anstatt Eingabefeld