<body> entfernt.
[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">
8   <table>
9    <tr>
10     <th align="right">[%- LxERP.t8('Active') %]</th>
11     <td>[% L.yes_no_tag("background_job.active", SELF.background_job.active) %]</td>
12    </tr>
13
14    <tr>
15     <th align="right">[%- LxERP.t8('Execution type') %]</th>
16     <td>
17       [% L.select_tag('background_job.type', [
18                 [ 'once', LxERP.t8('one-time execution') ],
19                 [ 'interval', LxERP.t8('repeated execution') ]
20               ],
21               'default' = SELF.background_job.type) %]
22     </td>
23    </tr>
24
25    <tr>
26     <th align="right">[%- LxERP.t8('Package name') %]</th>
27     <td>[% L.input_tag("background_job.package_name", SELF.background_job.package_name, 'size' => 40) %]</td>
28    </tr>
29
30    <tr>
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>
33    </tr>
34
35    <tr>
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>
38    </tr>
39
40   </table>
41
42   <p>
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?")) %]
50    [%- ELSE %]
51     [% L.submit_tag("action_save_and_execute", LxERP.t8("Save and execute")) %]
52    [%- END %]
53    <a href="[% SELF.url_for(action => 'list') %]">[%- LxERP.t8('Abort') %]</a>
54   </p>
55  </form>