Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2b562f22

Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt

  • ID 2b562f2228f05c380cc357b2ab2cb5e84bf59fe0
  • Vorgänger 0184f8e4
  • Nachfolger 3b6847ad

Neues Design 2019 Standard-Code templates/webpages/background_job/form.html

Unterschiede anzeigen:

templates/webpages/background_job/list.html
[% USE L %]
[% USE LxERP %]
<h1>[% FORM.title %]</h1>
<h1>[% FORM.title %]</h1>
[%- INCLUDE 'common/flash.html' %]
[% INCLUDE 'common/flash.html' %]
[% IF !BACKGROUND_JOBS.size %]
<p>
[%- LxERP.t8('No background job has been created yet.') %]
</p>
[% IF !BACKGROUND_JOBS.size %]
<p>[% LxERP.t8('No background job has been created yet.') %]</p>
[%- ELSE %]
<table id="background_job_list" width="100%">
[% ELSE %]
<table id="background_job_list" width="100%">
<thead>
<tr class="listheading">
<th>[% L.sortable_table_header('package_name') %]</th>
<th>[% L.sortable_table_header('type') %]</th>
<th>[% L.sortable_table_header('active') %]</th>
<th>[% L.sortable_table_header('cron_spec') %]</th>
<th>[% L.sortable_table_header('last_run_at') %]</th>
<th>[% L.sortable_table_header('next_run_at') %]</th>
</tr>
<tr>
<th>[% L.sortable_table_header('package_name') %]</th>
<th>[% L.sortable_table_header('type') %]</th>
<th>[% L.sortable_table_header('active') %]</th>
<th>[% L.sortable_table_header('cron_spec') %]</th>
<th>[% L.sortable_table_header('last_run_at') %]</th>
<th>[% L.sortable_table_header('next_run_at') %]</th>
</tr>
</thead>
<tbody>
[%- FOREACH background_job = BACKGROUND_JOBS %]
<tr class="listrow[% loop.count % 2 %]" id="background_job_id_[% background_job.id %]">
<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>
<td>
[%- IF background_job.type == 'once' %]
[%- LxERP.t8('one-time execution') %]
[%- ELSIF background_job.type == 'interval' %]
[%- LxERP.t8('repeated execution') %]
[% ELSE %]
[%- HTML.escape(background_job.type) %]
[%- END %]
</td>
<td align="right">[% IF background_job.active %][%- LxERP.t8('yes') %][% ELSE %][%- LxERP.t8('no') %][%- END %]</td>
<td>[%- HTML.escape(background_job.cron_spec) %]</td>
<td>
[%- IF background_job.last_run_at %]
[%- HTML.escape(background_job.last_run_at.to_lxoffice('precision' => 'second')) %]
[%- ELSE %]
[%- LxERP.t8('never') %]
[%- END %]
</td>
[% FOREACH background_job = BACKGROUND_JOBS %]
<tr class="listrow[% loop.count % 2 %]" id="background_job_id_[% background_job.id %]">
<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>
<td>
[% IF background_job.type == 'once' %]
[% LxERP.t8('one-time execution') %]
[% ELSIF background_job.type == 'interval' %]
[% LxERP.t8('repeated execution') %]
[% ELSE %]
[% HTML.escape(background_job.type) %]
[% END %]
</td>
<td>[% IF background_job.active %][% LxERP.t8('yes') %][% ELSE %][% LxERP.t8('no') %][% END %]</td>
<td>[% HTML.escape(background_job.cron_spec) %]</td>
<td>
[% IF background_job.last_run_at %]
[% HTML.escape(background_job.last_run_at.to_lxoffice('precision' => 'second')) %]
[% ELSE %]
[% LxERP.t8('never') %]
[% END %]
</td>
<td>
[%- IF background_job.next_run_at %]
[%- HTML.escape(background_job.next_run_at.to_lxoffice('precision' => 'second')) %]
[%- ELSE %]
[%- LxERP.t8('not set') %]
[%- END %]
</td>
</tr>
[%- END %]
<td>
[% IF background_job.next_run_at %]
[% HTML.escape(background_job.next_run_at.to_lxoffice('precision' => 'second')) %]
[% ELSE %]
[% LxERP.t8('not set') %]
[% END %]
</td>
</tr>
[% END %]
</tbody>
</table>
[%- END %]
</table>
[% END %]
[% L.paginate_controls %]
[% L.paginate_controls %]

Auch abrufbar als: Unified diff