1 [% USE HTML %][% USE L %][% USE LxERP %]
 
   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>
 
  52     <td><pre>[% HTML.escape(SELF.entry.body) %]</pre></td>
 
  56  [% SET attachments = SELF.entry.attachments_sorted %]
 
  57  [% IF attachments.size %]
 
  58   <h2>[% LxERP.t8("Attachments") %]</h2>
 
  60   <table id="email_journal_details" class="email_journal_details">
 
  63      <th>[% LxERP.t8("Attachment name") %]</th>
 
  64      <th>[% LxERP.t8("MIME type") %]</th>
 
  65      <th>[% LxERP.t8("Size") %]</th>
 
  70     [% FOREACH attachment = attachments %]
 
  72       <td>[% L.link(SELF.url_for(action="download_attachment", id=attachment.id), attachment.name) %]</td>
 
  73       <td>[% HTML.escape(attachment.mime_type) %]</td>
 
  74       <td>[% HTML.escape(LxERP.format_amount(attachment.content.length, 0)) %]</td>