E-Mail-Journal: Journal anzeigen, Eintrag anzeigen, Anhänge herunterladen
[kivitendo-erp.git] / templates / webpages / email_journal / list.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2
3 <h1>[% FORM.title %]</h1>
4
5 [%- INCLUDE 'common/flash.html' %]
6
7 [%- PROCESS 'email_journal/_filter.html' filter=SELF.models.filtered.laundered %]
8
9 [% IF !ENTRIES.size %]
10  <p>
11   [%- LxERP.t8('There are no entries that match the filter.') %]
12  </p>
13
14 [%- ELSE %]
15  <table id="email_journal_list" width="100%">
16   <thead>
17    <tr class="listheading">
18     [% IF SELF.can_view_all %]
19      <th>[% L.sortable_table_header("sender") %]</th>
20     [% END %]
21     <th>[% L.sortable_table_header("from") %]</th>
22     <th>[% L.sortable_table_header("recipients") %]</th>
23     <th>[% L.sortable_table_header("subject") %]</th>
24     <th>[% L.sortable_table_header("sent_on") %]</th>
25     <th>[% L.sortable_table_header("status") %]</th>
26     <th>[% L.sortable_table_header("extended_status") %]</th>
27    </tr>
28   </thead>
29
30   <tbody>
31   [%- FOREACH entry = ENTRIES %]
32   <tr class="listrow[% IF entry.status != 'ok' %]_error[% END %]" id="email_journal_id_[% entry.id %]">
33    [% IF SELF.can_view_all %]
34     <td>
35      [% IF entry.sender %]
36       [% HTML.escape(entry.sender.name) %]
37      [% ELSE %]
38       [% LxERP.t8("kivitendo") %]
39      [% END %]
40     </td>
41    [% END %]
42    <td>
43     <a href="[% SELF.url_for(action => 'show', id => entry.id, back_to => SELF.get_callback) %]">
44      [%- HTML.escape(entry.from) %]
45     </a>
46    </td>
47    <td>[%- HTML.escape(entry.recipients) %]</td>
48    <td>
49     <a href="[% SELF.url_for(action => 'show', id => entry.id, back_to => SELF.get_callback) %]">
50      [%- HTML.escape(entry.subject) %]
51     </a>
52    </td>
53    <td>[%- HTML.escape(entry.sent_on.to_lxoffice('precision' => 'second')) %]</td>
54    <td>
55     [%- IF entry.status == 'ok' %]
56      [%- LxERP.t8('succeeded') %]
57     [% ELSE %]
58      [%- LxERP.t8('failed') %]
59     [%- END %]
60    </td>
61    <td>[%- HTML.escape(entry.extended_status) %]</td>
62   </tr>
63   [%- END %]
64   </tbody>
65  </table>
66 [%- END %]
67
68 [% L.paginate_controls %]