AngularJS - Remove UI-Utils library
[civicrm-core.git] / ang / crmMailing / BlockResponses.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">
1dda695b 7 <div crm-ui-field="{title: ts('Track Replies'), help: hs('override_verp')}" 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 19 </div>
1dda695b 20 <div crm-ui-field="{title: ts('Forward Replies'), help: hs('forward_replies')}" crm-layout="checkbox" ng-show="'0' == mailing.override_verp">
c1154157 21 <input name="forward_replies" type="checkbox" ng-model="mailing.forward_replies" ng-true-value="'1'" ng-false-value="'0'" />
0112f1ae 22 </div>
1dda695b 23 <div crm-ui-field="{title: ts('Auto-Respond to Replies'), help: hs('auto_responder')}" crm-layout="checkbox" ng-show="'0' == mailing.override_verp">
c1154157 24 <input name="auto_responder" type="checkbox" ng-model="mailing.auto_responder" ng-true-value="'1'" ng-false-value="'0'" />
0112f1ae 25 </div>
0112f1ae
TO
26 </div>
27</div>
1bbf688e
TO
28
29<hr/>
30
f8601d61 31<div class="crm-block" ng-form="subform" crm-ui-id-scope>
0112f1ae 32 <div class="crm-group">
c4256f35 33 <div crm-ui-field="{name: 'subform.reply_id', title: ts('Auto-Respond Message')}" ng-show="'0' == mailing.override_verp && '1' == mailing.auto_responder">
0112f1ae 34 <select
f8601d61 35 crm-ui-id="subform.reply_id"
0112f1ae 36 name="reply_id"
fef937a8 37 crm-ui-select="{dropdownAutoWidth : true}"
0112f1ae
TO
38 ng-model="mailing.reply_id"
39 ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Reply'}"
40 required>
41 <option value=""></option>
42 </select>
43 </div>
c4256f35 44 <div crm-ui-field="{name: 'subform.optout_id', title: ts('Opt-out Message')}">
0112f1ae 45 <select
f8601d61 46 crm-ui-id="subform.optout_id"
0112f1ae 47 name="optout_id"
fef937a8 48 crm-ui-select="{dropdownAutoWidth : true}"
0112f1ae
TO
49 ng-model="mailing.optout_id"
50 ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'OptOut'}"
51 required>
52 <option value=""></option>
53 </select>
54 </div>
c4256f35 55 <div crm-ui-field="{name: 'subform.resubscribe_id', title: ts('Resubscribe Message')}">
0112f1ae 56 <select
f8601d61 57 crm-ui-id="subform.resubscribe_id"
0112f1ae 58 name="resubscribe_id"
fef937a8 59 crm-ui-select="{dropdownAutoWidth : true}"
0112f1ae
TO
60 ng-model="mailing.resubscribe_id"
61 ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Resubscribe'}"
62 required>
63 <option value=""></option>
64 </select>
65 </div>
c4256f35 66 <div crm-ui-field="{name: 'subform.unsubscribe_id', title: ts('Unsubscribe Message')}">
0112f1ae 67 <select
f8601d61 68 crm-ui-id="subform.unsubscribe_id"
0112f1ae 69 name="unsubscribe_id"
fef937a8 70 crm-ui-select="{dropdownAutoWidth : true}"
0112f1ae
TO
71 ng-model="mailing.unsubscribe_id"
72 ng-options="mc.id as mc.name for mc in crmMailingConst.headerfooterList | filter:{component_type: 'Unsubscribe'}"
73 required>
74 <option value=""></option>
75 </select>
76 </div>
77 </div>
78</div>