| 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')}" 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 class="crm-section" id="help"> |
| 21 | {{ts('Recipients\' replies are sent to a CiviMail specific address instead of the sender\'s address so they can be stored within CiviCRM.')}} |
| 22 | </div> |
| 23 | <div crm-ui-field="{title: ts('Forward Replies')}" crm-layout="checkbox" ng-show="'0' == mailing.override_verp"> |
| 24 | <input name="forward_replies" type="checkbox" ng-model="mailing.forward_replies" ng-true-value="'1'" ng-false-value="'0'" /> |
| 25 | </div> |
| 26 | <div class="crm-section" id="help" ng-show="'0' == mailing.override_verp"> |
| 27 | {{ts('If a recipient replies to this mailing, forward the reply to the FROM Email address specified for the mailing.')}} |
| 28 | </div> |
| 29 | <div crm-ui-field="{title: ts('Auto-Respond to Replies')}" crm-layout="checkbox" ng-show="'0' == mailing.override_verp"> |
| 30 | <input name="auto_responder" type="checkbox" ng-model="mailing.auto_responder" ng-true-value="'1'" ng-false-value="'0'" /> |
| 31 | </div> |
| 32 | <div class="crm-section" id="help" ng-show="'0' == mailing.override_verp"> |
| 33 | {{ts('If a recipient replies to this mailing, send an automated reply using the selected message.')}} |
| 34 | </div> |
| 35 | </div> |
| 36 | </div> |
| 37 | |
| 38 | <hr/> |
| 39 | |
| 40 | <div class="crm-block" ng-form="subform" crm-ui-id-scope> |
| 41 | <div class="crm-group"> |
| 42 | <div crm-ui-field="{name: 'subform.reply_id', title: ts('Auto-Respond Message')}" ng-show="'0' == mailing.override_verp && '1' == mailing.auto_responder"> |
| 43 | <select |
| 44 | crm-ui-id="subform.reply_id" |
| 45 | name="reply_id" |
| 46 | ui-jq="select2" |
| 47 | ui-options="{dropdownAutoWidth : true}" |
| 48 | ng-model="mailing.reply_id" |
| 49 | ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Reply'}" |
| 50 | required> |
| 51 | <option value=""></option> |
| 52 | </select> |
| 53 | </div> |
| 54 | <div crm-ui-field="{name: 'subform.optout_id', title: ts('Opt-out Message')}"> |
| 55 | <select |
| 56 | crm-ui-id="subform.optout_id" |
| 57 | name="optout_id" |
| 58 | ui-jq="select2" |
| 59 | ui-options="{dropdownAutoWidth : true}" |
| 60 | ng-model="mailing.optout_id" |
| 61 | ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'OptOut'}" |
| 62 | required> |
| 63 | <option value=""></option> |
| 64 | </select> |
| 65 | </div> |
| 66 | <div crm-ui-field="{name: 'subform.resubscribe_id', title: ts('Resubscribe Message')}"> |
| 67 | <select |
| 68 | crm-ui-id="subform.resubscribe_id" |
| 69 | name="resubscribe_id" |
| 70 | ui-jq="select2" |
| 71 | ui-options="{dropdownAutoWidth : true}" |
| 72 | ng-model="mailing.resubscribe_id" |
| 73 | ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Resubscribe'}" |
| 74 | required> |
| 75 | <option value=""></option> |
| 76 | </select> |
| 77 | </div> |
| 78 | <div crm-ui-field="{name: 'subform.unsubscribe_id', title: ts('Unsubscribe Message')}"> |
| 79 | <select |
| 80 | crm-ui-id="subform.unsubscribe_id" |
| 81 | name="unsubscribe_id" |
| 82 | ui-jq="select2" |
| 83 | ui-options="{dropdownAutoWidth : true}" |
| 84 | ng-model="mailing.unsubscribe_id" |
| 85 | ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Unsubscribe'}" |
| 86 | required> |
| 87 | <option value=""></option> |
| 88 | </select> |
| 89 | </div> |
| 90 | </div> |
| 91 | </div> |