Commit | Line | Data |
---|---|---|
3ac6e107 | 1 | <div ng-form="crmMailingSubform"> |
88e9e883 | 2 | <div class="crm-block crm-form-block crmMailing"> |
d4182dda | 3 | |
5dd9fc37 TO |
4 | <div crm-mailing-block-summary crm-mailing="mailing"></div> |
5 | <div crm-mailing-block-mailing crm-mailing="mailing"></div> | |
d4182dda TO |
6 | |
7 | <div crm-ui-tab-set> | |
fa061908 | 8 | <div crm-ui-tab id="tab-html" crm-title="ts('HTML')"> |
5dd9fc37 | 9 | <div crm-mailing-body-html crm-mailing="mailing"></div> |
fa061908 TO |
10 | </div> |
11 | <div crm-ui-tab id="tab-text" crm-title="ts('Plain Text')"> | |
5dd9fc37 | 12 | <div crm-mailing-body-text crm-mailing="mailing"></div> |
d4182dda | 13 | </div> |
0d65c1c2 | 14 | <span ng-model="placeholder" crm-ui-validate="mailing.body_html || mailing.body_text"></span> |
d4182dda | 15 | <div crm-ui-tab id="tab-attachment" crm-title="ts('Attachments')"> |
5dd9fc37 | 16 | <div crm-attachments="attachments"></div> |
d4182dda TO |
17 | </div> |
18 | <div crm-ui-tab id="tab-header" crm-title="ts('Header and Footer')"> | |
5dd9fc37 | 19 | <div crm-mailing-block-header-footer crm-mailing="mailing"></div> |
d4182dda TO |
20 | </div> |
21 | <div crm-ui-tab id="tab-pub" crm-title="ts('Publication')"> | |
5dd9fc37 | 22 | <div crm-mailing-block-publication crm-mailing="mailing"></div> |
d4182dda TO |
23 | </div> |
24 | <div crm-ui-tab id="tab-response" crm-title="ts('Responses')"> | |
5dd9fc37 | 25 | <div crm-mailing-block-responses crm-mailing="mailing"></div> |
d4182dda TO |
26 | </div> |
27 | <div crm-ui-tab id="tab-tracking" crm-title="ts('Tracking')"> | |
5dd9fc37 | 28 | <div crm-mailing-block-tracking crm-mailing="mailing"></div> |
d4182dda TO |
29 | </div> |
30 | </div> | |
31 | ||
5dd9fc37 TO |
32 | <div crm-ui-accordion="{title: ts('Preview')}"> |
33 | <div crm-mailing-block-preview crm-mailing="mailing" on-preview="previewMailing(mailing, preview.mode)" on-send="sendTest(mailing, attachments, preview.recipient)"></div> | |
d4182dda TO |
34 | </div> |
35 | ||
5dd9fc37 TO |
36 | <div crm-ui-accordion="{title: ts('Schedule')}"> |
37 | <div crm-mailing-block-schedule crm-mailing="mailing"></div> | |
fa061908 TO |
38 | </div> |
39 | ||
f097283f SL |
40 | <button crm-icon="fa-paper-plane" class="crmMailing-btn-primary" ng-disabled="block.check() || crmMailingSubform.$invalid" ng-click="submit()">{{ts('Submit Mailing')}}</button> |
41 | <button crm-icon="fa-floppy-o" class="crmMailing-btn-secondary-outline" ng-disabled="block.check()" ng-click="save().then(leave)">{{ts('Save Draft')}}</button> | |
0fc156d9 | 42 | <button |
77ec5a8d | 43 | crm-icon="fa-trash" |
0fc156d9 | 44 | ng-show="checkPerm('delete in CiviMail')" |
f097283f | 45 | class="crmMailing-btn-danger-outline" |
0fc156d9 TO |
46 | ng-disabled="block.check()" |
47 | crm-confirm="{title:ts('Delete Draft'), message:ts('Are you sure you want to permanently delete this mailing?')}" | |
48 | on-yes="delete()">{{ts('Delete Draft')}}</button> | |
d4182dda | 49 | </div> |
3ac6e107 | 50 | </div> |