<span ng-controller="EmailAddrCtrl" crm-mailing-from-address="fromPlaceholder" crm-mailing="abtest.mailings.a">
<select
crm-ui-id="subform.fromAddress"
+ crm-ui-select="{dropdownAutoWidth : true, allowClear: false, placeholder: ts('Email address')}"
name="fromAddress"
- ui-jq="select2"
- ui-options="{dropdownAutoWidth : true, allowClear: false, placeholder: ts('Email address')}"
ng-model="fromPlaceholder.label"
- ng-options="frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
required>
<option value=""></option>
+ <option ng-repeat="frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'" value="{{frm.label}}">{{frm.label}}</option>
</select>
</span>
</div>
<span ng-controller="EmailAddrCtrl" crm-mailing-from-address="fromPlaceholder" crm-mailing="abtest.mailings.a">
<select
crm-ui-id="subform.fromAddressA"
+ crm-ui-select="{dropdownAutoWidth : true, allowClear: false, placeholder: ts('Email address')}"
name="fromAddressA"
- ui-jq="select2"
- ui-options="{dropdownAutoWidth : true, allowClear: false, placeholder: ts('Email address')}"
ng-model="fromPlaceholder.label"
- ng-options="frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
required>
<option value=""></option>
+ <option ng-repeat="frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'" value="{{frm.label}}">{{frm.label}}</option>
</select>
</span>
</div>
<span ng-controller="EmailAddrCtrl" crm-mailing-from-address="fromPlaceholder" crm-mailing="abtest.mailings.b">
<select
crm-ui-id="subform.fromAddressB"
+ crm-ui-select="{dropdownAutoWidth : true, allowClear: false, placeholder: ts('Email address')}"
name="fromAddressB"
- ui-jq="select2"
- ui-options="{dropdownAutoWidth : true, allowClear: false, placeholder: ts('Email address')}"
ng-model="fromPlaceholder.label"
- ng-options="frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
required>
<option value=""></option>
+ <option ng-repeat="frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'" value="{{frm.label}}">{{frm.label}}</option>
</select>
</span>
</div>
<span ng-controller="EmailAddrCtrl">
<select
crm-ui-id="subform.replyTo"
+ crm-ui-select="{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Email address')}"
name="replyTo"
- ui-jq="select2"
- ui-options="{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Email address')}"
+ ng-change="checkReplyToChange(abtest.mailings.a)"
ng-model="abtest.mailings.a.replyto_email"
- ng-options="frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
>
<option value=""></option>
+ <option ng-repeat="frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'" value="{{frm.label}}">{{frm.label}}</option>
</select>
</span>
</div>
<span ng-controller="EmailAddrCtrl">
<select
crm-ui-id="subform.replyToA"
+ crm-ui-select="{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Email address')}"
name="replyToA"
- ui-jq="select2"
- ui-options="{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Email address')}"
+ ng-change="checkReplyToChange(abtest.mailings.a)"
ng-model="abtest.mailings.a.replyto_email"
- ng-options="frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
>
<option value=""></option>
+ <option ng-repeat="frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'" value="{{frm.label}}">{{frm.label}}</option>
</select>
</span>
</div>
<span ng-controller="EmailAddrCtrl">
<select
crm-ui-id="subform.replyToB"
+ crm-ui-select="{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Email address')}"
name="replyToB"
- ui-jq="select2"
- ui-options="{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Email address')}"
+ ng-change="checkReplyToChange(abtest.mailings.b)"
ng-model="abtest.mailings.b.replyto_email"
- ng-options="frm.label as frm.label for frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'"
>
<option value=""></option>
+ <option ng-repeat="frm in crmFromAddresses.getAll() | filter:{is_active:1} | orderBy:'weight'" value="{{frm.label}}">{{frm.label}}</option>
</select>
</span>
</div>