1 [% USE HTML %][% USE L %][% USE LxERP %]
4 <div class="listtop">[% FORM.title %]</div>
6 [%- INCLUDE 'common/flash.html' %]
8 <form method="post" action="controller.pl">
9 [% IF !BACKGROUND_JOBS.size %]
11 [%- LxERP.t8('No background job has been created yet.') %]
15 <table id="background_job_list" width="100%">
17 <tr class="listheading">
18 <th>[%- LxERP.t8('Execution type') %]</th>
19 <th>[%- LxERP.t8('Package name') %]</th>
20 <th>[%- LxERP.t8('Active') %]</th>
21 <th>[%- LxERP.t8('Execution schedule') %]</th>
22 <th>[%- LxERP.t8('Last run at') %]</th>
23 <th>[%- LxERP.t8('Next run at') %]</th>
28 [%- FOREACH background_job = BACKGROUND_JOBS %]
29 <tr class="listrow[% loop.count % 2 %]" id="background_job_id_[% background_job.id %]">
31 [%- IF background_job.type == 'once' %]
32 [%- LxERP.t8('one-time execution') %]
33 [%- ELSIF background_job.type == 'interval' %]
34 [%- LxERP.t8('repeated execution') %]
36 [%- HTML.escape(background_job.type) %]
40 <a href="[% SELF.url_for(action => 'edit', id => background_job.id) %]">
41 [%- HTML.escape(background_job.package_name) %]
44 <td align="right">[% IF background_job.active %][%- LxERP.t8('yes') %][% ELSE %][%- LxERP.t8('no') %][%- END %]</td>
45 <td>[%- HTML.escape(background_job.cron_spec) %]</td>
47 [%- IF background_job.last_run_at %]
48 [%- HTML.escape(background_job.last_run_at.to_lxoffice('precision' => 'second')) %]
50 [%- LxERP.t8('never') %]
55 [%- IF background_job.next_run_at %]
56 [%- HTML.escape(background_job.next_run_at.to_lxoffice('precision' => 'second')) %]
58 [%- LxERP.t8('not set') %]
70 <a href="[% SELF.url_for(action => 'new') %]">[%- LxERP.t8('Create new background job') %]</a>
72 <a href="[% SELF.url_for(controller => 'BackgroundJobHistory', action => 'list') %]">[%- LxERP.t8('View background job history') %]</a>
74 <a href="[% SELF.url_for(controller => 'TaskServer', action => 'show') %]">[%- LxERP.t8('Task server control') %]</a>