Controller zur Verwaltung von BackgroundJobHistory-Einträgen
[kivitendo-erp.git] / templates / webpages / background_job / form.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2 <body>
3
4  <form method="post" action="controller.pl">
5   <div class="listtop">[% FORM.title %]</div>
6
7 [%- INCLUDE 'common/flash.html' %]
8
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>[% 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>
19    </tr>
20
21    <tr>
22     <th align="right">[%- LxERP.t8('Package name') %]</th>
23     <td>[% L.input_tag("background_job.package_name", SELF.background_job.package_name, 'size' => 40) %]</td>
24    </tr>
25
26    <tr>
27     <th align="right">[%- LxERP.t8('Execution schedule') %]</th>
28     <td>[% L.input_tag("background_job.cron_spec", SELF.background_job.cron_spec, 'size' => 40) %]</td>
29    </tr>
30
31    <tr>
32     <th align="right" valign="top">[%- LxERP.t8('Data') %]</th>
33     <td valign="top">[% L.textarea_tag("background_job.data", SELF.background_job.data, 'cols' => 80, 'rows' => 10) %]</td>
34    </tr>
35
36   </table>
37
38   <p>
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?")) %]
45    [%- ELSE %]
46     [% L.submit_tag("action_save_and_execute", LxERP.t8("Save and execute")) %]
47    [%- END %]
48    <a href="[% SELF.url_for(action => 'list') %]">[%- LxERP.t8('Abort') %]</a>
49   </p>
50  </form>
51 </body>
52 </html>