})
// Display a field/row in a field list
- // example: <div crm-ui-field crm-title="My Field"> {{mydata}} </div>
- // example: <div crm-ui-field="subform.myfield" crm-title="'My Field'"> <input crm-ui-id="subform.myfield" name="myfield" /> </div>
- // example: <div crm-ui-field="subform.myfield" crm-title="'My Field'"> <input crm-ui-id="subform.myfield" name="myfield" required /> </div>
- // example: <div crm-ui-field crm-title="My Field" crm-ui-help="'help_field_name'"> {{mydata}} </div>
+ // example: <div crm-ui-field="{title: ts('My Field')}"> {{mydata}} </div>
+ // example: <div crm-ui-field="{name: 'subform.myfield', title: ts('My Field')}"> <input crm-ui-id="subform.myfield" name="myfield" /> </div>
+ // example: <div crm-ui-field="{name: 'subform.myfield', title: ts('My Field')}"> <input crm-ui-id="subform.myfield" name="myfield" required /> </div>
+ // example: <div crm-ui-field="{name: 'subform.myfield', title: ts('My Field'), help: 'help_field_name'}"> {{mydata}} </div>
.directive('crmUiField', function() {
// Note: When writing new templates, the "label" position is particular. See/patch "var label" below.
var templateUrls = {
require: '^crmUiIdScope',
restrict: 'EA',
scope: {
- // string, e.g. "myform.myfield"
- crmUiField: '@',
- // string, an expression producing a printable title
- crmTitle: '=',
- // string, an expression producing a help id
- crmHelp: '='
+ // {title, name, help}
+ crmUiField: '='
},
templateUrl: function(tElement, tAttrs){
var layout = tAttrs.crmLayout ? tAttrs.crmLayout : 'default';
transclude: true,
link: function (scope, element, attrs, crmUiIdCtrl) {
$(element).addClass('crm-section');
- scope.crmUiField = attrs.crmUiField;
scope.crmUiHelpFile = scope.$parent.crmUiHelpFile; // propagate default
}
};
-->
<div class="crm-block" ng-form="caseTypeDetailForm" crm-ui-id-scope>
<div class="crm-group">
- <div crm-ui-field="caseTypeDetailForm.title" crm-title="ts('Title')">
+ <div crm-ui-field="{name: 'caseTypeDetailForm.title', title: ts('Title')}">
<input
crm-ui-id="caseTypeDetailForm.title"
type="text"
required
/>
</div>
- <div crm-ui-field="caseTypeDetailForm.caseTypeName" crm-title="ts('Name')">
+ <div crm-ui-field="{name: 'caseTypeDetailForm.caseTypeName', title: ts('Name')}">
<input
crm-ui-id="caseTypeDetailForm.caseTypeName"
type="text"
<em>WARNING: If any external files or programs reference the old "Name", then they must be updated manually.</em>
</div>
</div>
- <div crm-ui-field="caseTypeDetailForm.description" crm-title="ts('Description')">
+ <div crm-ui-field="{name: 'caseTypeDetailForm.description', title: ts('Description')}">
<textarea crm-ui-id="caseTypeDetailForm.description" name="description" ng-model="caseType.description" class="big crm-form-textarea"></textarea>
</div>
- <div crm-ui-field crm-title="ts('Enabled?')">
+ <div crm-ui-field="{title: ts('Enabled?')}">
<input name="is_active" type="checkbox" ng-model="caseType.is_active" ng-true-value="1" ng-false-value="0"/>
</div>
</div>
<div class="crm-block" ng-form="apprForm" crm-ui-id-scope>
<div class="crm-group">
- <div crm-ui-field crm-title="ts('Status')">
+ <div crm-ui-field="{title: ts('Status')}">
{{mailingFields.approval_status_id.optionsMap[mailing.approval_status_id] || ts('Unreviewed')}}
</div>
- <div crm-ui-field="apprForm.approval_note" crm-title="ts('Note')">
+ <div crm-ui-field="{name: 'apprForm.approval_note', title: ts('Note')}">
<textarea
crm-ui-id="apprForm.approval_note"
name="approval_note"
<div class="crm-group">
<!-- FIXME: ts is not working here. -->
- <div crm-ui-field crm-title="'Dedupe by email'" crm-layout="checkbox">
+ <div crm-ui-field="{title: 'Dedupe by email'}" crm-layout="checkbox">
<input
type='checkbox'
ng-model='model.mailing.dedupe_email'
<p>{{ts('To send separate messages for each person, disable this option. Mail-merge tokens will be filled separately for each person.')}}</p>
</div>
- <div crm-ui-field="editRecipOptionsForm.location_type_id" crm-title="ts('Location Type')">
+ <div crm-ui-field="{name: 'editRecipOptionsForm.location_type_id', title: ts('Location Type')}">
<select
crm-ui-id="editRecipOptionsForm.location_type_id"
crm-ui-select="{dropdownAutoWidth : true}"
</select>
</div>
- <div crm-ui-field="editRecipOptionsForm.email_selection_method" crm-title="ts('Selection Method')">
+ <div crm-ui-field="{name: 'editRecipOptionsForm.email_selection_method', title: ts('Selection Method')}">
<select
crm-ui-id="editRecipOptionsForm.email_selection_method"
crm-ui-select=""
-->
<div class="crm-block" ng-form="subform" crm-ui-id-scope>
<div class="crm-group" ng-controller="EmailBodyCtrl">
- <div crm-ui-field="subform.header_id" crm-title="ts('Mailing Header')">
+ <div crm-ui-field="{name: 'subform.header_id', title: ts('Mailing Header')}">
<select
crm-ui-id="subform.header_id"
name="header_id"
<option value=""></option>
</select>
</div>
- <div crm-ui-field="subform.footer_id" crm-title="ts('Mailing Footer')">
+ <div crm-ui-field="{name: 'subform.footer_id', title: ts('Mailing Footer')}">
<select
crm-ui-id="subform.footer_id"
name="footer_id"
-->
<div class="crm-block" ng-form="subform" crm-ui-id-scope>
<div class="crm-group">
- <div crm-ui-field="subform.msg_template_id" crm-title="ts('Template')">
+ <div crm-ui-field="{name: 'subform.msg_template_id', title: ts('Template')}">
<div ng-controller="MsgTemplateCtrl">
<select
crm-ui-id="subform.msg_template_id"
<a crm-icon="disk" ng-click="saveTemplate(mailing)" class="crm-hover-button" title="{{ts('Save As')}}"></a>
</div>
</div>
- <div crm-ui-field="subform.fromAddress" crm-title="ts('From')" crm-help="'id-from_email'">
+ <div crm-ui-field="{name: 'subform.fromAddress', title: ts('From'), help: 'id-from_email'}">
<div ng-controller="EmailAddrCtrl" crm-mailing-from-address="fromPlaceholder" crm-mailing="mailing">
<select
crm-ui-id="subform.fromAddress"
</select>
</div>
</div>
- <div crm-ui-field="subform.replyTo" crm-title="ts('Reply-To')" ng-show="crmMailingConst.enableReplyTo">
+ <div crm-ui-field="{name: 'subform.replyTo', title: ts('Reply-To')}" ng-show="crmMailingConst.enableReplyTo">
<div ng-controller="EmailAddrCtrl">
<select
crm-ui-id="subform.replyTo"
</select>
</div>
</div>
- <div crm-ui-field="subform.recipients" crm-title="ts('Recipients')">
+ <div crm-ui-field="{name: 'subform.recipients', title: ts('Recipients')}">
<div crm-mailing-block-recipients="{name: 'recipients', id: 'subform.recipients'}" crm-mailing="mailing"></div>
</div>
<span ng-controller="EditUnsubGroupCtrl">
- <div crm-ui-field="subform.baseGroup" crm-title="ts('Unsubscribe Group')" ng-if="isUnsubGroupRequired(mailing)">
+ <div crm-ui-field="{name: 'subform.baseGroup', title: ts('Unsubscribe Group')}" ng-if="isUnsubGroupRequired(mailing)">
<select
crm-ui-id="subform.baseGroup"
crm-ui-select
</select>
</div>
</span>
- <div crm-ui-field="subform.subject" crm-title="ts('Subject')">
+ <div crm-ui-field="{name: 'subform.subject', title: ts('Subject')}">
<div style="float: right;">
<input crm-mailing-token on-select="$broadcast('insert:subject', token.name)" tabindex="-1"/>
</div>
<div class="crm-block" ng-form="subform" crm-ui-id-scope>
<div class="crm-group">
- <div crm-ui-field="subform.visibility" crm-title="ts('Mailing Visibility')">
+ <div crm-ui-field="{name: 'subform.visibility', title: ts('Mailing Visibility')}">
<select
crm-ui-id="subform.visibility"
name="visibility"
-->
<div class="crm-block" ng-form="responseForm" crm-ui-id-scope>
<div class="crm-group">
- <div crm-ui-field crm-title="ts('Track Replies')" crm-layout="checkbox">
+ <div crm-ui-field="{title: ts('Track Replies')}" crm-layout="checkbox">
<!-- Comparing data-model and UI of "override_verp", note that true/false are inverted (enabled==0,disabled==1) -->
<span ng-controller="EmailAddrCtrl">
<input
<div class="crm-section" id="help">
{{ts('Recipients\' replies are sent to a CiviMail specific address instead of the sender\'s address so they can be stored within CiviCRM.')}}
</div>
- <div crm-ui-field crm-title="ts('Forward Replies')" crm-layout="checkbox" ng-show="'0' == mailing.override_verp">
+ <div crm-ui-field="{title: ts('Forward Replies')}" crm-layout="checkbox" ng-show="'0' == mailing.override_verp">
<input name="forward_replies" type="checkbox" ng-model="mailing.forward_replies" ng-true-value="'1'" ng-false-value="'0'" />
</div>
<div class="crm-section" id="help" ng-show="'0' == mailing.override_verp">
{{ts('If a recipient replies to this mailing, forward the reply to the FROM Email address specified for the mailing.')}}
</div>
- <div crm-ui-field crm-title="ts('Auto-Respond to Replies')" crm-layout="checkbox" ng-show="'0' == mailing.override_verp">
+ <div crm-ui-field="{title: ts('Auto-Respond to Replies')}" crm-layout="checkbox" ng-show="'0' == mailing.override_verp">
<input name="auto_responder" type="checkbox" ng-model="mailing.auto_responder" ng-true-value="'1'" ng-false-value="'0'" />
</div>
<div class="crm-section" id="help" ng-show="'0' == mailing.override_verp">
<div class="crm-block" ng-form="subform" crm-ui-id-scope>
<div class="crm-group">
- <div crm-ui-field="subform.reply_id" crm-title="ts('Auto-Respond Message')" ng-show="'0' == mailing.override_verp && '1' == mailing.auto_responder">
+ <div crm-ui-field="{name: 'subform.reply_id', title: ts('Auto-Respond Message')}" ng-show="'0' == mailing.override_verp && '1' == mailing.auto_responder">
<select
crm-ui-id="subform.reply_id"
name="reply_id"
<option value=""></option>
</select>
</div>
- <div crm-ui-field="subform.optout_id" crm-title="ts('Opt-out Message')">
+ <div crm-ui-field="{name: 'subform.optout_id', title: ts('Opt-out Message')}">
<select
crm-ui-id="subform.optout_id"
name="optout_id"
<option value=""></option>
</select>
</div>
- <div crm-ui-field="subform.resubscribe_id" crm-title="ts('Resubscribe Message')">
+ <div crm-ui-field="{name: 'subform.resubscribe_id', title: ts('Resubscribe Message')}">
<select
crm-ui-id="subform.resubscribe_id"
name="resubscribe_id"
<option value=""></option>
</select>
</div>
- <div crm-ui-field="subform.unsubscribe_id" crm-title="ts('Unsubscribe Message')">
+ <div crm-ui-field="{name: 'subform.unsubscribe_id', title: ts('Unsubscribe Message')}">
<select
crm-ui-id="subform.unsubscribe_id"
name="unsubscribe_id"
<div>
<div class="crm-block" ng-form="reviewForm" crm-ui-id-scope>
<div class="crm-group">
- <div crm-ui-field crm-title="ts('Mailing Name')">
+ <div crm-ui-field="{title: ts('Mailing Name')}">
{{mailing.name}}
</div>
- <div crm-ui-field crm-title="ts('Recipients')">
+ <div crm-ui-field="{title: ts('Recipients')}">
<div ng-controller="ViewRecipCtrl">
<div ng-controller="EditRecipCtrl">
<div><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewRecipients()">{{getRecipientsEstimate()}}</a></div>
</div>
</div>
</div>
- <div crm-ui-field crm-title="ts('Content')">
+ <div crm-ui-field="{title: ts('Content')}">
<span ng-show="mailing.body_html"><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewMailing(mailing, 'html')">{{ts('HTML')}}</a></span>
<span ng-show="mailing.body_html || mailing.body_text"><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewMailing(mailing, 'text')">{{ts('Plain Text')}}</a></span>
<!-- TODO: attachments -->
</div>
- <div crm-ui-field crm-title="ts('Attachments')" ng-show="attachments.files.length > 0 || attachments.uploader.queue.length > 0">
+ <div crm-ui-field="{title: ts('Attachments')}" ng-show="attachments.files.length > 0 || attachments.uploader.queue.length > 0">
<div ng-repeat="file in attachments.files">
<a ng-href="{{file.url}}" target="_blank">{{file.name}}</a>
</div>
{{item.file.name}}
</div>
</div>
- <div crm-ui-field crm-title="ts('Tracking')">
+ <div crm-ui-field="{title: ts('Tracking')}">
<span crm-mailing-review-bool crm-on="mailing.url_tracking=='1'" crm-title="ts('Click Throughs')"></span>
<span crm-mailing-review-bool crm-on="mailing.open_tracking=='1'" crm-title="ts('Opens')"></span>
</div>
- <div crm-ui-field crm-title="ts('Responding')">
+ <div crm-ui-field="{title: ts('Responding')}">
<div>
<span crm-mailing-review-bool crm-on="mailing.override_verp=='0'" crm-title="ts('Track Replies')"></span>
<span crm-mailing-review-bool crm-on="mailing.override_verp=='0' && mailing.forward_replies=='1'" crm-title="ts('Forward Replies')"></span>
<span><a crm-icon="newwin" class="crm-hover-button action-item" ng-click="previewComponent(ts('Unsubscribe'), mailing.unsubscribe_id)">{{ts('Unsubscribe')}}</a></span>
</div>
</div>
- <div crm-ui-field crm-title="ts('Publication')">
+ <div crm-ui-field="{title: ts('Publication')}">
{{mailing.visibility}}
</div>
</div>
-->
<div class="crm-block" ng-form="subform" crm-ui-id-scope>
<div class="crm-group">
- <div crm-ui-field="subform.mailingName" crm-title="ts('Mailing Name')">
+ <div crm-ui-field="{name: 'subform.mailingName', title: ts('Mailing Name')}">
<div>
<input
crm-ui-id="subform.mailingName"
name="mailingName" />
</div>
</div>
- <div crm-ui-field="subform.campaign" crm-title="ts('Campaign')" ng-show="crmMailingConst.campNames.length > 0">
+ <div crm-ui-field="{name: 'subform.campaign', title: ts('Campaign')}" ng-show="crmMailingConst.campNames.length > 0">
<select
crm-ui-id="subform.campaign"
name="campaign"
-->
<div class="crm-block" ng-form="subform" crm-ui-id-scope>
<div class="crm-group">
- <div crm-ui-field="subform.url_tracking" crm-title="ts('Track Click Throughs')" crm-layout="checkbox">
+ <div crm-ui-field="{name: 'subform.url_tracking', title: ts('Track Click Throughs')}" crm-layout="checkbox">
<input crm-ui-id="subform.url_tracking" name="url_tracking" type="checkbox" ng-model="mailing.url_tracking" ng-true-value="'1'" ng-false-value="'0'" />
</div>
<div class="crm-section" id="help">
{{ts('Track the number of times recipients click each link in this mailing. NOTE: When this feature is enabled, all links in the message body will be automatically re-written to route through your CiviCRM server prior to redirecting to the target page.')}}
</div>
- <div crm-ui-field="subform.open_tracking" crm-title="ts('Track Opens')" crm-layout="checkbox">
+ <div crm-ui-field="{name: 'subform.open_tracking', title: ts('Track Opens')}" crm-layout="checkbox">
<input crm-ui-id="subform.open_tracking" name="open_tracking" type="checkbox" ng-model="mailing.open_tracking" ng-true-value="'1'" ng-false-value="'0'" />
</div>
<div class="crm-section" id="help">
<div class="crm-group">
- <div crm-ui-field="subform.msg_template_id" crm-title="ts('Template')" ng-if="fields.msg_template_id">
+ <div crm-ui-field="{name: 'subform.msg_template_id', title: ts('Template')}" ng-if="fields.msg_template_id">
<div ng-controller="MsgTemplateCtrl">
<select
crm-ui-id="subform.msg_template_id"
<a crm-icon="disk" ng-click="saveTemplate(abtest.mailings.a)" class="crm-hover-button" title="{{ts('Save As')}}"></a>
</div>
</div>
- <div crm-ui-field="subform.msg_template_idA" crm-title="ts('Template (A)')" ng-if="fields.msg_template_idA">
+ <div crm-ui-field="{name: 'subform.msg_template_idA', title: ts('Template (A)')}" ng-if="fields.msg_template_idA">
<div ng-controller="MsgTemplateCtrl">
<select
crm-ui-id="subform.msg_template_idA"
<a crm-icon="disk" ng-click="saveTemplate(abtest.mailings.a)" class="crm-hover-button" title="{{ts('Save As')}}"></a>
</div>
</div>
- <div crm-ui-field="subform.msg_template_idB" crm-title="ts('Template (B)')" ng-if="fields.msg_template_idB">
+ <div crm-ui-field="{name: 'subform.msg_template_idB', title: ts('Template (B)')}" ng-if="fields.msg_template_idB">
<div ng-controller="MsgTemplateCtrl">
<select
crm-ui-id="subform.msg_template_idB"
</div>
- <div crm-ui-field="subform.fromAddress" crm-title="ts('From')" ng-if="fields.fromAddress">
+ <div crm-ui-field="{name: 'subform.fromAddress', title: ts('From')}" ng-if="fields.fromAddress">
<span ng-controller="EmailAddrCtrl" crm-mailing-from-address="fromPlaceholder" crm-mailing="abtest.mailings.a">
<select
crm-ui-id="subform.fromAddress"
</select>
</span>
</div>
- <div crm-ui-field="subform.fromAddressA" crm-title="ts('From (A)')" ng-if="fields.fromAddressA">
+ <div crm-ui-field="{name: 'subform.fromAddressA', title: ts('From (A)')}" ng-if="fields.fromAddressA">
<span ng-controller="EmailAddrCtrl" crm-mailing-from-address="fromPlaceholder" crm-mailing="abtest.mailings.a">
<select
crm-ui-id="subform.fromAddressA"
</select>
</span>
</div>
- <div crm-ui-field="subform.fromAddressB" crm-title="ts('From (B)')" ng-if="fields.fromAddressB">
+ <div crm-ui-field="{name: 'subform.fromAddressB', title: ts('From (B)')}" ng-if="fields.fromAddressB">
<span ng-controller="EmailAddrCtrl" crm-mailing-from-address="fromPlaceholder" crm-mailing="abtest.mailings.b">
<select
crm-ui-id="subform.fromAddressB"
</div>
- <div crm-ui-field="subform.replyTo" crm-title="ts('Reply-To')" ng-show="crmMailingConst.enableReplyTo" ng-if="fields.replyTo">
+ <div crm-ui-field="{name: 'subform.replyTo', title: ts('Reply-To')}" ng-show="crmMailingConst.enableReplyTo" ng-if="fields.replyTo">
<span ng-controller="EmailAddrCtrl">
<select
crm-ui-id="subform.replyTo"
</select>
</span>
</div>
- <div crm-ui-field="subform.replyToA" crm-title="ts('Reply-To (A)')" ng-show="crmMailingConst.enableReplyTo" ng-if="fields.replyToA">
+ <div crm-ui-field="{name: 'subform.replyToA', title: ts('Reply-To (A)')}" ng-show="crmMailingConst.enableReplyTo" ng-if="fields.replyToA">
<span ng-controller="EmailAddrCtrl">
<select
crm-ui-id="subform.replyToA"
</select>
</span>
</div>
- <div crm-ui-field="subform.replyToB" crm-title="ts('Reply-To (B)')" ng-show="crmMailingConst.enableReplyTo" ng-if="fields.replyToB">
+ <div crm-ui-field="{name: 'subform.replyToB', title: ts('Reply-To (B)')}" ng-show="crmMailingConst.enableReplyTo" ng-if="fields.replyToB">
<span ng-controller="EmailAddrCtrl">
<select
crm-ui-id="subform.replyToB"
</div>
- <div crm-ui-field="subform.subject" crm-title="ts('Subject')" ng-if="fields.subject">
+ <div crm-ui-field="{name: 'subform.subject', title: ts('Subject')}" ng-if="fields.subject">
<div style="float: right;">
<input crm-mailing-token on-select="$broadcast('insert:subject', token.name)" tabindex="-1"/>
</div>
placeholder="Subject"
name="subject" />
</div>
- <div crm-ui-field="subform.subjectA" crm-title="ts('Subject (A)')" ng-if="fields.subjectA">
+ <div crm-ui-field="{name: 'subform.subjectA', title: ts('Subject (A)')}" ng-if="fields.subjectA">
<div style="float: right;">
<input crm-mailing-token on-select="$broadcast('insert:subjectA', token.name)" tabindex="-1"/>
</div>
placeholder="Subject"
name="subjectA" />
</div>
- <div crm-ui-field="subform.subjectB" crm-title="ts('Subject (B)')" ng-if="fields.subjectB">
+ <div crm-ui-field="{name: 'subform.subjectB', title: ts('Subject (B)')}" ng-if="fields.subjectB">
<div style="float: right;">
<input crm-mailing-token on-select="$broadcast('insert:subjectB', token.name)" tabindex="-1"/>
</div>
{{ts('A/B testing allows you to send two test mailings to a random subset of your recipients. After collecting and
comparing metrics, the more successful mailing will be sent to the remaining recipients.')}}
</div>
- <div crm-ui-field="setupForm.abName" crm-title="ts('Name')" ng-if="fields.abName">
+ <div crm-ui-field="{name: 'setupForm.abName', title: ts('Name')}" ng-if="fields.abName">
<input
crm-ui-id="setupForm.abName"
name="abName"
placeholder="A/B Test Name"
required/>
</div>
- <div crm-ui-field="setupForm.campaign" crm-title="ts('Campaign')" ng-show="crmMailingConst.campNames.length > 0"
+ <div crm-ui-field="{name: 'setupForm.campaign', title: ts('Campaign')}" ng-show="crmMailingConst.campNames.length > 0"
ng-if="fields.campaign">
<select
crm-ui-id="setupForm.campaign"
<option value=""></option>
</select>
</div>
- <div crm-ui-field crm-title="ts('Test Type')" ng-if="fields.testing_criteria">
+ <div crm-ui-field="{title: ts('Test Type')}" ng-if="fields.testing_criteria">
<div ng-repeat="criteria in crmMailingABCriteria.getAll()">
<label>
<input name="testing_criteria" ng-model="abtest.ab.testing_criteria" type="radio"
</label>
</div>
</div>
- <div crm-ui-field="setupForm.recipients" crm-title="ts('Recipients')" ng-if="fields.recipients">
+ <div crm-ui-field="{name: 'setupForm.recipients', title: ts('Recipients')}" ng-if="fields.recipients">
<div crm-mailing-block-recipients="{name: 'recipients', id: 'setupForm.recipients'}" crm-mailing="abtest.mailings.a"></div>
</div>
- <div crm-ui-field crm-title="ts('Distribution')" ng-if="fields.group_percentage">
+ <div crm-ui-field="{title: ts('Distribution')}" ng-if="fields.group_percentage">
<div crm-mailing-ab-slider ng-model="abtest.ab.group_percentage"></div>
</div>
- <div crm-ui-field crm-title="ts('Send')" ng-if="fields.scheduled_date">
+ <div crm-ui-field="{title: ts('Send')}" ng-if="fields.scheduled_date">
<div crm-mailing-radio-date="schedule" ng-model="abtest.mailings.a.scheduled_date">
<div>
<input ng-model="schedule.mode" type="radio" name="send" value="now" id="schedule-send-now"/>
</div>
</div>
</div>
- <div crm-ui-field crm-title="ts('Assess')" ng-if="fields.declare_winning_time">
+ <div crm-ui-field="{title: ts('Assess')}" ng-if="fields.declare_winning_time">
<div crm-mailing-radio-date="assessSched" ng-model="abtest.ab.declare_winning_time">
<div>
<input ng-model="assessSched.mode" type="radio" name="assess" value="now" id="schedule-assess-now"/>
<label crm-depth="1">
<span ng-transclude></span>
<span ng-class="cssClasses">
- {{crmTitle}}
+ {{crmUiField.title}}
</span>
</label>
<div class="clear"></div>
<div class="label">
- <label crm-ui-for="{{crmUiField}}" crm-depth="1">{{crmTitle}}</label>
- <a crm-ui-help="{title: crmTitle, id: crmHelp}" ng-if="crmHelp"></a>
+ <label crm-ui-for="{{crmUiField.name}}" crm-depth="1">{{crmUiField.title}}</label>
+ <a crm-ui-help="{title: crmUiField.title, id: crmUiField.help}" ng-if="crmUiField.help"></a>
</div>
<div class="content" ng-transclude></div>
<div class="clear"></div>