| 1 | <!-- |
| 2 | Controller: EditMailingCtrl |
| 3 | Required vars: mailing, crmMailingConst |
| 4 | FIXME: Don't hardcode table-based layout! |
| 5 | --> |
| 6 | <div class="crm-block" ng-form="subform" crm-ui-id-scope> |
| 7 | <div class="crm-group"> |
| 8 | <div crm-ui-field="{name: 'subform.mailingName', title: ts('Mailing Name'), help: hs('name')}"> |
| 9 | <div> |
| 10 | <input |
| 11 | crm-ui-id="subform.mailingName" |
| 12 | type="text" |
| 13 | class="crm-form-text" |
| 14 | ng-model="mailing.name" |
| 15 | placeholder="Mailing Name" |
| 16 | required |
| 17 | name="mailingName" /> |
| 18 | </div> |
| 19 | </div> |
| 20 | <div crm-ui-field="{name: 'subform.campaign', title: ts('Campaign'), help: hs({id: 'id-campaign_id', file: 'CRM/Campaign/Form/addCampaignToComponent'})}" ng-show="crmMailingConst.campaignEnabled"> |
| 21 | <input |
| 22 | crm-entityref="{entity: 'Campaign', select: {allowClear: true, placeholder: ts('Select Campaign')}}" |
| 23 | crm-ui-id="subform.campaign" |
| 24 | name="campaign" |
| 25 | ng-model="mailing.campaign_id" |
| 26 | /> |
| 27 | </div> |
| 28 | </div> |
| 29 | </div> |