| 1 | <!-- |
| 2 | Controller: EditMailingCtrl |
| 3 | Required vars: mailing, attachments |
| 4 | --> |
| 5 | <div> |
| 6 | <div class="crm-block" ng-form="reviewForm" crm-ui-id-scope> |
| 7 | <div class="crm-group"> |
| 8 | <div crm-ui-field="{title: ts('Mailing Name')}"> |
| 9 | {{mailing.name}} |
| 10 | </div> |
| 11 | <div crm-ui-field="{title: ts('Recipients')}"> |
| 12 | <div ng-controller="ViewRecipCtrl"> |
| 13 | <div ng-controller="EditRecipCtrl"> |
| 14 | <div><a crm-icon="fa-users" class="crm-hover-button action-item" ng-click="previewRecipients()">{{getRecipientCount()}}</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> |
| 21 | </div> |
| 22 | </div> |
| 23 | </div> |
| 24 | <div crm-ui-field="{title: ts('Content')}"> |
| 25 | <span ng-show="mailing.body_html"><a crm-icon="fa-television" class="crm-hover-button action-item" ng-click="previewMailing(mailing, 'html')">{{:: ts('HTML') }}</a></span> |
| 26 | <span ng-show="mailing.body_html || mailing.body_text"><a crm-icon="fa-file-text-o" class="crm-hover-button action-item" ng-click="previewMailing(mailing, 'text')">{{:: ts('Plain Text') }}</a></span> |
| 27 | </div> |
| 28 | <div crm-ui-field="{title: ts('Attachments')}"> |
| 29 | <div ng-repeat="file in attachments.files"> |
| 30 | <a ng-href="{{file.url}}" target="_blank">{{file.name}}</a> |
| 31 | </div> |
| 32 | <div ng-repeat="item in attachments.uploader.queue"> |
| 33 | {{item.file.name}} |
| 34 | </div> |
| 35 | <div ng-show="!attachments.files.length && !attachments.uploader.queue.length"><em>{{:: ts('None') }}</em></div> |
| 36 | </div> |
| 37 | <div ng-if="crmMailingConst.isMultiLingual" crm-ui-field="{title: ts('Language')}"> |
| 38 | {{crmMailingConst.enabledLanguages[mailing.language]}} |
| 39 | </div> |
| 40 | <div crm-ui-field="{title: ts('Tracking')}"> |
| 41 | <span crm-mailing-review-bool crm-on="mailing.url_tracking=='1'" crm-title="ts('Click-Throughs')"></span> |
| 42 | <span crm-mailing-review-bool crm-on="mailing.open_tracking=='1'" crm-title="ts('Opens')"></span> |
| 43 | </div> |
| 44 | <div crm-ui-field="{title: ts('Responding')}"> |
| 45 | <div> |
| 46 | <span crm-mailing-review-bool crm-on="mailing.override_verp=='0'" crm-title="ts('Track Replies')"></span> |
| 47 | <span crm-mailing-review-bool crm-on="mailing.override_verp=='0' && mailing.forward_replies=='1'" crm-title="ts('Forward Replies')"></span> |
| 48 | </div> |
| 49 | <div ng-controller="PreviewComponentCtrl"> |
| 50 | <span ng-show="mailing.override_verp == '0' && mailing.auto_responder"><a crm-icon="fa-envelope" class="crm-hover-button action-item" ng-click="previewComponent(ts('Auto-Respond'), mailing.reply_id)">{{:: ts('Auto-Respond') }}</a></span> |
| 51 | <span><a crm-icon="fa-envelope" class="crm-hover-button action-item" ng-click="previewComponent(ts('Opt-out'), mailing.optout_id)">{{:: ts('Opt-out') }}</a></span> |
| 52 | <span><a crm-icon="fa-envelope" class="crm-hover-button action-item" ng-click="previewComponent(ts('Resubscribe'), mailing.resubscribe_id)">{{:: ts('Resubscribe') }}</a></span> |
| 53 | <span><a crm-icon="fa-envelope" class="crm-hover-button action-item" ng-click="previewComponent(ts('Unsubscribe'), mailing.unsubscribe_id)">{{:: ts('Unsubscribe') }}</a></span> |
| 54 | </div> |
| 55 | </div> |
| 56 | <div crm-ui-field="{title: ts('Publication')}"> |
| 57 | {{mailing.visibility}} |
| 58 | </div> |
| 59 | </div> |
| 60 | </div> |
| 61 | </div> |