Merge pull request #17348 from eileenmcnaughton/payex
[civicrm-core.git] / ang / crmMailing / EmailBodyCtrl / tokenAlert.html
1 <p ng-show="missing['domain.address']">
2 {{ts('The mailing must include the street address of the organization. Please insert the %1 token.', {1:
3 '{domain.address}'})}}
4 </p>
5
6 <div ng-show="missing['domain.address'] && insertable">
7 <a ng-click="insertToken('domain.address')" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {{:: ts('Address') }}</span></a>
8
9 <div class="clear"></div>
10 </div>
11
12 <p ng-show="missing['action.optOut']">
13 {{:: ts('The mailing must allow recipients to (a) unsubscribe from the mailing-list or (b) completely opt-out from all mailings. Please insert an unsubscribe or opt-out token.') }}
14 </p>
15
16 <div ng-show="missing['action.optOut'] && insertable">
17 <table>
18 <thead>
19 <tr>
20 <th>{{:: ts('Via Web') }}</th>
21 <th>{{:: ts('Via Email') }}</th>
22 </tr>
23 </thead>
24 <tbody>
25 <tr>
26 <td>
27 <a ng-click="insertToken('action.unsubscribeUrl')" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {{:: ts('Unsubscribe') }}</span></a>
28 </td>
29 <td>
30 <a ng-click="insertToken('action.unsubscribe')" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {{:: ts('Unsubscribe') }}</span></a>
31 </td>
32 </tr>
33 <tr>
34 <td>
35 <a ng-click="insertToken('action.optOutUrl')" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {{:: ts('Opt-out') }}</span></a>
36 </td>
37 <td>
38 <a ng-click="insertToken('action.optOut')" class="button"><span><i class="crm-i fa-plus-circle" aria-hidden="true"></i> {{:: ts('Opt-out') }}</span></a>
39 </td>
40 </tr>
41 </tbody>
42 </table>
43 </div>
44
45 <div ng-show="missing['action.optOut'] && !insertable">
46 <table>
47 <thead>
48 <tr>
49 <th>{{:: ts('Via Web') }}</th>
50 <th>{{:: ts('Via Email') }}</th>
51 </tr>
52 </thead>
53 <tbody>
54 <tr>
55 <td>
56 {action.optOutUrl}
57 </td>
58 <td>
59 {action.optOut}
60 </td>
61 </tr>
62 <tr>
63 <td>
64 {action.unsubscribeUrl}
65 </td>
66 <td>
67 {action.unsubscribe}
68 </td>
69 </tr>
70 </tbody>
71 </table>
72 </div>
73
74 <p>
75 {{:: ts('Alternatively, you may select a header or footer which includes the required tokens.') }}
76 </p>