--- /dev/null
+[%- USE T8 %]
+[%- USE LxERP %]
+[%- USE L %]
+[%- USE HTML %]
+[%- USE Dumper %]
+
+<div id="invoice_statistic">
+ <table width="100%">
+ <tbody>
+ <tr>
+ <td class="listheading">[% 'Sent on' | $T8 %]</td>
+ <td class="listheading">[% 'Subject' | $T8 %]</td>
+ <td class="listheading">[% 'Record Type' | $T8 %]</td>
+ <td class="listheading">[% 'Record number' | $T8 %]</td>
+ <td class="listheading">[% 'From' | $T8 %]</td>
+ <td class="listheading">[% 'To' | $T8 %]</td>
+ <td class="listheading">[% 'Status' | $T8 %]</td>
+ </tr>
+
+ [%- FOREACH row = emails %]
+ <tr class="listrow[% loop.count % 2 %]">
+ <td>[% row.sent_on | html %]</td>
+ <td>
+ <a href="[% SELF.url_for(controller='controller.pl', action => 'EmailJournal/show', id => row.id, back_to => SELF.get_callback) %]">
+ [%- HTML.escape(row.subject) %]
+ </a></td>
+ <td>[% row.type | $T8 %]</td>
+ <td>[% row.recordnumber | html %]</td>
+ <td>[% row.from %]</td>
+ <td>[% row.recipients %]</td>
+ <td>[% row.status %]</td>
+ </tr>
+ [% END %]
+ </tbody>
+ </table>
+
+
+ </tbody>
+ </table>
+</div>