WebUI: User management full implementation.
Added webui user accounts management. This support
both redfish and rest based backend API calls
depending on redfishSupportEnabled flag.
It does following actions:
- View all user list and there properties like
name, privilege, enabled state, Locked etc..
- Create new user account.
- Delete existing user account.
- Update the existing user properties like
password, privilege, enabled state.
Unit Test:
- Viewed all user information is proper or not.
- Created new user and validated.
- Deleted specific user and checked.
- Modified user info and validated the change.
All tests are done by enabling and disabling
redfishSupportEnabled flag using conifg.json.
Change-Id: Ifecf63844dc42c44771509958bf75947a92997ac
Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
diff --git a/app/users/styles/index.scss b/app/users/styles/index.scss
index 5162e09..da9c25e 100644
--- a/app/users/styles/index.scss
+++ b/app/users/styles/index.scss
@@ -1 +1 @@
-@import "./user-accounts.scss";
\ No newline at end of file
+@import "./user-accounts.scss";
diff --git a/app/users/styles/user-accounts.scss b/app/users/styles/user-accounts.scss
index 891b3a9..fb6d162 100644
--- a/app/users/styles/user-accounts.scss
+++ b/app/users/styles/user-accounts.scss
@@ -2,6 +2,9 @@
.user-manage__form {
width: 100%;
+ .dropdown__button {
+ margin-bottom: 1.2em;
+ }
label {
width: 100%;
min-width: 210px;
@@ -12,13 +15,16 @@
width: 225px;
height: $userInputHeight;
}
+ select {
+ width: 225px;
+ height: $userInputHeight;
+ }
fieldset {
display: block;
padding-left: 1.5em;
margin-bottom: 1em;
border-bottom: 1px solid $medgrey;
}
-
.user-manage__input-wrapper {
position: relative;
height: $userInputHeight;
@@ -31,15 +37,22 @@
position: absolute;
right: 5px;
padding: 3px;
+ margin-right: 20px;
color: $primebtn__bg;
font-size: .8em;
@include vertCenter;
}
- .user-manage__submit-wrapper button {
- float: right;
- margin-left: .5em;
+ .user-manage__submit-wrapper {
+ width: 100%;
+ margin-top: 3em;
+ padding-top: 1em;
+ border-top: 1px solid $medgrey;
+ button {
+ float: right;
+ margin: .5em;
+ }
}
- .change-password__error
+ .user-manage__error
{
background: lighten($error-color, 20%);
padding: 1em;
@@ -49,9 +62,8 @@
color: $black;
font-family: "Courier New", Helvetica, Arial, sans-serif;
font-weight: 700;
- width: 325px;
}
- .change-password__success
+ .user-manage__success
{
color: $primebtn__bg;
padding: 1em;