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