mirror of
https://github.com/ansible/awx.git
synced 2026-03-19 09:57:33 -02:30
move wf and jt form launch buttons to the left instead of the right
This commit is contained in:
@@ -393,6 +393,13 @@ function(NotificationsList, i18n) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
buttons: { //for now always generates <button> tags
|
buttons: { //for now always generates <button> tags
|
||||||
|
launch: {
|
||||||
|
component: 'at-launch-template',
|
||||||
|
templateObj: 'job_template_obj',
|
||||||
|
ngShow: '(job_template_obj.summary_fields.user_capabilities.start || canAddJobTemplate)',
|
||||||
|
ngDisabled: 'disableLaunch || job_template_form.$dirty',
|
||||||
|
showTextButton: 'true'
|
||||||
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
ngClick: 'formCancel()',
|
ngClick: 'formCancel()',
|
||||||
ngShow: '(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
|
ngShow: '(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
|
||||||
@@ -405,13 +412,6 @@ function(NotificationsList, i18n) {
|
|||||||
ngClick: 'formSave()', //$scope.function to call on click, optional
|
ngClick: 'formSave()', //$scope.function to call on click, optional
|
||||||
ngDisabled: "job_template_form.$invalid",//true //Disable when $pristine or $invalid, optional and when can_edit = false, for permission reasons
|
ngDisabled: "job_template_form.$invalid",//true //Disable when $pristine or $invalid, optional and when can_edit = false, for permission reasons
|
||||||
ngShow: '(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
|
ngShow: '(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)'
|
||||||
},
|
|
||||||
launch: {
|
|
||||||
component: 'at-launch-template',
|
|
||||||
templateObj: 'job_template_obj',
|
|
||||||
ngShow: '(job_template_obj.summary_fields.user_capabilities.start || canAddJobTemplate)',
|
|
||||||
ngDisabled: 'disableLaunch || job_template_form.$dirty',
|
|
||||||
showTextButton: 'true'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -139,6 +139,13 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
buttons: { //for now always generates <button> tags
|
buttons: { //for now always generates <button> tags
|
||||||
|
launch: {
|
||||||
|
component: 'at-launch-template',
|
||||||
|
templateObj: 'workflow_job_template_obj',
|
||||||
|
ngShow: '(workflow_job_template_obj.summary_fields.user_capabilities.start || canAddWorkflowJobTemplate)',
|
||||||
|
ngDisabled: 'disableLaunch || workflow_job_template_form.$dirty',
|
||||||
|
showTextButton: 'true'
|
||||||
|
},
|
||||||
cancel: {
|
cancel: {
|
||||||
ngClick: 'formCancel()',
|
ngClick: 'formCancel()',
|
||||||
ngShow: '(workflow_job_template_obj.summary_fields.user_capabilities.edit || canAddWorkflowJobTemplate)'
|
ngShow: '(workflow_job_template_obj.summary_fields.user_capabilities.edit || canAddWorkflowJobTemplate)'
|
||||||
@@ -151,13 +158,6 @@ export default ['NotificationsList', 'i18n', function(NotificationsList, i18n) {
|
|||||||
ngClick: 'formSave()', //$scope.function to call on click, optional
|
ngClick: 'formSave()', //$scope.function to call on click, optional
|
||||||
ngDisabled: "workflow_job_template_form.$invalid || can_edit!==true", //Disable when $pristine or $invalid, optional and when can_edit = false, for permission reasons
|
ngDisabled: "workflow_job_template_form.$invalid || can_edit!==true", //Disable when $pristine or $invalid, optional and when can_edit = false, for permission reasons
|
||||||
ngShow: '(workflow_job_template_obj.summary_fields.user_capabilities.edit || canAddWorkflowJobTemplate)'
|
ngShow: '(workflow_job_template_obj.summary_fields.user_capabilities.edit || canAddWorkflowJobTemplate)'
|
||||||
},
|
|
||||||
launch: {
|
|
||||||
component: 'at-launch-template',
|
|
||||||
templateObj: 'workflow_job_template_obj',
|
|
||||||
ngShow: '(workflow_job_template_obj.summary_fields.user_capabilities.start || canAddWorkflowJobTemplate)',
|
|
||||||
ngDisabled: 'disableLaunch || workflow_job_template_form.$dirty',
|
|
||||||
showTextButton: 'true'
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user