]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/background_job/list.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / background_job / list.html
1 [% USE HTML %]
2 [% USE L %]
3 [% USE LxERP %]
4
5 <h1>[% FORM.title %]</h1>
6
7 [% INCLUDE 'common/flash.html' %]
8
9 [% IF !BACKGROUND_JOBS.size %]
10   <p>[% LxERP.t8('No background job has been created yet.') %]</p>
11
12 [% ELSE %]
13   <table id="background_job_list" class="tbl-list" width="100%">
14     <thead>
15       <tr>
16         <th>[% L.sortable_table_header('package_name') %]</th>
17         <th>[% L.sortable_table_header('description') %]</th>
18         <th>[% L.sortable_table_header('type') %]</th>
19         <th>[% L.sortable_table_header('active') %]</th>
20         <th>[% L.sortable_table_header('cron_spec') %]</th>
21         <th>[% L.sortable_table_header('last_run_at') %]</th>
22         <th>[% L.sortable_table_header('next_run_at') %]</th>
23       </tr>
24     </thead>
25
26     <tbody>
27     [% FOREACH background_job = BACKGROUND_JOBS %]
28       <tr class="listrow[% loop.count % 2 %]" id="background_job_id_[% background_job.id %]">
29         <td><a href="[% SELF.url_for(action => 'edit', id => background_job.id, back_to => SELF.get_callback) %]">[% HTML.escape(background_job.package_name) %]</a></td>
30         <td>[% HTML.escape(background_job.description) %]</td>
31         <td>
32           [% IF background_job.type == 'once' %]
33             [% LxERP.t8('one-time execution') %]
34           [% ELSIF background_job.type == 'interval' %]
35             [% LxERP.t8('repeated execution') %]
36           [% ELSE %]
37             [% HTML.escape(background_job.type) %]
38           [% END %]
39         </td>
40         <td>[% IF background_job.active %][% LxERP.t8('yes') %][% ELSE %][% LxERP.t8('no') %][% END %]</td>
41         <td>[% HTML.escape(background_job.cron_spec) %]</td>
42         <td>
43           [% IF background_job.last_run_at %]
44             [% HTML.escape(background_job.last_run_at.to_lxoffice('precision' => 'second')) %]
45           [% ELSE %]
46             [% LxERP.t8('never') %]
47           [% END %]
48         </td>
49
50         <td>
51           [% IF background_job.next_run_at %]
52             [% HTML.escape(background_job.next_run_at.to_lxoffice('precision' => 'second')) %]
53           [% ELSE %]
54             [% LxERP.t8('not set') %]
55           [% END %]
56         </td>
57       </tr>
58     [% END %]
59     </tbody>
60   </table>
61 [% END %]
62
63 [% L.paginate_controls %]