20444a9c8fbbdbd3152bc49dea5a5075645c6490
[kivitendo-erp.git] / templates / webpages / email_journal / show.html
1 [% USE HTML %][% USE L %][% USE LxERP %]
2
3  <h1>[% FORM.title %]</h1>
4
5 [%- INCLUDE 'common/flash.html' %]
6
7  <table id="email_journal_details" class="email_journal_details">
8   <tbody>
9    <tr class="listrow">
10     <th>[%- LxERP.t8("From") %]</th>
11     <td>[%- HTML.escape(SELF.entry.from) %]</td>
12    </tr>
13
14    <tr class="listrow">
15     <th>[%- LxERP.t8("Recipients") %]</th>
16     <td>[%- HTML.escape(SELF.entry.recipients) %]</td>
17    </tr>
18
19    <tr class="listrow">
20     <th>[%- LxERP.t8("Subject") %]</th>
21     <td>[%- HTML.escape(SELF.entry.subject) %]</td>
22    </tr>
23
24    <tr class="listrow">
25     <th>[%- LxERP.t8("Sent on") %]</th>
26     <td>[%- HTML.escape(SELF.entry.sent_on.to_lxoffice("precision" => "second")) %]</td>
27    </tr>
28
29    <tr class="listrow">
30     <th>[%- LxERP.t8("Status") %]</th>
31     <td>
32      [%- IF SELF.entry.status == "ok" %]
33       [%- LxERP.t8("succeeded") %]
34      [%- ELSE %]
35       [%- LxERP.t8("failed") %]
36      [%- END %]
37     </td>
38    </tr>
39
40    <tr class="listrow">
41     <th>[%- LxERP.t8("Extended status") %]</th>
42     <td><pre>[%- HTML.escape(SELF.entry.extended_status) %]</pre></td>
43    </tr>
44
45    <tr class="listrow">
46     <th>[%- LxERP.t8("Headers") %]</th>
47     <td><pre>[% HTML.escape(SELF.entry.headers) %]</pre></td>
48    </tr>
49
50    <tr class="listrow">
51     <th>[%- LxERP.t8("Body") %]</th>
52     <td><pre>[% HTML.escape(SELF.entry.body) %]</pre></td>
53    </tr>
54  </table>
55
56  [% SET attachments = SELF.entry.attachments_sorted %]
57  [% IF attachments.size %]
58   <h2>[% LxERP.t8("Attachments") %]</h2>
59
60   <table id="email_journal_details" class="email_journal_details">
61    <thead>
62     <tr>
63      <th>[% LxERP.t8("Attachment name") %]</th>
64      <th>[% LxERP.t8("MIME type") %]</th>
65      <th>[% LxERP.t8("Size") %]</th>
66     </tr>
67    </thead>
68
69    <tbody>
70     [% FOREACH attachment = attachments %]
71      <tr class="listrow">
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>
75      </tr>
76     [% END %]
77    </tbody>
78   </table>
79  [% END %]