2 Controller: EditMailingCtrl
3 Required vars: mailing, crmMailingConst
5 <div class=
"crm-block" ng-form=
"subform" crm-ui-id-scope
>
6 <div class=
"crm-group">
7 <div crm-ui-field=
"subform.msg_template_id" crm-title=
"ts('Template')" style=
"background: #bbf; width:100%; padding: 0.1em;">
8 <div ng-controller=
"MsgTemplateCtrl">
10 crm-ui-id=
"subform.msg_template_id"
11 name=
"msg_template_id"
12 crm-ui-select=
"{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Message Template')}"
13 ng-model=
"mailing.msg_template_id"
14 ng-change=
"loadTemplate(mailing, mailing.msg_template_id)"
16 <option value=
""></option>
17 <option ng-repeat=
"frm in crmMsgTemplates.getAll() | orderBy:'msg_title'" ng-value=
"frm.id">{{frm.msg_title}}
</option>
19 <a ng-click=
"saveTemplate(mailing)" class=
"crm-hover-button action-item" title=
"{{ts('Save As')}}"><span class=
"icon ui-icon-disk"></span></a>
22 <div crm-ui-field=
"subform.fromAddress" crm-title=
"ts('From')">
23 <div ng-controller=
"EmailAddrCtrl" crm-mailing-from-address=
"fromPlaceholder" crm-mailing=
"mailing">
25 crm-ui-id=
"subform.fromAddress"
28 ui-options=
"{dropdownAutoWidth : true, allowClear: false, placeholder: ts('Email address')}"
29 ng-model=
"fromPlaceholder.label"
30 ng-options=
"frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
32 <option value=
""></option>
36 <div crm-ui-field=
"subform.replyTo" crm-title=
"ts('Reply-To')" ng-show=
"crmMailingConst.enableReplyTo">
37 <div ng-controller=
"EmailAddrCtrl">
39 crm-ui-id=
"subform.replyTo"
42 ui-options=
"{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Email address')}"
43 ng-model=
"mailing.replyto_email"
44 ng-options=
"frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
46 <option value=
""></option>
50 <div crm-ui-field=
"subform.recipients" crm-title=
"ts('Recipients')">
51 <div ng-controller=
"EditRecipCtrl">
52 <div style=
"float: right;">
53 <div class='crmMailing2-recip-est'
>
54 <a href=
"" ng-click=
"previewRecipients()">{{getRecipientsEstimate()}}
</a>
57 <input name='dedupe_email' type='checkbox' ng-model='mailing.dedupe_email'
ng-true-value=
"1" ng-false-value=
"0" id=
"recipients-dedupe-email" />
58 <label for=
"recipients-dedupe-email">
63 <select crm-mailing-recipients
65 crm-avail-groups=
"crmMailingConst.groupNames | filter:{visibility:'Public pages'}"
66 crm-avail-mailings=
"crmMailingConst.civiMails | filter:{is_completed:1}"
68 crm-ui-id=
"subform.recipients"
74 <div crm-ui-field=
"subform.subject" crm-title=
"ts('Subject')">
75 <div style=
"float: right;">
76 <input crm-mailing-token
crm-for=
"subject" />
79 crm-ui-id=
"subform.subject"
82 ng-model=
"mailing.subject"