From c4256f353fcb368005a963c608ecd97fbc1c3d58 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Mon, 16 Mar 2015 17:19:19 -0400 Subject: [PATCH] CRM-15706 - Modify crmUiField signature to use options object --- js/angular-crm-ui.js | 17 +++++-------- partials/crmCaseType/caseTypeDetails.html | 8 +++---- partials/crmMailing/approve.html | 4 ++-- .../crmMailing/dialog/recipientOptions.html | 6 ++--- partials/crmMailing/headerFooter.html | 4 ++-- partials/crmMailing/mailing.html | 12 +++++----- partials/crmMailing/publication.html | 2 +- partials/crmMailing/responses.html | 14 +++++------ partials/crmMailing/review.html | 14 +++++------ partials/crmMailing/summary.html | 4 ++-- partials/crmMailing/tracking.html | 4 ++-- partials/crmMailingAB/joint-mailing.html | 24 +++++++++---------- partials/crmMailingAB/setup.html | 14 +++++------ partials/crmUi/field-cb.html | 2 +- partials/crmUi/field.html | 4 ++-- 15 files changed, 64 insertions(+), 69 deletions(-) diff --git a/js/angular-crm-ui.js b/js/angular-crm-ui.js index e46f814b1f..2ae109d1a0 100644 --- a/js/angular-crm-ui.js +++ b/js/angular-crm-ui.js @@ -111,10 +111,10 @@ }) // Display a field/row in a field list - // example:
{{mydata}}
- // example:
- // example:
- // example:
{{mydata}}
+ // example:
{{mydata}}
+ // example:
+ // example:
+ // example:
{{mydata}}
.directive('crmUiField', function() { // Note: When writing new templates, the "label" position is particular. See/patch "var label" below. var templateUrls = { @@ -126,12 +126,8 @@ 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'; @@ -140,7 +136,6 @@ transclude: true, link: function (scope, element, attrs, crmUiIdCtrl) { $(element).addClass('crm-section'); - scope.crmUiField = attrs.crmUiField; scope.crmUiHelpFile = scope.$parent.crmUiHelpFile; // propagate default } }; diff --git a/partials/crmCaseType/caseTypeDetails.html b/partials/crmCaseType/caseTypeDetails.html index 9cb878981a..1d8558ec1b 100644 --- a/partials/crmCaseType/caseTypeDetails.html +++ b/partials/crmCaseType/caseTypeDetails.html @@ -6,7 +6,7 @@ The original form used table layout; don't know if we have an alternative, CSS-b -->
-
+
-
+
WARNING: If any external files or programs reference the old "Name", then they must be updated manually.
-
+
-
+
diff --git a/partials/crmMailing/approve.html b/partials/crmMailing/approve.html index ce50e71852..e3971ca7cb 100644 --- a/partials/crmMailing/approve.html +++ b/partials/crmMailing/approve.html @@ -1,9 +1,9 @@
-
+
{{mailingFields.approval_status_id.optionsMap[mailing.approval_status_id] || ts('Unreviewed')}}
-
+