Commit | Line | Data |
---|---|---|
27e690c2 TO |
1 | <!-- |
2 | Controller: EditMailingCtrl | |
3 | Required vars: mailing, crmMailingConst | |
4 | FIXME: Don't hardcode table-based layout! | |
5 | --> | |
f8601d61 | 6 | <div class="crm-block" ng-form="subform" crm-ui-id-scope> |
0112f1ae | 7 | <div class="crm-group"> |
f8601d61 | 8 | <div crm-ui-field="subform.mailingName" crm-title="ts('Mailing Name')"> |
0112f1ae | 9 | <div> |
27e690c2 | 10 | <input |
f8601d61 | 11 | crm-ui-id="subform.mailingName" |
27e690c2 TO |
12 | type="text" |
13 | class="crm-form-text" | |
14 | ng-model="mailing.name" | |
15 | placeholder="Mailing Name" | |
16 | required | |
17 | name="mailingName" /> | |
0112f1ae TO |
18 | </div> |
19 | </div> | |
f8601d61 | 20 | <div crm-ui-field="subform.campaign" crm-title="ts('Campaign')" ng-show="crmMailingConst.campNames.length > 0"> |
0112f1ae | 21 | <select |
f8601d61 | 22 | crm-ui-id="subform.campaign" |
0112f1ae TO |
23 | name="campaign" |
24 | ui-jq="select2" | |
25 | ui-options="{dropdownAutoWidth : true, allowClear: true, placeholder: ts('Select Campaign')}" | |
26 | ng-model="mailing.campaign_id" | |
27 | ng-options="campaign.id as campaign.name for campaign in crmMailingConst.campNames|orderBy:'name'" | |
28 | > | |
29 | <option value=""></option> | |
30 | </select> | |
31 | </div> | |
32 | </div> | |
33 | </div> |