f7170ec4e9ad6578adf1ebe3b0c539739e3411bc
[kivitendo-erp.git] / templates / webpages / background_job / form.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2
3  <h1>[% FORM.title %]</h1>
4
5 [%- INCLUDE 'common/flash.html' %]
6
7  <form method="post" action="controller.pl" id="form">
8   [% L.hidden_tag("id", SELF.background_job.id) %]
9   [% L.hidden_tag("back_to", SELF.back_to) %]
10
11   <table>
12    <tr>
13     <th align="right">[%- LxERP.t8('Active') %]</th>
14     <td>[% L.yes_no_tag("background_job.active", SELF.background_job.active) %]</td>
15    </tr>
16
17    <tr>
18     <th align="right">[%- LxERP.t8('Execution type') %]</th>
19     <td>
20       [% L.select_tag('background_job.type', [
21                 [ 'once', LxERP.t8('one-time execution') ],
22                 [ 'interval', LxERP.t8('repeated execution') ]
23               ],
24               'default' = SELF.background_job.type) %]
25     </td>
26    </tr>
27
28    <tr>
29     <th align="right">[%- LxERP.t8('Package name') %]</th>
30     <td>[% L.select_tag("background_job.package_name", JOB_CLASSES, 'default' => SELF.background_job.package_name) %]</td>
31    </tr>
32
33    <tr>
34     <th align="right">[%- LxERP.t8('Execution schedule') %]</th>
35     <td>[% L.input_tag("background_job.cron_spec", SELF.background_job.cron_spec, 'size' => 40) %]</td>
36    </tr>
37
38    <tr>
39     <th align="right" valign="top">[%- LxERP.t8('Data') %]</th>
40     <td valign="top">[% L.textarea_tag("background_job.data", SELF.background_job.data, 'cols' => 80, 'rows' => 10) %]</td>
41    </tr>
42
43   </table>
44  </form>