diff --git a/awx/ui/client/legacy-styles/ansible-ui.less b/awx/ui/client/legacy-styles/ansible-ui.less index a511ffa33f..8bd22b2f5f 100644 --- a/awx/ui/client/legacy-styles/ansible-ui.less +++ b/awx/ui/client/legacy-styles/ansible-ui.less @@ -2239,3 +2239,22 @@ button[disabled], html input[disabled] { cursor: not-allowed; } + +.CodeMirror--disabled .CodeMirror.cm-s-default, +.CodeMirror--disabled .CodeMirror-line { + background-color: #f6f6f6; +} + +.CodeMirror--disabled .CodeMirror-gutter.CodeMirror-lint-markers, +.CodeMirror--disabled .CodeMirror-gutter.CodeMirror-linenumbers { + background-color: #ebebeb; + color: @b7grey; +} + +.CodeMirror--disabled .CodeMirror-lines { + cursor: default; +} + +.CodeMirror--disabled .CodeMirror-cursors { + display: none; +} diff --git a/awx/ui/client/src/lists/InventoryGroups.js b/awx/ui/client/src/lists/InventoryGroups.js index c2fad80d1a..5fade7c26c 100644 --- a/awx/ui/client/src/lists/InventoryGroups.js +++ b/awx/ui/client/src/lists/InventoryGroups.js @@ -140,7 +140,7 @@ export default awToolTip: "{{ group.group_schedule_tooltip }}", ngClass: "group.scm_type_class", dataPlacement: 'top', - ngShow: "!(group.summary_fields.inventory_source.source === '') && group.summary_fields.user_capabilities.schedule" + ngShow: "!(group.summary_fields.inventory_source.source === '')" }, edit: { //label: 'Edit', diff --git a/awx/ui/client/src/lists/Projects.js b/awx/ui/client/src/lists/Projects.js index 26eb532f0e..4dac279846 100644 --- a/awx/ui/client/src/lists/Projects.js +++ b/awx/ui/client/src/lists/Projects.js @@ -97,7 +97,6 @@ export default awToolTip: "{{ project.scm_schedule_tooltip }}", ngClass: "project.scm_type_class", dataPlacement: 'top', - ngShow: "project.summary_fields.user_capabilities.schedule" }, edit: { ngClick: "editProject(project.id)", diff --git a/awx/ui/client/src/lists/ScheduledJobs.js b/awx/ui/client/src/lists/ScheduledJobs.js index 8afde66081..736ad61e4e 100644 --- a/awx/ui/client/src/lists/ScheduledJobs.js +++ b/awx/ui/client/src/lists/ScheduledJobs.js @@ -25,6 +25,7 @@ export default ngClick: "toggleSchedule($event, schedule.id)", nosort: true, awToolTip: "{{ schedule.play_tip }}", + ngDisabled: "!schedule.summary_fields.user_capabilities.edit", dataTipWatch: "schedule.play_tip", dataPlacement: 'top' }, diff --git a/awx/ui/client/src/lists/Schedules.js b/awx/ui/client/src/lists/Schedules.js index 343f3c472d..818863aa78 100644 --- a/awx/ui/client/src/lists/Schedules.js +++ b/awx/ui/client/src/lists/Schedules.js @@ -20,6 +20,7 @@ export default fields: { toggleSchedule: { + ngDisabled: "!schedule.summary_fields.user_capabilities.edit", label: '', columnClass: 'List-staticColumn--toggle', type: "toggle", diff --git a/awx/ui/client/src/lists/Templates.js b/awx/ui/client/src/lists/Templates.js index 67728dada0..a2dca9205d 100644 --- a/awx/ui/client/src/lists/Templates.js +++ b/awx/ui/client/src/lists/Templates.js @@ -94,7 +94,6 @@ export default ngClick: 'scheduleJob(template)', awToolTip: i18n._('Schedule future job template runs'), dataPlacement: 'top', - ngShow: 'template.summary_fields.user_capabilities.schedule' }, copy: { label: i18n._('Copy'), diff --git a/awx/ui/client/src/management-jobs/scheduler/schedulerForm.partial.html b/awx/ui/client/src/management-jobs/scheduler/schedulerForm.partial.html index b50ab20ec8..e4302004df 100644 --- a/awx/ui/client/src/management-jobs/scheduler/schedulerForm.partial.html +++ b/awx/ui/client/src/management-jobs/scheduler/schedulerForm.partial.html @@ -21,6 +21,7 @@ Name Start Date
- +
Repeat frequency +
A value is required.
This is not a valid number.
@@ -175,6 +182,7 @@ Every *
@@ -270,6 +280,7 @@ *