Commit | Line | Data |
---|---|---|
7801d9b5 TO |
1 | <div ng-controller="PreviewRecipCtrl"> |
2 | <!-- | |
3 | Controller: PreviewRecipCtrl | |
a670e04e | 4 | Required vars: model.sample |
7801d9b5 | 5 | --> |
a670e04e TO |
6 | |
7 | <div class="help"> | |
8 | <p>{{ts('Based on current data, approximately %1 contacts will receive a copy of the mailing.', {1: model.count})}}</p> | |
9 | ||
10 | <p ng-show="model.sample.length == model.sampleLimit">{{ts('Below is a sample of the first %1 recipients.', {1: model.sampleLimit})}}</p> | |
11 | ||
12 | <p>{{ts('If individual contacts are separately modified, added, or removed, then the final list may change.')}}</p> | |
13 | </div> | |
14 | ||
15 | <div ng-show="model.sample == 0"> | |
7801d9b5 TO |
16 | {{ts('No recipients')}} |
17 | </div> | |
a670e04e | 18 | <table ng-show="model.sample.length > 0"> |
7801d9b5 TO |
19 | <thead> |
20 | <tr> | |
21 | <th>{{ts('Name')}}</th> | |
22 | <th>{{ts('Email')}}</th> | |
23 | </tr> | |
24 | </thead> | |
25 | <tbody> | |
a670e04e | 26 | <tr ng-repeat="recipient in model.sample"> |
7801d9b5 TO |
27 | <td>{{recipient['api.contact.getvalue']}}</td> |
28 | <td>{{recipient['api.email.getvalue']}}</td> | |
29 | </tr> | |
30 | </tbody> | |
31 | </table> | |
32 | </div> |