</html> entfernen
[kivitendo-erp.git] / templates / webpages / background_job / form.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2 <body>
3
4  <h1>[% FORM.title %]</h1>
5
6 [%- INCLUDE 'common/flash.html' %]
7
8  <form method="post" action="controller.pl">
9   <table>
10    <tr>
11     <th align="right">[%- LxERP.t8('Active') %]</th>
12     <td>[% L.yes_no_tag("background_job.active", SELF.background_job.active) %]</td>
13    </tr>
14
15    <tr>
16     <th align="right">[%- LxERP.t8('Execution type') %]</th>
17     <td>
18       [% L.select_tag('background_job.type', [
19                 [ 'once', LxERP.t8('one-time execution') ],
20                 [ 'interval', LxERP.t8('repeated execution') ]
21               ],
22               'default' = SELF.background_job.type) %]
23     </td>
24    </tr>
25
26    <tr>
27     <th align="right">[%- LxERP.t8('Package name') %]</th>
28     <td>[% L.input_tag("background_job.package_name", SELF.background_job.package_name, 'size' => 40) %]</td>
29    </tr>
30
31    <tr>
32     <th align="right">[%- LxERP.t8('Execution schedule') %]</th>
33     <td>[% L.input_tag("background_job.cron_spec", SELF.background_job.cron_spec, 'size' => 40) %]</td>
34    </tr>
35
36    <tr>
37     <th align="right" valign="top">[%- LxERP.t8('Data') %]</th>
38     <td valign="top">[% L.textarea_tag("background_job.data", SELF.background_job.data, 'cols' => 80, 'rows' => 10) %]</td>
39    </tr>
40
41   </table>
42
43   <p>
44    [% L.hidden_tag("id", SELF.background_job.id) %]
45    [% L.hidden_tag("back_to", SELF.back_to) %]
46    [% L.hidden_tag("action", "BackgroundJob/dispatch") %]
47    [% L.submit_tag("action_" _  (SELF.background_job.id ? "update" : "create"), LxERP.t8('Save')) %]
48    [%- IF SELF.background_job.id %]
49     [% L.submit_tag("action_execute", LxERP.t8("Execute now")) %]
50     [% L.submit_tag("action_destroy", LxERP.t8("Delete"), "confirm", LxERP.t8("Are you sure you want to delete this background job?")) %]
51    [%- ELSE %]
52     [% L.submit_tag("action_save_and_execute", LxERP.t8("Save and execute")) %]
53    [%- END %]
54    <a href="[% SELF.url_for(action => 'list') %]">[%- LxERP.t8('Abort') %]</a>
55   </p>
56  </form>
57 </body>