summaryrefslogtreecommitdiffstats
path: root/app/users/styles/user-accounts.scss
Commit message (Collapse)AuthorAgeFilesLines
* Update users navigation sectionmiramurali232019-09-261-55/+0
| | | | | | | | | | | | - Changed the section name to be access-control - Moved LDAP Settings and Certificate Management to access-control navigation - Changed Manage User Account subsection name to Local User Management Resolves: openbmc/phosphor-webui#619 Signed-off-by: Mira Murali <miramurali23@gmail.com> Signed-off-by: Derick Montague <derick.montague@ibm.com> Change-Id: I0d94c80c295b997d94c04330fd87f4fc4d229bf8
* Add batch action functionality to table ComponentYoshie Muranaka2019-09-241-8/+0
| | | | | | | | | | | | | | | | These changes aren't currently implemented on any table. It will be added to event logs and local user table. - Create tableCheckbox component to handle custom styles and indeterminate state which needs to be set with JS - Update tableComponent layout to allow transition for toolbar. Updated user-accounts layout and styles to account for these changes Tested on Chrome, Safari, Firefox, Edge, IE Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: Ic57a090db1ef66f9d33facfdc425db868ae8d8c6
* Add user role privilege tableYoshie Muranaka2019-08-271-0/+32
| | | | | | | | Created a directive to handle display of user privilege roles on the local user management page. Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I83caea33356012752c7a67301fa2a372f0c28620
* Update local user table to new designYoshie Muranaka2019-08-131-69/+25
| | | | | | | | | | | | | | | | | | | | | | This commit will introduce a reusable data table component. By creating a reusable component, we can ensure tables in the GUI will look consistent and common table actions (sort, select row) are shared. - Created new components directory to store shared components - Add password-confirmation directive - Remove some error handling from API utils so it can be handled in the UI TODO: - Add show/hide toggle to password fields - Enhance table component with icons - Manual user unlock - Batch table actions - Role table Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I03c95874d2942a2450a5da2f1d2a8bb895aa1746
* Clean up color valuesYoshie Muranaka2019-07-091-8/+7
| | | | | | | | | | | | | This update will clean up slight color variations in the code base by creating and using Sass color variables instead of hex values. Available colors are defined in colors.scss. Any usage of CSS color properties should refer to the mapped color variables in colors.scss. - Removed tags.scss file since tag components no longer used Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I045030a158469e59d07a9fa8cd8aa9f125f0d383
* Consolidate button stylesYoshie Muranaka2019-06-211-25/+3
| | | | | | | | | | | | | | | | | | | | | | | | | This patchset will create consistent button styling according to the styleguide and remove redundant button styles by creating reusable button classes. This patchset also implements a consistent strategy for including icon assets. Currently, svg icons are imported as CSS background images or inlined into the markup. Inlining an svg is preferred, especially when used with buttons or links so the colors can be easily changed for different states (hover, focus, disabled) without having to request variants. The icon provider allows us to inline svgs without cluttering the markup. Webpack config was adjusted to use svg-inline-loader when resolving svgs that are used by the icon provider directive. - All svgs were optimized to remove unncessary information. - Removed unused svg color variants - Moved icons used by icon provider to separate directory to avoid Webpack parsing the files twice - Small changes to navigation icons Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I1ca214b74fc502e6b6e760cfee88b48110237c43
* Change button styles from rounded to straight cornersYoshie Muranaka2019-05-311-7/+2
| | | | | | | | | | | | | | This will create more visual consistency between the components in the GUI since there are elements, such as text fields and dropdowns that are styled with straight corners. - Removes border radius from buttons - Removes some redundant styles - Adds input types that aren't currently inheriting defined styles Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com> Change-Id: I6ff1bde91e2e57df01484dd20003925cd914ffa2
* Add form validation and toast messages to user mgmtbeccabroek2019-04-051-3/+4
| | | | | | | | | | | | | | | | | | | | | | Adds form field validation with ng-messages and toast messages with toast service to the User management page. Also adds check that the number of users does not exceed 15 and that the username does not already exist prior to sending call to the backend. Resolves openbmc/phosphor-webui#73 Resolves openbmc/phosphor-webui#74 Tested: Able to add/delete/edit users as before. Page presents appropriate message to user upon creating or updating a user when: 1. A field is missing 2. Passwords don't match 3. Password is longer than max or shorter than min 4. Username already exists when creating new user 5. User tries to create the 16th user Change-Id: I5ae1a7979f7a396b0fb2ea280b875afc805a7f9f Signed-off-by: beccabroek <beccabroek@gmail.com>
* WebUI: Support for configure failed login attemptsAppaRao Puli2019-03-271-6/+15
| | | | | | | | | | | | | | | | This commit adds the support for failed login attempts configuration. With this user can configure the number of failed login attempts and account lockout duration. This also adds provision to view other user account properties like MaxPassword, MinPassword etc. Tested By: Loaded the Webui and modified values like Failed login Attempts and Account lockout duration. Also tested other account properties view. Change-Id: I6abd5a16771956640ba6b6d81c1c7ad9503067b1 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* webui: user management bug fixesAppaRao Puli2019-01-231-0/+19
| | | | | | | | | | | | | Bug fixes in user management - Removed granular error messages which is causing issues in non-redfish (rest api) case. - Set default password show button state. - Delete button missing in table issue fix. - Role dropdown not proper issue fix. - Associating label element with 'for' attributes. Change-Id: I6c5bb25837bb2fcbcb131a88060e6acf603ca5a2 Signed-off-by: AppaRao Puli <apparao.puli@linux.intel.com>
* WebUI: User management full implementation.AppaRao Puli2019-01-021-7/+19
| | | | | | | | | | | | | | | | | | | | | | | | 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>
* Move to Bootstrap 4Gunnar Mills2018-11-151-0/+2
| | | | | | | | | | | | | | | | | | | | | Bootstrap < 4.1.2 has the following CVE: https://nvd.nist.gov/vuln/detail/CVE-2018-14041 Removed bootstrap-theme.css due to "Replaced the separate optional theme with configurable options via SCSS variables (e.g., $enable-gradients: true)." Added "width: 100%" to a few places where width 100% was no longer getting inherited. Moved a few elements and adjusted styles to get the same look as before. See https://getbootstrap.com/docs/4.0/migration/ for more information. Tested: Manually on a Witherspoon. Change-Id: I0a72665ac1ca6eacd0b553a585b1fb15e14ae62c Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Display error and success textGunnar Mills2018-03-231-1/+21
| | | | | | | | | | | | | | When an error occurs changing the password, display the appropriate error message. On a successful password change also display text. Resolves openbmc/openbmc#2741 Resolves openbmc/openbmc#2969 Tested: Made all these errors show and also changed the password on a Witherspoon. Change-Id: I9808df9888175de988ecb0781023424315a1ec53 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
* Adjust layout of user account pageMichael Davis2017-09-201-4/+7
| | | | | | | | - password inputs now inline to tighten up page height. - Adjust dimension of inputs to better match designs. Change-Id: Id349020541e24440b46b630b0fec2433778b78ce Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Created user account pageMichael Davis2017-09-201-0/+37
| | | | | Change-Id: If3cc2642010dd65d33deae812aec17150daca541 Signed-off-by: Michael Davis <michael.s.davis@ibm.com>
* Change navigation structureIftekharul Islam2017-09-201-0/+0
Change-Id: I12c819293ce1eda188dc9f257ae9370f1b73cb18 Signed-off-by: Iftekharul Islam <iislam@us.ibm.com>
OpenPOWER on IntegriCloud