]> wagnertech.de Git - mfinanz.git/blob - templates/webpages/email_journal/list.html
date error in mapping
[mfinanz.git] / templates / webpages / email_journal / list.html
1 [% USE HTML %][% USE L %][% USE P %][% 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     <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>
30    </tr>
31   </thead>
32
33   <tbody>
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 %]
37     <td>
38      [% IF entry.sender %]
39       [% HTML.escape(entry.sender.name) %]
40      [% ELSE %]
41       [% LxERP.t8("kivitendo") %]
42      [% END %]
43     </td>
44    [% END %]
45    [% action_show_link = SELF.url_for(
46         action => 'show', id => entry.id,
47         back_to => SELF.models.get_callback(),
48    ) %]
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>
57    <td>
58      [% P.record.simple_grouped_record_list(entry.linked_records) %]
59    </td>
60   </tr>
61   [%- END %]
62   </tbody>
63  </table>
64 [%- END %]
65
66 [% L.paginate_controls %]