1 <div class=
"crm-block" ng-form=
"setupForm" crm-ui-id-scope
>
2 <div class=
"crm-group">
3 <div id=
"help" ng-if=
"fields.help">
4 {{ts('A/B testing allows you to send two test mailings to a random subset of your recipients. After collecting and
5 comparing metrics, the more successful mailing will be sent to the remaining recipients.')}}
7 <div crm-ui-field=
"setupForm.abName" crm-title=
"ts('Name')" ng-if=
"fields.abName">
9 crm-ui-id=
"setupForm.abName"
11 ng-model=
"abtest.ab.name"
13 placeholder=
"A/B Test Name"
16 <div crm-ui-field=
"setupForm.campaign" crm-title=
"ts('Campaign')" ng-show=
"crmMailingConst.campNames.length > 0"
17 ng-if=
"fields.campaign">
19 crm-ui-id=
"setupForm.campaign"
22 ui-options=
"{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Select Campaign')}"
23 ng-model=
"mailing.campaign_id"
24 ng-options=
"campaign.id as campaign.name for campaign in crmMailingConst.campNames|orderBy:'name'"
26 <option value=
""></option>
29 <div crm-ui-field
crm-title=
"ts('Test Type')" ng-if=
"fields.testing_criteria">
30 <div ng-repeat=
"criteria in crmMailingABCriteria.getAll()">
32 <input name=
"testing_critiria" ng-model=
"abtest.ab.testing_criteria_id" type=
"radio"
33 value=
"{{criteria.value}}" required
/>
38 <div crm-ui-field=
"setupForm.recipients" crm-title=
"ts('Recipients')" ng-if=
"fields.recipients">
39 <div crm-mailing-block-recipients=
"{name: 'recipients', id: 'setupForm.recipients'}" crm-mailing=
"abtest.mailings.a"></div>
41 <div crm-ui-field
crm-title=
"ts('Distribution')" ng-if=
"fields.group_percentage">
42 <div crm-mailing-ab-slider
ng-model=
"abtest.ab.group_percentage"></div>
44 <div crm-ui-field
crm-title=
"ts('Send')" ng-if=
"fields.scheduled_date">
45 <div crm-mailing-radio-date=
"schedule" ng-model=
"abtest.mailings.a.scheduled_date">
47 <input ng-model=
"schedule.mode" type=
"radio" name=
"send" value=
"now" id=
"schedule-send-now"/>
48 <label for=
"schedule-send-now">{{ts('Send A/B test immediately')}}
</label>
51 <input ng-model=
"schedule.mode" type=
"radio" name=
"send" value=
"at" id=
"schedule-send-at"/>
52 <label for=
"schedule-send-at">{{ts('Send A/B test at:')}}
</label>
53 <span crm-ui-date-time
ng-model=
"schedule.datetime"></span>
57 <div crm-ui-field
crm-title=
"ts('Assess')" ng-if=
"fields.declare_winning_time">
58 <div crm-mailing-radio-date=
"assessSched" ng-model=
"abtest.ab.declare_winning_time">
60 <input ng-model=
"assessSched.mode" type=
"radio" name=
"assess" value=
"now" id=
"schedule-assess-now"/>
61 <label for=
"schedule-assess-now">{{ts('Assess A/B results on an on-going basis')}}
</label>
64 <input ng-model=
"assessSched.mode" type=
"radio" name=
"assess" value=
"at" id=
"schedule-assess-at"/>
65 <label for=
"schedule-assess-at">{{ts('Assess A/B test at:')}}
</label>
66 <span crm-ui-date-time
ng-model=
"assessSched.datetime"></span>