crmUiHelp - Render title once (rather than watching)
[civicrm-core.git] / partials / crmMailing / responses.html
CommitLineData
1bbf688e
TO
1<!--
2Controller: EditMailingCtrl
3Required vars: mailing, crmMailingConst
1bbf688e 4-->
f8601d61 5<div class="crm-block" ng-form="responseForm" crm-ui-id-scope>
0112f1ae 6 <div class="crm-group">
c4256f35 7 <div crm-ui-field="{title: ts('Track Replies')}" crm-layout="checkbox">
0112f1ae 8 <!-- Comparing data-model and UI of "override_verp", note that true/false are inverted (enabled==0,disabled==1) -->
87391d86
TO
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>
0112f1ae
TO
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>
c4256f35 23 <div crm-ui-field="{title: ts('Forward Replies')}" crm-layout="checkbox" ng-show="'0' == mailing.override_verp">
c1154157 24 <input name="forward_replies" type="checkbox" ng-model="mailing.forward_replies" ng-true-value="'1'" ng-false-value="'0'" />
0112f1ae
TO
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>
c4256f35 29 <div crm-ui-field="{title: ts('Auto-Respond to Replies')}" crm-layout="checkbox" ng-show="'0' == mailing.override_verp">
c1154157 30 <input name="auto_responder" type="checkbox" ng-model="mailing.auto_responder" ng-true-value="'1'" ng-false-value="'0'" />
0112f1ae
TO
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>
1bbf688e
TO
37
38<hr/>
39
f8601d61 40<div class="crm-block" ng-form="subform" crm-ui-id-scope>
0112f1ae 41 <div class="crm-group">
c4256f35 42 <div crm-ui-field="{name: 'subform.reply_id', title: ts('Auto-Respond Message')}" ng-show="'0' == mailing.override_verp && '1' == mailing.auto_responder">
0112f1ae 43 <select
f8601d61 44 crm-ui-id="subform.reply_id"
0112f1ae
TO
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>
c4256f35 54 <div crm-ui-field="{name: 'subform.optout_id', title: ts('Opt-out Message')}">
0112f1ae 55 <select
f8601d61 56 crm-ui-id="subform.optout_id"
0112f1ae
TO
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>
c4256f35 66 <div crm-ui-field="{name: 'subform.resubscribe_id', title: ts('Resubscribe Message')}">
0112f1ae 67 <select
f8601d61 68 crm-ui-id="subform.resubscribe_id"
0112f1ae
TO
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>
c4256f35 78 <div crm-ui-field="{name: 'subform.unsubscribe_id', title: ts('Unsubscribe Message')}">
0112f1ae 79 <select
f8601d61 80 crm-ui-id="subform.unsubscribe_id"
0112f1ae
TO
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>