Move to sane directory structure. Don't make 'cms' the top level of the silverstripe...
[silverstripe-elijah.git] / templates / Newsletter_SentStatusReport.ss
blob5eb8f156be0c4d09caecc47a300e4ce7f5bea6e3
1 <% if SentRecipients(Failed) %>
2         <h2 class="error" style="width:auto;">Sending to the Following Recipients Failed</h2>
3         <table class="CMSList">
4                 <thead>
5                         <tr>
6                                 <th class="Email" style="width:33%">Email</th>
7                                 <th>Date</th>
8                                 <th>Result</th>
9                         </tr>
10                 </thead>
11                 <tbody>
12                         <% control SentRecipients(Failed) %>
13                         <tr>
14                                 <td>$Email</td>
15                                 <td>$LastEdited</td>
16                                 <td>$Result</td>
17                         </tr>
18                         <% end_control %>
19                         
20                 </tbody>
21         </table>
22 <% end_if %>
24 <% if SentRecipients(Bounced) %>
25         <h2 class="error" style="width:auto;">Sending to the Following Recipients Bounced</h2>
27         <table class="CMSList">
28                 <thead>
29                         <tr>
30                                 <th class="Email" style="width:33%">Email</th>
31                                 <th>Date</th>
32                                 <th>Result</th>
33                         </tr>
34                 </thead>
35                 
36                 <tbody>
37                         <% control SentRecipients(Bounced) %>
38                         <tr>
39                                 <td>$Email</td>
40                                 <td>$LastEdited</td>
41                                 <td>$Result</td>
42                         </tr>
43                         <% end_control %>
44                         
45                 </tbody>
46         </table>
47 <% end_if %>
49 <% if SentRecipients(BlackListed) %>
50         <h2 class="error" style="width:auto;">Sending to the Following Recipients Did Not Occur Because They Are BlackListed</h2>
52         <table class="CMSList">
53                 <thead>
54                         <tr>
55                                 <th class="Email" style="width:33%">Email</th>
56                                 <th>Date</th>
57                                 <th>Result</th>
58                         </tr>
59                 </thead>
60                 
61                 <tbody>
62                         <% control SentRecipients(BlackListed) %>
63                         <tr>
64                                 <td>$Email</td>
65                                 <td>$LastEdited</td>
66                                 <td>$Result</td>
67                         </tr>
68                         <% end_control %>
69                         
70                 </tbody>
71         </table>
72 <% end_if %>
74 <% if UnsentSubscribers %>
75         <h2>The Newsletter has Never Been Sent to Following Subscribers</h2>
76         <table class="CMSList">
77                 <thead>
78                         <tr>
79                                 <th class="Email" style="width:33%">Email</th>
80                                 <th class="FirstName">Firstname</th>
81                                 <th class="Surname">Surname</th>
82                         </tr>
83                 </thead>
84                 
85                 <tbody>
86                         <% control UnsentSubscribers %>
87                         <tr id="unsent-member-$ID">
88                                 <td>$Email</td>
89                                 <td>$FirstName</td>
90                                 <td>$Surname</td>
91                         </tr>
92                         <% end_control %>
93                         
94                 </tbody>
95         </table>
96 <% end_if %>
98 <% if SentRecipients(Sent) %>
99         <h2>Sending to the Following Recipients was Successful</h2>
100         <table class="CMSList">
101                 <thead>
102                         <tr>
103                                 <th class="Email" style="width:33%">Email</th>
104                                 <th>Date</th>
105                                 <th>Result</th>
106                         </tr>
107                 </thead>
108                 
109                 <tbody>
110                         <% control SentRecipients(Sent) %>
111                         <tr id="sent-member-$ID">
112                                 <td>$Email</td>
113                                 <td>$LastEdited</td>
114                                 <td>$Result</td>
115                         </tr>
116                         <% end_control %>
117                         
118                 </tbody>
119         </table>
120 <% end_if %>