mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
4deaf09212
Add a 'Sent Status Report' tab to Newsletters that shows the following 4 reports: * Sending to the Following Recipients Failed * Sending to the Following Recipients Bounced (@TODO: Make bounces actually show up here) * The Newsletter has Never Been Sent to Following Subscribers * Sending to the Following Recipients was Successful More info: http://support.silverstripe.com/gsoc/wiki/GSoc07UsabilityElijah (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41995 467b73ca-7a2a-4603-9d3b-597d59a354a9
94 lines
1.7 KiB
Scheme
94 lines
1.7 KiB
Scheme
<% if SentRecipients(Failed) %>
|
|
<h2 class="error">Sending to the Following Recipients Failed</h2>
|
|
<table class="CMSList">
|
|
<thead>
|
|
<tr>
|
|
<th class="Email">Email</th>
|
|
<th>Result</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% control SentRecipients(Failed) %>
|
|
<tr>
|
|
<td>$Email</td>
|
|
<td>$LastEdited</td>
|
|
<td>$Result</td>
|
|
</tr>
|
|
<% end_control %>
|
|
|
|
</tbody>
|
|
</table>
|
|
<% end_if %>
|
|
<% if SentRecipients(Bounced) %>
|
|
<h2 class="error">Sending to the Following Recipients Bounced</h2>
|
|
<table class="CMSList">
|
|
<thead>
|
|
<tr>
|
|
<th class="Email">Email</th>
|
|
<th>Date</th>
|
|
<th>Result</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% control SentRecipients(Bounced) %>
|
|
<tr>
|
|
<td>$Email</td>
|
|
<td>$LastEdited</td>
|
|
<td>$Result</td>
|
|
</tr>
|
|
<% end_control %>
|
|
|
|
</tbody>
|
|
</table>
|
|
<% end_if %>
|
|
|
|
<% if UnsentSubscribers %>
|
|
<h2>The Newsletter has Never Been Sent to Following Subscribers</h2>
|
|
<table class="CMSList">
|
|
<thead>
|
|
<tr>
|
|
<th class="FirstName">Firstname</th>
|
|
<th class="Surname">Surname</th>
|
|
<th class="Email">Email</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% control UnsentSubscribers %>
|
|
<tr id="unsent-member-$ID">
|
|
<td>$FirstName</td>
|
|
<td>$Surname</td>
|
|
<td>$Email</td>
|
|
</tr>
|
|
<% end_control %>
|
|
|
|
</tbody>
|
|
</table>
|
|
<% end_if %>
|
|
|
|
<% if SentRecipients(Sent) %>
|
|
<h2>Sending to the Following Recipients was Successful</h2>
|
|
<table class="CMSList">
|
|
<thead>
|
|
<tr>
|
|
<th class="Email">Email</th>
|
|
<th>Date</th>
|
|
<th>Result</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<% control SentRecipients(Sent) %>
|
|
<tr id="sent-member-$ID">
|
|
<td>$Email</td>
|
|
<td>$LastEdited</td>
|
|
<td>$Result</td>
|
|
</tr>
|
|
<% end_control %>
|
|
|
|
</tbody>
|
|
</table>
|
|
<% end_if %>
|