diff --git a/awx/ui/client/src/job-submission/job-submission.partial.html b/awx/ui/client/src/job-submission/job-submission.partial.html index 0452e77e4d..53d043060b 100644 --- a/awx/ui/client/src/job-submission/job-submission.partial.html +++ b/awx/ui/client/src/job-submission/job-submission.partial.html @@ -258,7 +258,8 @@
- +
diff --git a/awx/ui/client/src/scheduler/scheduleToggle.block.less b/awx/ui/client/src/scheduler/scheduleToggle.block.less index bb30e7e60f..3cdb8f8f40 100644 --- a/awx/ui/client/src/scheduler/scheduleToggle.block.less +++ b/awx/ui/client/src/scheduler/scheduleToggle.block.less @@ -1,5 +1,14 @@ /** @define ScheduleToggle */ +.Form-formGroup--disabled .ScheduleToggle { + cursor: not-allowed; + border-color: @default-link !important; + .ScheduleToggle-switch { + background-color: @d7grey !important; + cursor: not-allowed; + } +} + .ScheduleToggle { border-radius: 5px; border: 1px solid @default-link; diff --git a/awx/ui/client/src/shared/form-generator.js b/awx/ui/client/src/shared/form-generator.js index 77c851a744..c5f067a782 100644 --- a/awx/ui/client/src/shared/form-generator.js +++ b/awx/ui/client/src/shared/form-generator.js @@ -758,10 +758,12 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat html += label(labelOptions); - html += `
- - + +
`; } diff --git a/awx/ui/client/src/templates/job_templates/job-template.form.js b/awx/ui/client/src/templates/job_templates/job-template.form.js index b8092c37a2..444fb88dd5 100644 --- a/awx/ui/client/src/templates/job_templates/job-template.form.js +++ b/awx/ui/client/src/templates/job_templates/job-template.form.js @@ -258,6 +258,7 @@ function(NotificationsList, CompletedJobsList, i18n) { variable: 'ask_diff_mode_on_launch', text: i18n._('Prompt on launch') }, + ngDisabled: '!(job_template_obj.summary_fields.user_capabilities.edit || canAddJobTemplate)' }, checkbox_group: { label: i18n._('Options'),