from: _.where(CRM.crmMailing.fromAddress, {is_default: "1"})[0].label,
replyto_email: "",
subject: "",
+ body_html: "",
+ body_text: "",
visibility: "Public Pages",
url_tracking: "1",
dedupe_email: "1",
<div ng-include="partialUrl('summary.html')"/>
<div ng-include="partialUrl('mailing.html')" />
+ <div crm-ui-accordion crm-title="ts('HTML')">
+ <div ng-include="partialUrl('field/body_html.html')" />
+ </div>
+ <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='true'>
+ <div ng-include="partialUrl('field/body_text.html')" />
+ </div>
+
<div crm-ui-tab-set>
<div crm-ui-tab id="tab-schedule" crm-title="ts('Schedule')">
<div ng-include="partialUrl('schedule.html')" />
<div crm-ui-wizard-step crm-title="ts('Content')">
<div ng-include="partialUrl('mailing.html')" />
+ <div crm-ui-accordion crm-title="ts('HTML')">
+ <div ng-include="partialUrl('field/body_html.html')" />
+ </div>
+ <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='true'>
+ <div ng-include="partialUrl('field/body_text.html')" />
+ </div>
<div crm-ui-accordion crm-title="ts('Header and Footer')" crm-collapsed="true">
<div ng-include="partialUrl('headerFooter.html')" />
</div>
<div crm-ui-tab-set>
<div crm-ui-tab id="tab-mailing" crm-title="ts('Mailing')">
<div ng-include="partialUrl('mailing.html')" />
+ <div crm-ui-accordion crm-title="ts('HTML')">
+ <div ng-include="partialUrl('field/body_html.html')" />
+ </div>
+ <div crm-ui-accordion crm-title="ts('Plain Text')" crm-collapsed='true'>
+ <div ng-include="partialUrl('field/body_text.html')" />
+ </div>
</div>
<div crm-ui-tab id="tab-attachment" crm-title="ts('Attachments')">
<div ng-include="partialUrl('attachments.html')" />
--- /dev/null
+This directory contains templates for various fields. This is a work-around
+for the 4.x series -- in the 5.x series, these files should be replaced by
+either (a) metadata-driven autowiring or (b) new directives.
--- /dev/null
+<!--
+Controller: EditMailingCtrl
+Required vars: mailing, crmMailingConst
+-->
+<div style="float: right;">
+ <input crm-mailing-token crm-for="body_html" />
+</div>
+
+<textarea name="body_html" ng-model="mailing.body_html"></textarea>
\ No newline at end of file
--- /dev/null
+<!--
+Controller: EditMailingCtrl
+Required vars: mailing, crmMailingConst
+-->
+<div style="float: right;">
+ <input crm-mailing-token crm-for="body_text" />
+</div>
+<textarea name="body_text" ng-model="mailing.body_text"></textarea>
\ No newline at end of file