1 [% USE HTML %][% USE L %][% USE P %][% USE LxERP %]
3 <h1>[% FORM.title %]</h1>
5 [%- INCLUDE 'common/flash.html' %]
7 [%- PROCESS 'email_journal/_filter.html' filter=SELF.models.filtered.laundered %]
11 [%- LxERP.t8('There are no entries that match the filter.') %]
15 <table id="email_journal_list" width="100%">
17 <tr class="listheading">
18 [% IF SELF.can_view_all %]
19 <th>[% L.sortable_table_header("sender") %]</th>
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 <th>[% L.sortable_table_header("record_type") %]</th>
28 <th>[% L.sortable_table_header("obsolete") %]</th>
29 <th>[% L.sortable_table_header("linked_to") %]</th>
34 [%- FOREACH entry = ENTRIES %]
35 <tr class="listrow[% IF entry.status == 'send_failed' %]_error[% END %]" id="email_journal_id_[% entry.id %]">
36 [% IF SELF.can_view_all %]
39 [% HTML.escape(entry.sender.name) %]
41 [% LxERP.t8("kivitendo") %]
45 [% action_show_link = SELF.url_for(
46 action => 'show', id => entry.id,
47 back_to => SELF.models.get_callback(),
49 <td><a href="[% action_show_link %]">[%- HTML.escape(entry.from) %]</a></td>
50 <td>[%- HTML.escape(entry.recipients) %]</td>
51 <td><a href="[% action_show_link %]">[%- HTML.escape(entry.subject) %]</a></td>
52 <td>[%- HTML.escape(entry.sent_on.to_lxoffice('precision' => 'second')) %]</td>
53 <td> [% P.email_journal.entry_status(entry) %] </td>
54 <td>[%- HTML.escape(entry.extended_status) %]</td>
55 <td>[% HTML.escape(RECORD_TYPES_TO_TEXT.${entry.record_type}) %]</td>
56 <td>[% HTML.escape(entry.obsolete_as_bool_yn) %]</td>
58 [% P.record.simple_grouped_record_list(entry.linked_records) %]
66 [% L.paginate_controls %]