Commit | Line | Data |
---|---|---|
47bacc20 TO |
1 | <!-- |
2 | Controller: EditMailingCtrl | |
3 | Required vars: mailing | |
4 | --> | |
5 | <div> | |
f8601d61 | 6 | <div class="crm-block" ng-form="reviewForm" crm-ui-id-scope> |
47bacc20 | 7 | <div class="crm-group"> |
c4256f35 | 8 | <div crm-ui-field="{title: ts('Mailing Name')}"> |
47bacc20 TO |
9 | {{mailing.name}} |
10 | </div> | |
c4256f35 | 11 | <div crm-ui-field="{title: ts('Recipients')}"> |
deea897f TO |
12 | <div ng-controller="ViewRecipCtrl"> |
13 | <div ng-controller="EditRecipCtrl"> | |
14 | <div><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewRecipients()">{{getRecipientsEstimate()}}</a></div> | |
15 | <div ng-show="getIncludesAsString(mailing)"> | |
16 | (<strong>{{ts('Include:')}}</strong> {{getIncludesAsString(mailing)}}) | |
17 | </div> | |
18 | <div ng-show="getExcludesAsString(mailing)"> | |
19 | (<strong>{{ts('Exclude:')}}</strong> <s>{{getExcludesAsString(mailing)}}</s>) | |
20 | </div> | |
47bacc20 TO |
21 | </div> |
22 | </div> | |
23 | </div> | |
c4256f35 | 24 | <div crm-ui-field="{title: ts('Content')}"> |
3e5e512f | 25 | <span ng-show="mailing.body_html"><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewMailing(mailing, 'html')">{{ts('HTML')}}</a></span> |
bf5ba10f | 26 | <span ng-show="mailing.body_html || mailing.body_text"><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewMailing(mailing, 'text')">{{ts('Plain Text')}}</a></span> |
58dfba8d | 27 | <!-- TODO: attachments --> |
47bacc20 | 28 | </div> |
c4256f35 | 29 | <div crm-ui-field="{title: ts('Attachments')}" ng-show="attachments.files.length > 0 || attachments.uploader.queue.length > 0"> |
db083bf0 TO |
30 | <div ng-repeat="file in attachments.files"> |
31 | <a ng-href="{{file.url}}" target="_blank">{{file.name}}</a> | |
32 | </div> | |
33 | <div ng-repeat="item in attachments.uploader.queue"> | |
34 | {{item.file.name}} | |
35 | </div> | |
36 | </div> | |
c4256f35 | 37 | <div crm-ui-field="{title: ts('Tracking')}"> |
47bacc20 TO |
38 | <span crm-mailing-review-bool crm-on="mailing.url_tracking=='1'" crm-title="ts('Click Throughs')"></span> |
39 | <span crm-mailing-review-bool crm-on="mailing.open_tracking=='1'" crm-title="ts('Opens')"></span> | |
40 | </div> | |
c4256f35 | 41 | <div crm-ui-field="{title: ts('Responding')}"> |
47bacc20 TO |
42 | <div> |
43 | <span crm-mailing-review-bool crm-on="mailing.override_verp=='0'" crm-title="ts('Track Replies')"></span> | |
44 | <span crm-mailing-review-bool crm-on="mailing.override_verp=='0' && mailing.forward_replies=='1'" crm-title="ts('Forward Replies')"></span> | |
45 | </div> | |
46 | <div ng-controller="PreviewComponentCtrl"> | |
3e5e512f CW |
47 | <span ng-show="mailing.override_verp == '0' && mailing.auto_responder"><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewComponent(ts('Auto-Respond'), mailing.reply_id)">{{ts('Auto-Respond')}}</a></span> |
48 | <span><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewComponent(ts('Opt-out'), mailing.optout_id)">{{ts('Opt-out')}}</a></span> | |
49 | <span><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewComponent(ts('Resubscribe'), mailing.resubscribe_id)">{{ts('Resubscribe')}}</a></span> | |
50 | <span><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewComponent(ts('Unsubscribe'), mailing.unsubscribe_id)">{{ts('Unsubscribe')}}</a></span> | |
47bacc20 TO |
51 | </div> |
52 | </div> | |
c4256f35 | 53 | <div crm-ui-field="{title: ts('Publication')}"> |
47bacc20 TO |
54 | {{mailing.visibility}} |
55 | </div> | |
56 | </div> | |
57 | </div> | |
58 | </div> |