feat: #5272, allow changing user groups from manage users page
parent
ff8dfa049d
commit
05c9fe2735
@ -1,57 +1,19 @@
|
||||
.manage-users {
|
||||
min-height: 500px;
|
||||
|
||||
#users-container {
|
||||
border: 1px solid #eee;
|
||||
padding: 0px 20px 20px;
|
||||
|
||||
.users-box {
|
||||
display: inline-block;
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
vertical-align: top;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
height: auto;
|
||||
max-width: 145px;
|
||||
min-width: 145px;
|
||||
padding: 1rem;
|
||||
|
||||
img, .user-icon {
|
||||
.user-icon-style(80px, 4rem);
|
||||
}
|
||||
|
||||
a {
|
||||
margin-bottom:5px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.user-image {
|
||||
position: relative;
|
||||
|
||||
.labels {
|
||||
position: absolute;
|
||||
bottom: 0px;
|
||||
width: 100%;
|
||||
|
||||
span {
|
||||
.search {
|
||||
.form-control {
|
||||
width: 100%;
|
||||
opacity: 0.9;
|
||||
font-size: 10px;
|
||||
display: block;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.ui-selected {
|
||||
background: lighten(@brand-success, 25%);
|
||||
.page-admin-users {
|
||||
.group-card {
|
||||
margin: 2px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.ui-selecting {
|
||||
background: lighten(@brand-success, 40%);
|
||||
}
|
||||
.remove-group-icon {
|
||||
margin-left: 5px;
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
<!-- BEGIN users -->
|
||||
<div data-uid="{users.uid}">
|
||||
<h5>{users.username}</h5>
|
||||
<div class="group-area">
|
||||
<!-- BEGIN users.groups -->
|
||||
<div class="group-card pull-left" data-group-name="{users.groups.nameEscaped}">
|
||||
<a href="{config.relative_path}/admin/manage/groups/{users.groups.nameEncoded}"><span class="label label-default" style="color:{users.groups.textColor}; background-color: {users.groups.labelColor};"><!-- IF users.groups.icon --><i class="fa {users.groups.icon}"></i> <!-- ENDIF users.groups.icon -->{users.groups.displayName} <i class="remove-group-icon fa fa-times" role="button"></i></span></a>
|
||||
</div>
|
||||
<!-- END users.groups -->
|
||||
</div>
|
||||
<input data-uid="{users.uid}" class="form-control group-search" placeholder="[[admin/manage/users:add-group]]" />
|
||||
</div>
|
||||
<!-- END users -->
|
Loading…
Reference in New Issue