]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/email_journal/list.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / email_journal / list.html
1 [% USE HTML %]
2 [% USE L %]
3 [% USE P %]
4 [% USE LxERP %]
5
6 <h1>[% FORM.title %]</h1>
7
8 [% INCLUDE 'common/flash.html' %]
9 [% PROCESS 'email_journal/_filter.html' filter=SELF.models.filtered.laundered %]
10
11 [% IF !ENTRIES.size %]
12   <p>[% LxERP.t8('There are no entries that match the filter.') %]</p>
13
14 [% ELSE %]
15
16 <table id="email_journal_list" class="tbl-list wi-moderate">
17   <thead>
18     <tr>
19       [% IF SELF.can_view_all %]
20         <th>[% L.sortable_table_header("sender") %]</th>
21       [% END %]
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>
31     </tr>
32   </thead>
33   <tbody>
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>
38       [% END %]
39       [% action_show_link = SELF.url_for(
40            action => 'show', id => entry.id,
41            back_to => SELF.models.get_callback(),
42       ) %]
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>
51       <td>
52         [% P.record.simple_grouped_record_list(entry.linked_records) %]
53       </td>
54     </tr>
55     [% END %]
56   </tbody>
57 </table>
58
59 [% END %]
60
61 [% L.paginate_controls %]