From 76f01cbc2a3140f33a4194f1a97f1d33d585c524 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Mon, 11 May 2015 15:45:09 -0400 Subject: [PATCH] fixed autopopulation of org and user lookups --- awx/ui/static/js/shared/form-generator.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/awx/ui/static/js/shared/form-generator.js b/awx/ui/static/js/shared/form-generator.js index e8f89f3e56..f49fe1764b 100644 --- a/awx/ui/static/js/shared/form-generator.js +++ b/awx/ui/static/js/shared/form-generator.js @@ -197,6 +197,10 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat this.scope = element.scope(); } + if (options.mode) { + this.scope.mode = options.mode; + } + for (fld in form.fields) { this.scope[fld + '_field'] = form.fields[fld]; this.scope[fld + '_field'].name = fld; @@ -752,7 +756,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat html += "'"; html += (field.ngShow) ? this.attr(field, 'ngShow') : ""; html += (field.ngHide) ? this.attr(field, 'ngHide') : ""; - html += (field.awFeature) ? "aw-feature=\"" + field.awFeature + "\" " : ""; + html += (field.awFeature) ? "aw-feature=\"" + field.awFeature + "\" " : ""; html += ">\n"; //text fields