Commit | Line | Data |
---|---|---|
3ac6e107 | 1 | <div ng-form="crmMailingSubform"> |
c0e89319 TO |
2 | <div class="crm-block crm-form-block crmMailing"> |
3 | ||
4 | <div crm-ui-wizard> | |
5 | ||
360d6097 | 6 | <div crm-ui-wizard-step="10" crm-title="ts('Content')" ng-form="contentForm" ng-if="checkPerm('create mailings') || checkPerm('access CiviMail')"> |
4281f88d TO |
7 | <div crm-mailing-block-summary crm-mailing="mailing"></div> |
8 | <div crm-mailing-block-mailing crm-mailing="mailing"></div> | |
9 | <div crm-ui-accordion="{title: ts('HTML'), help: hs('html')}"> | |
10 | <div crm-mailing-body-html crm-mailing="mailing"></div> | |
c0e89319 | 11 | </div> |
207819ec | 12 | <div crm-ui-accordion="{title: ts('Plain Text'), collapsed: !mailing.body_text, help: hs('text')}"> |
4281f88d | 13 | <div crm-mailing-body-text crm-mailing="mailing"></div> |
c0e89319 TO |
14 | </div> |
15 | <span ng-model="placeholder" crm-ui-validate="mailing.body_html || mailing.body_text"></span> | |
207819ec | 16 | <div crm-ui-accordion="{title: ts('Header and Footer'), collapsed: true}"> |
4281f88d | 17 | <div crm-mailing-block-header-footer crm-mailing="mailing"></div> |
c0e89319 | 18 | </div> |
207819ec | 19 | <div crm-ui-accordion="{title: ts('Attachments'), collapsed: true}"> |
4281f88d | 20 | <div crm-attachments="attachments"></div> |
c0e89319 | 21 | </div> |
4281f88d TO |
22 | <div crm-ui-accordion="{title: ts('Preview')}"> |
23 | <div crm-mailing-block-preview crm-mailing="mailing" on-preview="previewMailing(mailing, preview.mode)" on-send="sendTest(mailing, attachments, preview.recipient)"></div> | |
c0e89319 TO |
24 | </div> |
25 | </div> | |
26 | ||
360d6097 | 27 | <div crm-ui-wizard-step="20" crm-title="ts('Options')" ng-form="optionsForm" ng-if="checkPerm('create mailings') || checkPerm('access CiviMail')"> |
207819ec | 28 | <div crm-ui-accordion="{title: ts('Responses'), collapsed: true}"> |
4281f88d | 29 | <div crm-mailing-block-responses crm-mailing="mailing"></div> |
c0e89319 | 30 | </div> |
207819ec | 31 | <div crm-ui-accordion="{title: ts('Tracking'), collapsed: true}"> |
4281f88d | 32 | <div crm-mailing-block-tracking crm-mailing="mailing"></div> |
c0e89319 | 33 | </div> |
207819ec | 34 | <div crm-ui-accordion="{title: ts('Publication'), collapsed: true}"> |
4281f88d | 35 | <div crm-mailing-block-publication crm-mailing="mailing"></div> |
c0e89319 TO |
36 | </div> |
37 | </div> | |
38 | ||
360d6097 | 39 | <div crm-ui-wizard-step="40" crm-title="ts('Review')" ng-form="schedForm" ng-if="checkPerm('schedule mailings') || checkPerm('access CiviMail')"> |
4281f88d TO |
40 | <div crm-ui-accordion="{title: ts('Review')}"> |
41 | <div crm-mailing-block-review crm-mailing="mailing" crm-mailing-attachments="attachments"></div> | |
c0e89319 | 42 | </div> |
4281f88d TO |
43 | <div crm-ui-accordion="{title: ts('Schedule')}"> |
44 | <div crm-mailing-block-schedule crm-mailing="mailing"></div> | |
c0e89319 | 45 | </div> |
4281f88d TO |
46 | <div crm-ui-accordion="{title: ts('Approval')}" ng-if="checkPerm('approve mailings') || checkPerm('access CiviMail')"> |
47 | <div crm-mailing-block-approve crm-mailing="mailing"></div> | |
c0e89319 | 48 | </div> |
360d6097 | 49 | <center ng-if="!checkPerm('approve mailings') && !checkPerm('access CiviMail')"> |
f097283f | 50 | <a class="button crmMailing-submit-button crmMailing-btn-primary" ng-click="submit()" ng-class="{blocking: block.check(), disabled: crmMailingSubform.$invalid}"> |
c0e89319 TO |
51 | <div>{{ts('Submit Mailing')}}</div> |
52 | </a> | |
53 | </center> | |
360d6097 | 54 | <center ng-if="checkPerm('approve mailings') || checkPerm('access CiviMail')"> |
f097283f | 55 | <a class="button crmMailing-submit-button crmMailing-btn-primary" ng-click="approve('Approved')" ng-class="{blocking: block.check(), disabled: crmMailingSubform.$invalid}"> |
c0e89319 TO |
56 | <div>{{ts('Submit and Approve Mailing')}}</div> |
57 | </a> | |
58 | </center> | |
59 | </div> | |
60 | ||
61 | <span crm-ui-wizard-buttons style="float:right;"> | |
0fc156d9 | 62 | <button |
77ec5a8d | 63 | crm-icon="fa-trash" |
0fc156d9 | 64 | ng-show="checkPerm('delete in CiviMail')" |
f097283f | 65 | class="crmMailing-btn-danger-outline" |
0fc156d9 TO |
66 | ng-disabled="block.check()" |
67 | crm-confirm="{title:ts('Delete Draft'), message:ts('Are you sure you want to permanently delete this mailing?')}" | |
68 | on-yes="delete()">{{ts('Delete Draft')}}</button> | |
61cf3b47 | 69 | <button crm-icon="fa-floppy-o" ng-disabled="block.check()" ng-click="save().then(leave)" class="crmMailing-btn-secondary-outline">{{ts('Save Draft')}}</button> |
c0e89319 TO |
70 | </span> |
71 | </div> | |
72 | </div> | |
3ac6e107 | 73 | </div> |