2 Controller: EditMailingCtrl
3 Required vars: mailing, crmMailingConst
5 <div class=
"crm-block" ng-form=
"responseForm" crm-ui-id-scope
>
6 <div class=
"crm-group">
7 <div crm-ui-field
crm-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 <input name=
"override_verp" type=
"checkbox" ng-model=
"mailing.override_verp" ng-true-value=
"0" ng-false-value=
"1" />
11 <div class=
"crm-section" id=
"help">
12 {{ts('Recipients\' replies are sent to a CiviMail specific address instead of the sender\'s address so they can be stored within CiviCRM.')}}
14 <div crm-ui-field
crm-title=
"ts('Forward Replies')" crm-layout=
"checkbox" ng-show=
"'0' == mailing.override_verp">
15 <input name=
"forward_replies" type=
"checkbox" ng-model=
"mailing.forward_replies" ng-true-value=
"1" ng-false-value=
"0" />
17 <div class=
"crm-section" id=
"help" ng-show=
"'0' == mailing.override_verp">
18 {{ts('If a recipient replies to this mailing, forward the reply to the FROM Email address specified for the mailing.')}}
20 <div crm-ui-field
crm-title=
"ts('Auto-Respond to Replies')" crm-layout=
"checkbox" ng-show=
"'0' == mailing.override_verp">
21 <input name=
"auto_responder" type=
"checkbox" ng-model=
"mailing.auto_responder" ng-true-value=
"1" ng-false-value=
"0" />
23 <div class=
"crm-section" id=
"help" ng-show=
"'0' == mailing.override_verp">
24 {{ts('If a recipient replies to this mailing, send an automated reply using the selected message.')}}
31 <div class=
"crm-block" ng-form=
"subform" crm-ui-id-scope
>
32 <div class=
"crm-group">
33 <div crm-ui-field=
"subform.reply_id" crm-title=
"ts('Auto-Respond Message')" ng-show=
"'0' == mailing.override_verp && '1' == mailing.auto_responder">
35 crm-ui-id=
"subform.reply_id"
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'}"
42 <option value=
""></option>
45 <div crm-ui-field=
"subform.optout_id" crm-title=
"ts('Opt-out Message')">
47 crm-ui-id=
"subform.optout_id"
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'}"
54 <option value=
""></option>
57 <div crm-ui-field=
"subform.resubscribe_id" crm-title=
"ts('Resubscribe Message')">
59 crm-ui-id=
"subform.resubscribe_id"
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'}"
66 <option value=
""></option>
69 <div crm-ui-field=
"subform.unsubscribe_id" crm-title=
"ts('Unsubscribe Message')">
71 crm-ui-id=
"subform.unsubscribe_id"
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'}"
78 <option value=
""></option>