crmUiField - Remove double-$parent
[civicrm-core.git] / partials / crmMailing / dialog / recipientOptions.html
CommitLineData
08baf3ec
TO
1<div ng-controller="EditRecipOptionsDialogCtrl" class="crmMailing">
2 <div class="crm-block" ng-form="editRecipOptionsForm" crm-ui-id-scope>
b8b2e316 3 <div class="crm-group">
08baf3ec 4
b8b2e316
TO
5 <!-- FIXME: ts is not working here. -->
6 <div crm-ui-field crm-title="'Dedupe by email'" crm-layout="checkbox">
7 <input
8 type='checkbox'
08baf3ec 9 ng-model='model.mailing.dedupe_email'
b8b2e316
TO
10 ng-true-value="'1'"
11 ng-false-value="'0'"
12 />
13 </div>
14 <div class="crm-section" id="help">
15 <p>{{ts('Multiple people -- such as spouses, parents, or children -- may sometimes share the same email address.')}}</p>
16 <p>{{ts('To send only one message to the shared address, enable this option. Mail-merge tokens will be filled for only one person.')}}</p>
17 <p>{{ts('To send separate messages for each person, disable this option. Mail-merge tokens will be filled separately for each person.')}}</p>
18 </div>
08baf3ec
TO
19
20 <div crm-ui-field="editRecipOptionsForm.location_type_id" crm-title="ts('Location Type')">
21 <select
22 crm-ui-id="editRecipOptionsForm.location_type_id"
23 crm-ui-select="{dropdownAutoWidth : true}"
24 name="location_type_id"
25 ng-model="model.mailing.location_type_id"
26 required
27 >
28
29 <option value="">{{ts('Automatic')}}</option>
a3b34c78
TO
30 <option ng-repeat="locType in model.fields.location_type_id.options"
31 ng-value="locType.key">{{locType.value}}</option>
08baf3ec
TO
32 </select>
33 </div>
34
35 <div crm-ui-field="editRecipOptionsForm.email_selection_method" crm-title="ts('Selection Method')">
36 <select
37 crm-ui-id="editRecipOptionsForm.email_selection_method"
38 crm-ui-select=""
39 name="email_selection_method"
40 ng-model="model.mailing.email_selection_method"
41 required
42 >
a3b34c78
TO
43 <option ng-repeat="selMet in model.fields.email_selection_method.options"
44 ng-value="selMet.key">{{selMet.value}}</option>
08baf3ec
TO
45 </select>
46 </div>
47
b8b2e316
TO
48 </div>
49 </div>
50</div>