diff --git a/styles/sections/_application_edit.scss b/styles/sections/_application_edit.scss index 94afb41e..8ff79b7b 100644 --- a/styles/sections/_application_edit.scss +++ b/styles/sections/_application_edit.scss @@ -91,9 +91,23 @@ margin-bottom: 8 * $gap; text-align: left; - .usa-input { + .form-row { margin: $gap * 2; + } + .usa-alert { + margin: -0.5em 0; + padding: $gap; + background-image: unset; + + &-body { + padding: 0; + width: 100%; + display: unset; + } + } + + .usa-input { &__title-inline { font-weight: $font-bold; } @@ -102,12 +116,28 @@ margin-bottom: 0; } - .env-role__no-access { + &.env-role__no-access { .usa-input__title-inline, .usa-input__help { color: $color-gray; } } + + &__choices { + &.revoke-button label { + padding: 1rem 2rem; + + &::before { + display: none; + } + + &.link { + color: $color-blue; + text-decoration: underline; + text-align: right; + } + } + } } &__head { @@ -118,15 +148,69 @@ margin: 0.5em 0; } } - - .form-row { - margin: 0; - } } -.environment-name--gray { - font-weight: $font-normal; - color: $color-gray-medium; +.environment-role { + padding: ($gap * 2) 0; + + h4 { + margin-bottom: $gap / 4; + } + + &__users { + background-color: $color-gray-lightest; + padding: ($gap * 1.2) ($gap * 0.6); + font-size: $small-font-size; + display: flex; + flex-wrap: wrap; + + .environment-role__user { + background-color: $color-white; + border-radius: 0.5rem; + padding: ($gap / 2) $gap; + border: solid 2px $color-blue; + margin: $gap; + white-space: nowrap; + width: 20rem; + position: relative; + height: 3.6rem; + + &-field { + position: absolute; + background-color: $color-white; + margin-top: $gap * 2; + padding: $gap; + left: -0.1rem; + border: solid 1px $color-gray-light; + width: 20rem; + z-index: 3; + + .usa-input { + margin: 0; + + li { + background-color: $color-white; + border: none; + } + } + } + + &.unassigned { + border: solid 1px $color-gray-light; + } + + .icon-link { + padding: 0; + } + } + + .environment-role__no-user { + margin: $gap; + padding: ($gap / 2) $gap; + font-weight: $font-normal; + height: 3.6rem; + } + } } .application-list-item { diff --git a/templates/applications/fragments/member_form_fields.html b/templates/applications/fragments/member_form_fields.html index 5c43c277..7b57cac1 100644 --- a/templates/applications/fragments/member_form_fields.html +++ b/templates/applications/fragments/member_form_fields.html @@ -1,55 +1,87 @@ +{% from "components/alert.html" import Alert %} {% from "components/checkbox_input.html" import CheckboxInput %} {% from "components/text_input.html" import TextInput %} {% from "components/phone_input.html" import PhoneInput %} {% macro EnvRoleInput(field, member_role_id=None) %} {% set role = field.role.data if not field.deleted.data else "Access Suspended" %} -
+ {{ role }} +
++ Suspended access cannot be modified. +
+ {%- endif %} + {{ field.environment_id() }}- Suspended access cannot be modified. -
- {%- endif %} - {{ field.environment_id() }} -