2 Controller: EditMailingCtrl
3 Required vars: mailing, crmMailingConst
4 FIXME: Don't hardcode table-based layout!
6 <table class=
"form-layout-compressed" style=
"background: #bbf; width:100%;">
10 <label crm-ui-label
crm-for=
"msg_template_id">{{ts('Template')}}
</label>
12 <td ng-include=
"partialUrl('field/msg_template_id.html')">
17 <table class=
"form-layout-compressed">
21 <label crm-ui-label
crm-for=
"fromAddress">{{ts('From')}}
</label>
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>
37 <label crm-ui-label
crm-for=
"replyTo">{{ts('Reply-To')}}
</label>
43 ui-options=
"{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Email address')}"
44 ng-model=
"mailing.replyto_email"
45 ng-options=
"frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
47 <option value=
""></option>
53 <label crm-ui-label
crm-for=
"recipients">{{ts('Recipients')}}
</label>
55 <td ng-include=
"partialUrl('field/recipients.html')">
60 <label crm-ui-label
crm-for=
"subject">{{ts('Subject')}}
</label>
63 <div style=
"float: right;">
64 <input crm-mailing-token
crm-for=
"subject" />
69 ng-model=
"mailing.subject"