| 1 | <!-- |
| 2 | Controller: EditMailingCtrl |
| 3 | Required vars: mailing, crmMailingConst |
| 4 | --> |
| 5 | <div class="crm-block" ng-form="responseForm" crm-ui-id-scope> |
| 6 | <div class="crm-group"> |
| 7 | <div crm-ui-field="{title: ts('Track Replies'), help: hs('override_verp')}" crm-layout="checkbox"> |
| 8 | <!-- Comparing data-model and UI of "override_verp", note that true/false are inverted (enabled==0,disabled==1) --> |
| 9 | <span ng-controller="EmailAddrCtrl"> |
| 10 | <input |
| 11 | name="override_verp" |
| 12 | type="checkbox" |
| 13 | ng-change="checkVerpChange(mailing)" |
| 14 | ng-model="mailing.override_verp" |
| 15 | ng-true-value="'0'" |
| 16 | ng-false-value="'1'" |
| 17 | /> |
| 18 | </span> |
| 19 | </div> |
| 20 | <div crm-ui-field="{title: ts('Forward Replies'), help: hs('forward_replies')}" crm-layout="checkbox" ng-show="'0' == mailing.override_verp"> |
| 21 | <input name="forward_replies" type="checkbox" ng-model="mailing.forward_replies" ng-true-value="'1'" ng-false-value="'0'" /> |
| 22 | </div> |
| 23 | <div crm-ui-field="{title: ts('Auto-Respond to Replies'), help: hs('auto_responder')}" crm-layout="checkbox" ng-show="'0' == mailing.override_verp"> |
| 24 | <input name="auto_responder" type="checkbox" ng-model="mailing.auto_responder" ng-true-value="'1'" ng-false-value="'0'" /> |
| 25 | </div> |
| 26 | </div> |
| 27 | </div> |
| 28 | |
| 29 | <hr/> |
| 30 | |
| 31 | <div class="crm-block" ng-form="subform" crm-ui-id-scope> |
| 32 | <div class="crm-group"> |
| 33 | <div crm-ui-field="{name: 'subform.reply_id', title: ts('Auto-Respond Message')}" ng-show="'0' == mailing.override_verp && '1' == mailing.auto_responder"> |
| 34 | <select |
| 35 | crm-ui-id="subform.reply_id" |
| 36 | name="reply_id" |
| 37 | ui-jq="select2" |
| 38 | ui-options="{dropdownAutoWidth : true}" |
| 39 | ng-model="mailing.reply_id" |
| 40 | ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Reply'}" |
| 41 | required> |
| 42 | <option value=""></option> |
| 43 | </select> |
| 44 | </div> |
| 45 | <div crm-ui-field="{name: 'subform.optout_id', title: ts('Opt-out Message')}"> |
| 46 | <select |
| 47 | crm-ui-id="subform.optout_id" |
| 48 | name="optout_id" |
| 49 | ui-jq="select2" |
| 50 | ui-options="{dropdownAutoWidth : true}" |
| 51 | ng-model="mailing.optout_id" |
| 52 | ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'OptOut'}" |
| 53 | required> |
| 54 | <option value=""></option> |
| 55 | </select> |
| 56 | </div> |
| 57 | <div crm-ui-field="{name: 'subform.resubscribe_id', title: ts('Resubscribe Message')}"> |
| 58 | <select |
| 59 | crm-ui-id="subform.resubscribe_id" |
| 60 | name="resubscribe_id" |
| 61 | ui-jq="select2" |
| 62 | ui-options="{dropdownAutoWidth : true}" |
| 63 | ng-model="mailing.resubscribe_id" |
| 64 | ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Resubscribe'}" |
| 65 | required> |
| 66 | <option value=""></option> |
| 67 | </select> |
| 68 | </div> |
| 69 | <div crm-ui-field="{name: 'subform.unsubscribe_id', title: ts('Unsubscribe Message')}"> |
| 70 | <select |
| 71 | crm-ui-id="subform.unsubscribe_id" |
| 72 | name="unsubscribe_id" |
| 73 | ui-jq="select2" |
| 74 | ui-options="{dropdownAutoWidth : true}" |
| 75 | ng-model="mailing.unsubscribe_id" |
| 76 | ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Unsubscribe'}" |
| 77 | required> |
| 78 | <option value=""></option> |
| 79 | </select> |
| 80 | </div> |
| 81 | </div> |
| 82 | </div> |