From 5cf84ddb60cc14a99458d21422a4c5fce8cf215d Mon Sep 17 00:00:00 2001 From: Alex Corey Date: Fri, 11 Oct 2019 12:03:17 -0400 Subject: [PATCH] Sys Aud can see CG forms, Adds correct CG form link, Disables CodeMirror This allows the System Auditor to see the container groups form in a disabled state. If the pod_spec_override has been changed that field will be open when the page renders but it will be disabled. It also greys out all code mirror text area fields for System Auditor. It adds the correct url for the Container Groups message bar to inform users of possible pitfalls associated with that feature. --- .../lib/components/code-mirror/_index.less | 5 ++++ .../add-container-group.view.html | 10 ++++--- .../edit-container-group.controller.js | 29 +++++++++++++------ .../instance-groups/instance-group.block.less | 1 + 4 files changed, 32 insertions(+), 13 deletions(-) diff --git a/awx/ui/client/lib/components/code-mirror/_index.less b/awx/ui/client/lib/components/code-mirror/_index.less index 6eeb936e79..d0e2d970e8 100644 --- a/awx/ui/client/lib/components/code-mirror/_index.less +++ b/awx/ui/client/lib/components/code-mirror/_index.less @@ -52,6 +52,11 @@ height: calc(~"100vh - 80px"); } +textarea[disabled] + div .CodeMirror-code{ + background-color: #ebebeb; + cursor: not-allowed; +} + @media screen and (min-width: 768px){ .NetworkingExtraVars .modal-dialog{ diff --git a/awx/ui/client/src/instance-groups/container-groups/add-container-group.view.html b/awx/ui/client/src/instance-groups/container-groups/add-container-group.view.html index 86ae509309..df8e6afee7 100644 --- a/awx/ui/client/src/instance-groups/container-groups/add-container-group.view.html +++ b/awx/ui/client/src/instance-groups/container-groups/add-container-group.view.html @@ -1,5 +1,5 @@
- +
This feature is tech preview, and is subject to change in a future release. Click here for documentation. @@ -21,13 +21,15 @@ {{ vm.form.extraVars.toggleLabel }} -
- +
+