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.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()" 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')">
24 crm-ui-id=
"subform.fromAddress"
27 ui-options=
"{dropdownAutoWidth : true, allowClear: false, placeholder: ts('Email address')}"
28 ng-model=
"fromPlaceholder.label"
29 ng-options=
"frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
31 <option value=
""></option>
34 <div crm-ui-field=
"subform.replyTo" crm-title=
"ts('Reply-To')" ng-show=
"crmMailingConst.enableReplyTo">
36 crm-ui-id=
"subform.replyTo"
39 ui-options=
"{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Email address')}"
40 ng-model=
"mailing.replyto_email"
41 ng-options=
"frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
43 <option value=
""></option>
46 <div crm-ui-field=
"subform.recipients" crm-title=
"ts('Recipients')">
47 <div ng-controller=
"EditRecipCtrl">
48 <div style=
"float: right;">
49 <div class='crmMailing2-recip-est'
>
50 <a href=
"" ng-click=
"previewRecipients()">{{getRecipientsEstimate()}}
</a>
53 <input name='dedupe_email' type='checkbox' ng-model='mailing.dedupe_email'
ng-true-value=
"1" ng-false-value=
"0" id=
"recipients-dedupe-email" />
54 <label for=
"recipients-dedupe-email">
59 <select crm-mailing-recipients
61 crm-avail-groups=
"crmMailingConst.groupNames | filter:{visibility:'Public pages'}"
62 crm-avail-mailings=
"crmMailingConst.civiMails | filter:{is_completed:1}"
64 crm-ui-id=
"subform.recipients"
70 <div crm-ui-field=
"subform.subject" crm-title=
"ts('Subject')">
71 <div style=
"float: right;">
72 <input crm-mailing-token
crm-for=
"subject" />
75 crm-ui-id=
"subform.subject"
78 ng-model=
"mailing.subject"