Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9ba72b4b

Von Hans P. Schlaepfer vor mehr als 3 Jahren hinzugefügt

  • ID 9ba72b4ba142227d3e08b52726cd86f3272c05df
  • Vorgänger 5bc8e09c
  • Nachfolger 5d9780f2

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

Unterschiede anzeigen:

templates/webpages/background_job/list.html
2 2
[% USE L %]
3 3
[% USE LxERP %]
4 4

  
5
 <h1>[% FORM.title %]</h1>
5
<h1>[% FORM.title %]</h1>
6 6

  
7
[%- INCLUDE 'common/flash.html' %]
7
[% INCLUDE 'common/flash.html' %]
8 8

  
9
  [% IF !BACKGROUND_JOBS.size %]
10
   <p>
11
    [%- LxERP.t8('No background job has been created yet.') %]
12
   </p>
9
[% IF !BACKGROUND_JOBS.size %]
10
  <p>[% LxERP.t8('No background job has been created yet.') %]</p>
13 11

  
14
  [%- ELSE %]
15
   <table id="background_job_list" width="100%">
12
[% ELSE %]
13
  <table id="background_job_list" width="100%">
16 14
    <thead>
17
     <tr class="listheading">
18
      <th>[% L.sortable_table_header('package_name') %]</th>
19
      <th>[% L.sortable_table_header('type') %]</th>
20
      <th>[% L.sortable_table_header('active') %]</th>
21
      <th>[% L.sortable_table_header('cron_spec') %]</th>
22
      <th>[% L.sortable_table_header('last_run_at') %]</th>
23
      <th>[% L.sortable_table_header('next_run_at') %]</th>
24
     </tr>
15
      <tr>
16
        <th>[% L.sortable_table_header('package_name') %]</th>
17
        <th>[% L.sortable_table_header('type') %]</th>
18
        <th>[% L.sortable_table_header('active') %]</th>
19
        <th>[% L.sortable_table_header('cron_spec') %]</th>
20
        <th>[% L.sortable_table_header('last_run_at') %]</th>
21
        <th>[% L.sortable_table_header('next_run_at') %]</th>
22
      </tr>
25 23
    </thead>
26 24

  
27 25
    <tbody>
28
    [%- FOREACH background_job = BACKGROUND_JOBS %]
29
    <tr class="listrow[% loop.count % 2 %]" id="background_job_id_[% background_job.id %]">
30
     <td>
31
      <a href="[% SELF.url_for(action => 'edit', id => background_job.id, back_to => SELF.get_callback) %]">
32
       [%- HTML.escape(background_job.package_name) %]
33
      </a>
34
     </td>
35
     <td>
36
      [%- IF background_job.type == 'once' %]
37
       [%- LxERP.t8('one-time execution') %]
38
      [%- ELSIF background_job.type == 'interval' %]
39
       [%- LxERP.t8('repeated execution') %]
40
      [% ELSE %]
41
       [%- HTML.escape(background_job.type) %]
42
      [%- END %]
43
     </td>
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>
46
     <td>
47
      [%- IF background_job.last_run_at %]
48
       [%- HTML.escape(background_job.last_run_at.to_lxoffice('precision' => 'second')) %]
49
      [%- ELSE %]
50
       [%- LxERP.t8('never') %]
51
      [%- END %]
52
     </td>
26
    [% FOREACH background_job = BACKGROUND_JOBS %]
27
      <tr class="listrow[% loop.count % 2 %]" id="background_job_id_[% background_job.id %]">
28
        <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>
29
        <td>
30
          [% IF background_job.type == 'once' %]
31
            [% LxERP.t8('one-time execution') %]
32
          [% ELSIF background_job.type == 'interval' %]
33
            [% LxERP.t8('repeated execution') %]
34
          [% ELSE %]
35
            [% HTML.escape(background_job.type) %]
36
          [% END %]
37
        </td>
38
        <td>[% IF background_job.active %][% LxERP.t8('yes') %][% ELSE %][% LxERP.t8('no') %][% END %]</td>
39
        <td>[% HTML.escape(background_job.cron_spec) %]</td>
40
        <td>
41
          [% IF background_job.last_run_at %]
42
            [% HTML.escape(background_job.last_run_at.to_lxoffice('precision' => 'second')) %]
43
          [% ELSE %]
44
            [% LxERP.t8('never') %]
45
          [% END %]
46
        </td>
53 47

  
54
     <td>
55
      [%- IF background_job.next_run_at %]
56
       [%- HTML.escape(background_job.next_run_at.to_lxoffice('precision' => 'second')) %]
57
      [%- ELSE %]
58
       [%- LxERP.t8('not set') %]
59
      [%- END %]
60
     </td>
61
    </tr>
62
    [%- END %]
48
        <td>
49
          [% IF background_job.next_run_at %]
50
            [% HTML.escape(background_job.next_run_at.to_lxoffice('precision' => 'second')) %]
51
          [% ELSE %]
52
            [% LxERP.t8('not set') %]
53
          [% END %]
54
        </td>
55
      </tr>
56
    [% END %]
63 57
    </tbody>
64
   </table>
65
  [%- END %]
58
  </table>
59
[% END %]
66 60

  
67
  [% L.paginate_controls %]
61
[% L.paginate_controls %]

Auch abrufbar als: Unified diff