Merge pull request #17358 from seamuslee001/d8_prevnext_cache_test_fix
[civicrm-core.git] / ang / crmMailing / PreviewRecipCtrl.html
1 <div ng-controller="PreviewRecipCtrl">
2 <!--
3 Controller: PreviewRecipCtrl
4 Required vars: model.sample
5 -->
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">
16 {{:: ts('No recipients') }}
17 </div>
18 <table ng-show="model.sample.length > 0">
19 <thead>
20 <tr>
21 <th>{{:: ts('Name') }}</th>
22 <th>{{:: ts('Email') }}</th>
23 </tr>
24 </thead>
25 <tbody>
26 <tr ng-repeat="recipient in model.sample">
27 <td>{{recipient['api.contact.getvalue']}}</td>
28 <td>{{recipient['api.email.getvalue']}}</td>
29 </tr>
30 </tbody>
31 </table>
32 </div>