| 1 | <!-- |
| 2 | Controller: EditMailingCtrl |
| 3 | Required vars: mailing, crmMailingConst |
| 4 | --> |
| 5 | |
| 6 | <div class="crm-block"> |
| 7 | <div class="crm-group"> |
| 8 | <div crm-ui-field="msg_template_id" crm-title="ts('Template')" style="background: #bbf; width:100%; padding: 0.1em;"> |
| 9 | <div> |
| 10 | <div ng-include="partialUrl('field/msg_template_id.html')"></div> |
| 11 | </div> |
| 12 | </div> |
| 13 | <div crm-ui-field="fromAddress" crm-title="ts('From')"> |
| 14 | <select |
| 15 | name="fromAddress" |
| 16 | ui-jq="select2" |
| 17 | ui-options="{dropdownAutoWidth : true, allowClear: false, placeholder: ts('Email address')}" |
| 18 | ng-model="fromPlaceholder.label" |
| 19 | ng-options="frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'" |
| 20 | required> |
| 21 | <option value=""></option> |
| 22 | </select> |
| 23 | </div> |
| 24 | <div crm-ui-field="replyTo" crm-title="ts('Reply-To')"> |
| 25 | <select |
| 26 | name="replyTo" |
| 27 | ui-jq="select2" |
| 28 | ui-options="{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Email address')}" |
| 29 | ng-model="mailing.replyto_email" |
| 30 | ng-options="frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'" |
| 31 | > |
| 32 | <option value=""></option> |
| 33 | </select> |
| 34 | </div> |
| 35 | <div crm-ui-field="recipients" crm-title="ts('Recipients')"> |
| 36 | <div> |
| 37 | <div ng-include="partialUrl('field/recipients.html')"></div> |
| 38 | </div> |
| 39 | </div> |
| 40 | <div crm-ui-field="subject" crm-title="ts('Subject')"> |
| 41 | <div style="float: right;"> |
| 42 | <input crm-mailing-token crm-for="subject" /> |
| 43 | </div> |
| 44 | <input |
| 45 | type="text" |
| 46 | class="crm-form-text" |
| 47 | ng-model="mailing.subject" |
| 48 | required |
| 49 | placeholder="Subject" |
| 50 | name="subject" /> |
| 51 | </div> |
| 52 | </div> |
| 53 | </div> |