Playbook select list finally works on edit. Woot\!

This commit is contained in:
chouseknecht
2013-05-17 16:14:33 -04:00
parent 94ff36b62f
commit 4abe92a7a6
15 changed files with 69 additions and 60 deletions

View File

@@ -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
}
},