mirror of
https://github.com/ansible/awx.git
synced 2026-08-05 04:20:00 -02:30
AC-741 scm and machine type credentials now sharing ssh_key_unlock field in Credential form definition. Originally split because only machine should allow Ask option. Added new askShow option to form generator so that Ask checkbox gets an ng-show directive.
This commit is contained in:
@@ -525,7 +525,9 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'ngCookies', 'Utilities'])
|
||||
html += " ><i class=\"icon-undo\"></i></button>\n";
|
||||
html += "</span>\n</div>\n";
|
||||
if (field.ask) {
|
||||
html += "<label class=\"checkbox-inline ask-checkbox\">";
|
||||
html += "<label class=\"checkbox-inline ask-checkbox\" ";
|
||||
html += (field.askShow) ? "ng-show=\"" + field.askShow + "\" " : "";
|
||||
html += ">";
|
||||
html += "<input type=\"checkbox\" ng-model=\"" +
|
||||
fld + "_ask\" ng-change=\"ask('" + fld + "','" + field.associated + "')\" ";
|
||||
html += "id=\"" + this.form.name + "_" + fld + "_ask_chbox\" ";
|
||||
|
||||
Reference in New Issue
Block a user