summaryrefslogtreecommitdiff
path: root/www/crm/wp-content/plugins/civicrm/civicrm/ang/crmMailing/EditRecipOptionsDialogCtrl.html
blob: be5e2c2e5f138b623a8f9d16223aa7263b0a26eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<div ng-controller="EditRecipOptionsDialogCtrl" class="crmMailing">
  <div class="crm-block" ng-form="editRecipOptionsForm" crm-ui-id-scope>
    <div class="crm-group">

      <div crm-ui-field="{title: ts('Dedupe by email'), help: hs('dedupe_email')}" crm-layout="checkbox">
        <input
          type="checkbox"
          ng-model="model.mailing.dedupe_email"
          ng-true-value="'1'"
          ng-false-value="'0'"
          >
      </div>

      <div crm-ui-field="{name: 'editRecipOptionsForm.location_type_id', title: ts('Location Type')}">
        <select
          crm-ui-id="editRecipOptionsForm.location_type_id"
          crm-ui-select="{dropdownAutoWidth : true}"
          name="location_type_id"
          ng-model="model.mailing.location_type_id"
          >
          <option value="">{{ts('Automatic')}}</option>
          <option ng-repeat="locType in model.fields.location_type_id.options"
                  ng-value="locType.key">{{locType.value}}</option>
        </select>
      </div>

      <div crm-ui-field="{name: 'editRecipOptionsForm.email_selection_method', title: ts('Selection Method')}">
        <select
          crm-ui-id="editRecipOptionsForm.email_selection_method"
          crm-ui-select=""
          name="email_selection_method"
          ng-model="model.mailing.email_selection_method"
          >
          <option ng-repeat="selMet in model.fields.email_selection_method.options"
                  ng-value="selMet.key">{{selMet.value}}</option>
        </select>
      </div>

    </div>
  </div>
</div>