[%- LxERP.t8('Active') %] |
[% L.yes_no_tag("background_job.active", SELF.background_job.active) %] |
[%- LxERP.t8('Execution type') %] |
[% L.select_tag('background_job.type', [
[ 'once', LxERP.t8('one-time execution') ],
[ 'interval', LxERP.t8('repeated execution') ]
],
'default' = SELF.background_job.type) %]
|
[%- LxERP.t8('Package name') %] |
[% L.select_tag("background_job.package_name", JOB_CLASSES, 'default' => SELF.background_job.package_name) %] |
[%- LxERP.t8('Execution schedule') %] |
[% L.input_tag("background_job.cron_spec", SELF.background_job.cron_spec, 'size' => 40) %] |
[%- LxERP.t8('Data') %] |
[% L.textarea_tag("background_job.data", SELF.background_job.data, 'cols' => 80, 'rows' => 10) %] |
[% L.hidden_tag("id", SELF.background_job.id) %]
[% L.hidden_tag("back_to", SELF.back_to) %]
[% L.hidden_tag("action", "BackgroundJob/dispatch") %]
[% L.submit_tag("action_" _ (SELF.background_job.id ? "update" : "create"), LxERP.t8('Save')) %]
[%- IF SELF.background_job.id %]
[% L.submit_tag("action_execute", LxERP.t8("Execute now")) %]
[% L.submit_tag("action_destroy", LxERP.t8("Delete"), "confirm", LxERP.t8("Are you sure you want to delete this background job?")) %]
[%- ELSE %]
[% L.submit_tag("action_save_and_execute", LxERP.t8("Save and execute")) %]
[%- END %]
[%- LxERP.t8('Abort') %]