1 [% USE HTML %][% USE L %][% USE LxERP %]
4 <form method="post" action="controller.pl">
5 <div class="listtop">[% FORM.title %]</div>
7 [%- INCLUDE 'common/flash.html' %]
11 <td>[%- LxERP.t8('Active') %]</td>
12 <td>[% L.yes_no_tag("background_job.active", SELF.background_job.active) %]</td>
16 <td>[%- LxERP.t8('Execution type') %]</td>
17 <td>[% L.select_tag("background_job.type", L.options_for_select([ [ 'once', LxERP.t8('one-time execution') ], [ 'interval', LxERP.t8('repeated execution') ] ],
18 'default' => SELF.background_job.type)) %]</td>
22 <td>[%- LxERP.t8('Package name') %]</td>
23 <td>[% L.input_tag("background_job.package_name", SELF.background_job.package_name, 'size' => 40) %]</td>
27 <td>[%- LxERP.t8('Execution schedule') %]</td>
28 <td>[% L.input_tag("background_job.cron_spec", SELF.background_job.cron_spec, 'size' => 40) %]</td>
32 <td>[%- LxERP.t8('Data') %]</td>
33 <td>[% L.textarea_tag("background_job.data", SELF.background_job.data, 'cols' => 80, 'rows' => 10) %]</td>
39 [% L.hidden_tag("id", SELF.background_job.id) %]
40 [% L.hidden_tag("action", "BackgroundJob/dispatch") %]
41 [% L.submit_tag("action_" _ (SELF.background_job.id ? "update" : "create"), LxERP.t8('Save')) %]
42 [%- IF SELF.background_job.id %]
43 [% L.submit_tag("action_execute", LxERP.t8("Execute now")) %]
44 [% L.submit_tag("action_destroy", LxERP.t8("Delete"), "confirm", LxERP.t8("Are you sure you want to delete this background job?")) %]
46 [% L.submit_tag("action_save_and_execute", LxERP.t8("Save and execute")) %]
48 <a href="[% SELF.url_for(action => 'list') %]">[%- LxERP.t8('Abort') %]</a>