mirror of
https://github.com/ansible/awx.git
synced 2026-03-25 21:05:03 -02:30
fixed autopopulation of org and user lookups
This commit is contained in:
@@ -197,6 +197,10 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
this.scope = element.scope();
|
this.scope = element.scope();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (options.mode) {
|
||||||
|
this.scope.mode = options.mode;
|
||||||
|
}
|
||||||
|
|
||||||
for (fld in form.fields) {
|
for (fld in form.fields) {
|
||||||
this.scope[fld + '_field'] = form.fields[fld];
|
this.scope[fld + '_field'] = form.fields[fld];
|
||||||
this.scope[fld + '_field'].name = fld;
|
this.scope[fld + '_field'].name = fld;
|
||||||
@@ -752,7 +756,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
|
|||||||
html += "'";
|
html += "'";
|
||||||
html += (field.ngShow) ? this.attr(field, 'ngShow') : "";
|
html += (field.ngShow) ? this.attr(field, 'ngShow') : "";
|
||||||
html += (field.ngHide) ? this.attr(field, 'ngHide') : "";
|
html += (field.ngHide) ? this.attr(field, 'ngHide') : "";
|
||||||
html += (field.awFeature) ? "aw-feature=\"" + field.awFeature + "\" " : "";
|
html += (field.awFeature) ? "aw-feature=\"" + field.awFeature + "\" " : "";
|
||||||
html += ">\n";
|
html += ">\n";
|
||||||
|
|
||||||
//text fields
|
//text fields
|
||||||
|
|||||||
Reference in New Issue
Block a user