1 <div crm-ui-accordion
crm-title=
"ts('Debug')" crm-collapsed=
"true">
2 <pre>{{mailing|json}}
</pre>
5 <div ng-show=
"isSubmitted()">
6 {{ts('This mailing has been submitted.')}}
9 <form name=
"crmMailing" novalidate
ng-hide=
"isSubmitted()" crm-autosave=
"save()" crm-autosave-model=
"[mailing, attachments.getAutosaveSignature()]" crm-autosave-if=
"true">
11 <div class=
"crm-block crm-form-block crmMailing">
13 <div crm-ui-wizard-step
crm-title=
"ts('Define Mailing')" ng-form=
"defineForm">
15 <div crm-ui-tab
id=
"tab-mailing" crm-title=
"ts('Mailing')">
16 <div crm-mailing-block-summary
crm-mailing=
"mailing"/>
17 <div crm-mailing-block-mailing
crm-mailing=
"mailing"/>
18 <div crm-ui-accordion
crm-title=
"ts('HTML')">
19 <div crm-mailing-body-html
crm-mailing=
"mailing"/>
21 <div crm-ui-accordion
crm-title=
"ts('Plain Text')" crm-collapsed='true'
>
22 <div crm-mailing-body-text
crm-mailing=
"mailing"/>
24 <span ng-model=
"placeholder" crm-ui-validate=
"mailing.body_html || mailing.body_text"></span>
26 <div crm-ui-tab
id=
"tab-attachment" crm-title=
"ts('Attachments')">
27 <div crm-attachments=
"attachments"/>
29 <div crm-ui-tab
id=
"tab-header" crm-title=
"ts('Header and Footer')">
30 <div crm-mailing-block-header-footer
crm-mailing=
"mailing"/>
32 <div crm-ui-tab
id=
"tab-pub" crm-title=
"ts('Publication')">
33 <div crm-mailing-block-publication
crm-mailing=
"mailing"/>
35 <div crm-ui-tab
id=
"tab-response" crm-title=
"ts('Responses')">
36 <div crm-mailing-block-responses
crm-mailing=
"mailing"/>
38 <div crm-ui-tab
id=
"tab-tracking" crm-title=
"ts('Tracking')">
39 <div crm-mailing-block-tracking
crm-mailing=
"mailing"/>
42 <div crm-ui-accordion
crm-title=
"ts('Preview')">
43 <div crm-mailing-block-preview
crm-mailing=
"mailing" on-preview=
"previewMailing(mailing, preview.mode)" on-send=
"sendTest(mailing, attachments, preview.recipient)" />
46 <div crm-ui-wizard-step
crm-title=
"ts('Review and Schedule')" ng-form=
"reviewForm">
47 <div crm-ui-accordion
crm-title=
"ts('Review')">
48 <div crm-mailing-block-review
crm-mailing=
"mailing"/>
50 <div crm-ui-accordion
crm-title=
"ts('Schedule')">
51 <div crm-mailing-block-schedule
crm-mailing=
"mailing"/>
54 <a class=
"crmMailing-submit-button" ng-click=
"submit()" ng-class=
"{disabled: block.check() || crmMailing.$invalid}">
55 <div>{{ts('Submit Mailing')}}
</div>
60 <span crm-ui-wizard-buttons
style=
"float:right;">
61 <button ng-disabled=
"block.check()" crm-confirm=
"{title:ts('Delete Draft?'), message:ts('Are you sure you want to delete the draft mailing?')}" on-yes=
"delete()">{{ts('Delete Draft')}}
</button>
62 <button ng-disabled=
"block.check()" ng-click=
"save().then(leave)">{{ts('Save Draft')}}
</button>