mirror of
https://github.com/ansible/awx.git
synced 2026-01-23 23:41:23 -03:30
added ngRequired option for textareas
this is for survey maker so that certain textareas can be required. This is for multiple choice questions and the options that are required for them
This commit is contained in:
parent
360e813258
commit
05a87d0cea
@ -864,6 +864,7 @@ angular.module('FormGenerator', ['GeneratorHelpers', 'Utilities', 'ListGenerator
|
||||
html += (field.placeholder) ? this.attr(field, 'placeholder') : "";
|
||||
html += (options.mode === 'edit' && field.editRequired) ? "required " : "";
|
||||
html += (options.mode === 'add' && field.addRequired) ? "required " : "";
|
||||
html += (field.ngRequired) ? "ng-required=\"" + field.ngRequired +"\"" : "";
|
||||
html += (field.readonly || field.showonly) ? "readonly " : "";
|
||||
html += (field.awDropFile) ? "aw-drop-file " : "";
|
||||
html += (field.awRequiredWhen) ? "data-awrequired-init=\"" + field.awRequiredWhen.init + "\" aw-required-when=\"" +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user