1 [% USE HTML %][% USE L %][% USE LxERP %][%- USE P -%]
3 <h1>[% FORM.title %]</h1>
5 [%- INCLUDE 'common/flash.html' %]
7 <table id="email_journal_details" class="email_journal_details">
10 <th>[%- LxERP.t8("From") %]</th>
11 <td>[%- HTML.escape(SELF.entry.from) %]</td>
15 <th>[%- LxERP.t8("Recipients") %]</th>
16 <td>[%- HTML.escape(SELF.entry.recipients) %]</td>
20 <th>[%- LxERP.t8("Subject") %]</th>
21 <td>[%- HTML.escape(SELF.entry.subject) %]</td>
25 <th>[%- LxERP.t8("Sent on") %]</th>
26 <td>[%- HTML.escape(SELF.entry.sent_on.to_lxoffice("precision" => "second")) %]</td>
30 <th>[%- LxERP.t8("Status") %]</th>
32 [%- IF SELF.entry.status == "ok" %]
33 [%- LxERP.t8("succeeded") %]
35 [%- LxERP.t8("failed") %]
41 <th>[%- LxERP.t8("Extended status") %]</th>
42 <td><pre>[%- HTML.escape(SELF.entry.extended_status) %]</pre></td>
46 <th>[%- LxERP.t8("Headers") %]</th>
47 <td><pre>[% HTML.escape(SELF.entry.headers) %]</pre></td>
51 <th>[%- LxERP.t8("Body") %]</th>
53 [%- IF SELF.entry.headers.match('(?i)content-type:.*text/html') %]
54 [% P.restricted_html(SELF.entry.body) %]
56 <pre>[% HTML.escape(SELF.entry.body) %]</pre>
62 [% SET attachments = SELF.entry.attachments_sorted %]
63 [% IF attachments.size %]
64 <h2>[% LxERP.t8("Attachments") %]</h2>
66 <table id="email_journal_details" class="email_journal_details">
69 <th>[% LxERP.t8("Attachment name") %]</th>
70 <th>[% LxERP.t8("MIME type") %]</th>
71 <th>[% LxERP.t8("Size") %]</th>
76 [% FOREACH attachment = attachments %]
78 <td>[% L.link(SELF.url_for(action="download_attachment", id=attachment.id), attachment.name) %]</td>
79 <td>[% HTML.escape(attachment.mime_type) %]</td>
80 <td>[% HTML.escape(LxERP.format_amount(attachment.content.length, 0)) %]</td>