- Introduced a new module for managing user groups (`usrgrp`) in the administration interface. - Implemented CRUD operations for user groups: list, create, rename, and delete. - Added authorization checks to ensure only users with appropriate permissions can manage groups. - Created corresponding frontend JavaScript and SCSS files for the new module. - Updated documentation to reflect the new group management functionality and its authorization model. - Added SQL stored procedures for group management operations. - Established a new login script for database access, ensuring proper security practices.
117 lines
3.0 KiB
SCSS
117 lines
3.0 KiB
SCSS
.usrfrm {
|
|
padding: 1.5rem 2rem;
|
|
|
|
.usr_grid {
|
|
border: 1px solid #e2e2e2;
|
|
border-radius: 0.5rem;
|
|
background: #fff;
|
|
box-shadow: 0 1px 3px rgba(50, 50, 50, 0.1);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.usr_row {
|
|
display: grid;
|
|
grid-template-columns: 2.75rem 1.4fr 1.6fr 1.6fr 8rem;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.55rem 1rem;
|
|
border-bottom: 1px solid #eee;
|
|
|
|
&:last-child { border-bottom: none; }
|
|
}
|
|
|
|
.usr_row_hd {
|
|
background: $fuchs_blau;
|
|
color: #fff;
|
|
font-weight: bold;
|
|
font-size: 0.85rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.02em;
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
|
|
.usr_row:not(.usr_row_hd) {
|
|
cursor: pointer;
|
|
transition: background-color 0.12s ease-in-out;
|
|
|
|
&:hover { background-color: #f3f6fb; }
|
|
|
|
&.selected {
|
|
background-color: rgba($fuchs_akzent, 0.12);
|
|
box-shadow: inset 3px 0 0 $fuchs_akzent;
|
|
}
|
|
}
|
|
|
|
.usr_avatar {
|
|
width: 2.1rem;
|
|
height: 2.1rem;
|
|
border-radius: 50%;
|
|
background: $fuchs_blau;
|
|
color: #fff;
|
|
font-size: 0.78rem;
|
|
font-weight: bold;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.usr_col_name { font-weight: 600; color: #222; }
|
|
.usr_col_email { color: #555; overflow-wrap: anywhere; }
|
|
.usr_col_groups { color: #555; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.usr_row_hd .usr_col_groups { font-size: inherit; }
|
|
|
|
.usr_pill {
|
|
display: inline-block;
|
|
padding: 0.1rem 0.6rem;
|
|
border-radius: 1rem;
|
|
font-size: 0.78rem;
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
}
|
|
.usr_pill_on { background: #e2f3da; color: #2f6d18; }
|
|
.usr_pill_off { background: #ececec; color: #777; }
|
|
|
|
.usr_empty {
|
|
padding: 1.5rem 1rem;
|
|
text-align: center;
|
|
color: #777;
|
|
}
|
|
|
|
.usr_err {
|
|
padding: 1rem 2rem;
|
|
color: #b00020;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.usrfrm {
|
|
padding: 0.75rem;
|
|
|
|
.usr_row { grid-template-columns: 2.25rem 1fr; grid-template-areas: "avatar name" "avatar email" "avatar groups" "avatar status"; }
|
|
.usr_row_hd { display: none; }
|
|
.usr_avatar { grid-area: avatar; }
|
|
.usr_col_name { grid-area: name; }
|
|
.usr_col_email { grid-area: email; font-size: 0.85rem; }
|
|
.usr_col_groups { grid-area: groups; font-size: 0.85rem; white-space: normal; }
|
|
.usr_col_status { grid-area: status; }
|
|
}
|
|
}
|
|
|
|
.usr_groups_dlg {
|
|
padding: 0.25rem 0;
|
|
|
|
.usr_group_row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: 0.35rem 0;
|
|
border-bottom: 1px solid #eee;
|
|
|
|
&:last-child { border-bottom: none; }
|
|
|
|
input[type="checkbox"] { margin: 0; }
|
|
label { margin: 0; font-weight: normal; }
|
|
}
|
|
}
|