mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
Added default values to the required job template survey questions
This is really to fix #1445, the problem being that "" does not pass float validity, and the show/hide was triggering a check which included the hidden-but-still-there float fields. So this is an easy work around, and I think it's better UX as well since these values are required to be filled in in many cases. Fix survey maker add button after toggling password visibility
This commit is contained in:
@@ -204,16 +204,16 @@ export default
|
||||
scope.default_textarea = "";
|
||||
scope.default_password = "" ;
|
||||
scope.choices = "";
|
||||
scope.text_min = "";
|
||||
scope.text_max = "" ;
|
||||
scope.textarea_min = "";
|
||||
scope.textarea_max = "" ;
|
||||
scope.password_min = "" ;
|
||||
scope.password_max = "" ;
|
||||
scope.int_min = "";
|
||||
scope.int_max = "";
|
||||
scope.float_min = "";
|
||||
scope.float_max = "";
|
||||
scope.text_min = 1;
|
||||
scope.text_max = 1024 ;
|
||||
scope.textarea_min = 1;
|
||||
scope.textarea_max = 4096;
|
||||
scope.password_min = 1;
|
||||
scope.password_max = 32;
|
||||
scope.int_min = 0;
|
||||
scope.int_max = 100;
|
||||
scope.float_min = 0.0;
|
||||
scope.float_max = 100.0;
|
||||
}
|
||||
|
||||
// Sets all of our scope variables used for adding/editing a question back to a clean state
|
||||
|
||||
Reference in New Issue
Block a user