1 [% USE HTML %][% USE L %][% USE LxERP %]
3 <h1>[% FORM.title %]</h1>
5 [%- INCLUDE 'common/flash.html' %]
7 <form method="post" action="controller.pl">
10 <th align="right">[%- LxERP.t8('Active') %]</th>
11 <td>[% L.yes_no_tag("background_job.active", SELF.background_job.active) %]</td>
15 <th align="right">[%- LxERP.t8('Execution type') %]</th>
17 [% L.select_tag('background_job.type', [
18 [ 'once', LxERP.t8('one-time execution') ],
19 [ 'interval', LxERP.t8('repeated execution') ]
21 'default' = SELF.background_job.type) %]
26 <th align="right">[%- LxERP.t8('Package name') %]</th>
27 <td>[% L.select_tag("background_job.package_name", JOB_CLASSES, 'default' => SELF.background_job.package_name) %]</td>
31 <th align="right">[%- LxERP.t8('Execution schedule') %]</th>
32 <td>[% L.input_tag("background_job.cron_spec", SELF.background_job.cron_spec, 'size' => 40) %]</td>
36 <th align="right" valign="top">[%- LxERP.t8('Data') %]</th>
37 <td valign="top">[% L.textarea_tag("background_job.data", SELF.background_job.data, 'cols' => 80, 'rows' => 10) %]</td>
43 [% L.hidden_tag("id", SELF.background_job.id) %]
44 [% L.hidden_tag("back_to", SELF.back_to) %]
45 [% L.hidden_tag("action", "BackgroundJob/dispatch") %]
46 [% L.submit_tag("action_" _ (SELF.background_job.id ? "update" : "create"), LxERP.t8('Save')) %]
47 [%- IF SELF.background_job.id %]
48 [% L.submit_tag("action_execute", LxERP.t8("Execute now")) %]
49 [% L.submit_tag("action_destroy", LxERP.t8("Delete"), "confirm", LxERP.t8("Are you sure you want to delete this background job?")) %]
51 [% L.submit_tag("action_save_and_execute", LxERP.t8("Save and execute")) %]
53 <a href="[% SELF.url_for(action => 'list') %]">[%- LxERP.t8('Abort') %]</a>