Skip to content

Commit

Permalink
test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Jul 13, 2024
1 parent 4e8651d commit d6eab19
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ansibleguy-webui/aw/static/js/jobs/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,17 @@ $( document ).ready(function() {
for (let field of form[0]) {
if (['input', 'select'].includes(field.localName)) {
if (field.name.startsWith('prompt_')) {
let fieldName = field.name.replaceAll('prompt_', '');
let promptNameParts = field.name.split('_');
if (promptNameParts.length == 2) {
prompts.push(promptNameParts[1]);
if (PROMPT_SIMPLE_TYPES.includes(fieldName)) {
if (field.value == 'True') {
prompts.push(fieldName);
}
continue;
}

let promptId = promptNameParts[1];
let fieldName = promptNameParts[2];
fieldName = promptNameParts[2];
if (promptFields[promptId] === undefined) {
promptFields[promptId] = [];
}
Expand Down
1 change: 1 addition & 0 deletions src/ansibleguy-webui/aw/templatetags/form_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def get_form_field_input(bf: BoundField, existing: dict) -> str:
'env_vars': False,
'cmd_args': False,
'verbosity': False,
'credentials': False,
}


Expand Down

0 comments on commit d6eab19

Please sign in to comment.