| 1 | <!-- |
| 2 | Controller: EditMailingCtrl |
| 3 | Required vars: mailing, crmMailingConst |
| 4 | --> |
| 5 | <div class="crm-block" ng-form="subform" crm-ui-id-scope> |
| 6 | <div class="crm-group" ng-controller="EmailBodyCtrl"> |
| 7 | <div crm-ui-field="{name: 'subform.header_id', title: ts('Mailing Header'), help: hs('header')}"> |
| 8 | <select |
| 9 | crm-ui-id="subform.header_id" |
| 10 | name="header_id" |
| 11 | ui-jq="select2" |
| 12 | ui-options="{dropdownAutoWidth : true, allowClear: true}" |
| 13 | ng-change="checkTokens(mailing, '*')" |
| 14 | ng-model="mailing.header_id" |
| 15 | ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Header'} | orderBy:'name'"> |
| 16 | <option value=""></option> |
| 17 | </select> |
| 18 | </div> |
| 19 | <div crm-ui-field="{name: 'subform.footer_id', title: ts('Mailing Footer'), help: hs('footer')}"> |
| 20 | <select |
| 21 | crm-ui-id="subform.footer_id" |
| 22 | name="footer_id" |
| 23 | ui-jq="select2" |
| 24 | ui-options="{dropdownAutoWidth : true, allowClear: true}" |
| 25 | ng-change="checkTokens(mailing, '*')" |
| 26 | ng-model="mailing.footer_id" |
| 27 | ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Footer'} | orderBy:'name'"> |
| 28 | <option value=""></option> |
| 29 | </select> |
| 30 | </div> |
| 31 | </div> |
| 32 | </div> |