mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 22:46:01 -03:30
Playbook select list finally works on edit. Woot\!
This commit is contained in:
@@ -31,6 +31,7 @@ angular.module('JobTemplateFormDefinition', [])
|
||||
job_type: {
|
||||
label: 'Job Type',
|
||||
type: 'select',
|
||||
ngOptions: 'type.label for type in job_type_options',
|
||||
default: 'run',
|
||||
addRequired: true,
|
||||
editRequired: true
|
||||
@@ -56,6 +57,7 @@ angular.module('JobTemplateFormDefinition', [])
|
||||
playbook: {
|
||||
label: 'Playbook',
|
||||
type:'select',
|
||||
ngOptions: 'book for book in playbook_options',
|
||||
id: 'playbook-select',
|
||||
addRequired: true,
|
||||
editRequired: true
|
||||
@@ -98,7 +100,8 @@ angular.module('JobTemplateFormDefinition', [])
|
||||
extra_vars: {
|
||||
label: 'Extra Variables',
|
||||
type: 'textarea',
|
||||
rows: 10,
|
||||
rows: 6,
|
||||
class: 'span4',
|
||||
addRequired: false,
|
||||
editRequired: false
|
||||
}
|
||||
@@ -108,7 +111,7 @@ angular.module('JobTemplateFormDefinition', [])
|
||||
save: {
|
||||
label: 'Save',
|
||||
icon: 'icon-ok',
|
||||
class: 'btn btn-success',
|
||||
class: 'btn-success',
|
||||
ngClick: 'formSave()', //$scope.function to call on click, optional
|
||||
ngDisabled: true //Disable when $pristine or $invalid, optional
|
||||
},
|
||||
@@ -116,7 +119,6 @@ angular.module('JobTemplateFormDefinition', [])
|
||||
ngClick: 'formReset()',
|
||||
label: 'Reset',
|
||||
icon: 'icon-remove',
|
||||
class: 'btn',
|
||||
ngDisabled: true //Disabled when $pristine
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user