6 <h1>[% FORM.title %]</h1>
8 [% INCLUDE 'common/flash.html' %]
9 [% PROCESS 'email_journal/_filter.html' filter=SELF.models.filtered.laundered %]
11 [% IF !ENTRIES.size %]
12 <p>[% LxERP.t8('There are no entries that match the filter.') %]</p>
16 <table id="email_journal_list" class="tbl-list wi-moderate">
19 [% IF SELF.can_view_all %]
20 <th>[% L.sortable_table_header("sender") %]</th>
22 <th>[% L.sortable_table_header("from") %]</th>
23 <th>[% L.sortable_table_header("recipients") %]</th>
24 <th>[% L.sortable_table_header("subject") %]</th>
25 <th>[% L.sortable_table_header("sent_on") %]</th>
26 <th>[% L.sortable_table_header("status") %]</th>
27 <th>[% L.sortable_table_header("extended_status") %]</th>
28 <th>[% L.sortable_table_header("record_type") %]</th>
29 <th>[% L.sortable_table_header("obsolete") %]</th>
30 <th>[% L.sortable_table_header("linked_to") %]</th>
34 [% FOREACH entry = ENTRIES %]
35 <tr id="email_journal_id_[% entry.id %]" [% IF entry.status == 'send_failed' %] class="listrow_error" [% END %]>
36 [% IF SELF.can_view_all %]
37 <td>[% IF entry.sender %] [% HTML.escape(entry.sender.name) %] [% ELSE %] [% LxERP.t8("kivitendo") %] [% END %]</td>
39 [% action_show_link = SELF.url_for(
40 action => 'show', id => entry.id,
41 back_to => SELF.models.get_callback(),
43 <td><a href="[% action_show_link %]"> [% HTML.escape(entry.from) %] </a></td>
44 <td>[% HTML.escape(entry.recipients) %]</td>
45 <td><a href="[% action_show_link %]"> [% HTML.escape(entry.subject) %] </a></td>
46 <td>[% HTML.escape(entry.sent_on.to_lxoffice('precision' => 'second')) %]</td>
47 <td> [% P.email_journal.entry_status(entry) %] </td>
48 <td>[% HTML.escape(entry.extended_status) %]</td>
49 <td>[% HTML.escape(RECORD_TYPES_TO_TEXT.${entry.record_type}) %]</td>
50 <td>[% HTML.escape(entry.obsolete_as_bool_yn) %]</td>
52 [% P.record.simple_grouped_record_list(entry.linked_records) %]
61 [% L.paginate_controls %]