Menüs: "target=..." wieder unterstützt
[kivitendo-erp.git] / templates / webpages / background_job / form.html
index a4753bb..5e02ea1 100644 (file)
@@ -1,11 +1,10 @@
 [% USE HTML %][% USE L %][% USE LxERP %]
-<body>
 
- <form method="post" action="controller.pl">
-  <div class="listtop">[% FORM.title %]</div>
+ <h1>[% FORM.title %]</h1>
 
 [%- INCLUDE 'common/flash.html' %]
 
+ <form method="post" action="controller.pl">
   <table>
    <tr>
     <th align="right">[%- LxERP.t8('Active') %]</th>
 
    <tr>
     <th align="right">[%- LxERP.t8('Execution type') %]</th>
-    <td>[% L.select_tag("background_job.type", L.options_for_select([ [ 'once', LxERP.t8('one-time execution') ], [ 'interval', LxERP.t8('repeated execution') ] ],
-                                                                    'default' => SELF.background_job.type)) %]</td>
+    <td>
+      [% L.select_tag('background_job.type', [
+                [ 'once', LxERP.t8('one-time execution') ],
+                [ 'interval', LxERP.t8('repeated execution') ]
+              ],
+              'default' = SELF.background_job.type) %]
+    </td>
    </tr>
 
    <tr>
     <th align="right">[%- LxERP.t8('Package name') %]</th>
-    <td>[% L.input_tag("background_job.package_name", SELF.background_job.package_name, 'size' => 40) %]</td>
+    <td>[% L.select_tag("background_job.package_name", JOB_CLASSES, 'default' => SELF.background_job.package_name) %]</td>
    </tr>
 
    <tr>
@@ -37,6 +41,7 @@
 
   <p>
    [% L.hidden_tag("id", SELF.background_job.id) %]
+   [% L.hidden_tag("back_to", SELF.back_to) %]
    [% L.hidden_tag("action", "BackgroundJob/dispatch") %]
    [% L.submit_tag("action_" _  (SELF.background_job.id ? "update" : "create"), LxERP.t8('Save')) %]
    [%- IF SELF.background_job.id %]
@@ -48,5 +53,3 @@
    <a href="[% SELF.url_for(action => 'list') %]">[%- LxERP.t8('Abort') %]</a>
   </p>
  </form>
-</body>
-</html>