members block OK + delete-circle button added
This commit is contained in:
parent
3940bafda3
commit
a7faff9b88
@ -2,32 +2,21 @@
|
|||||||
|
|
||||||
include templates/hd-user-avatar.pug
|
include templates/hd-user-avatar.pug
|
||||||
|
|
||||||
sib-widget(name='circle-team-template')
|
sib-widget(name='hd-user-groups')
|
||||||
template
|
template ${await value.name}
|
||||||
sib-widget(name='hd-user-groups')
|
|
||||||
template ${await value.name}
|
|
||||||
|
|
||||||
|
sib-widget(name='team-template')
|
||||||
|
template
|
||||||
sib-display(
|
sib-display(
|
||||||
data-src='${await value}'
|
data-src='${await value.user}'
|
||||||
fields='account.picture, sup(name, groups), sub(profile.city)'
|
fields='account.picture, sup(name, groups), sub(profile.city)'
|
||||||
|
|
||||||
widget-account.picture='hd-user-avatar'
|
widget-account.picture='hd-user-avatar'
|
||||||
widget-groups='hd-user-groups'
|
|
||||||
|
|
||||||
multiple-groups=''
|
multiple-groups=''
|
||||||
|
widget-groups='hd-user-groups'
|
||||||
)
|
)
|
||||||
|
|
||||||
//-div(name='team')
|
|
||||||
div(name='user.thumb')
|
|
||||||
span ${await value.name}
|
|
||||||
sib-display(
|
|
||||||
data-src="${await value.groups}",
|
|
||||||
fields='name'
|
|
||||||
)
|
|
||||||
span ${await value.profile.city}
|
|
||||||
|
|
||||||
sib-widget(name='circle-delete-template')
|
|
||||||
template
|
|
||||||
sib-delete(
|
sib-delete(
|
||||||
data-src="${await value['@id']}"
|
data-src="${await value['@id']}"
|
||||||
data-label='Delete from circle'
|
data-label='Delete from circle'
|
||||||
@ -50,21 +39,26 @@
|
|||||||
|
|
||||||
widget-owner='sib-form-auto-completion'
|
widget-owner='sib-form-auto-completion'
|
||||||
widget-description='sib-form-textarea'
|
widget-description='sib-form-textarea'
|
||||||
|
|
||||||
|
submit-button='Register'
|
||||||
|
)
|
||||||
|
|
||||||
|
sib-delete(
|
||||||
|
bind-resources
|
||||||
|
data-label='Delete circle'
|
||||||
|
resourceDeleted=''
|
||||||
)
|
)
|
||||||
|
|
||||||
h3 List of members
|
h2 List of members
|
||||||
|
|
||||||
div.table-header
|
div.table-header
|
||||||
div.cell.un Name
|
div.cell Name
|
||||||
div.cell.deux Status
|
div.cell Access
|
||||||
|
|
||||||
sib-display.table-body(
|
sib-display.table-body(
|
||||||
bind-resources
|
bind-resources
|
||||||
fields='team, members'
|
fields='members'
|
||||||
|
|
||||||
multiple-team=''
|
|
||||||
multiple-members=''
|
multiple-members=''
|
||||||
|
widget-members='team-template'
|
||||||
widget-team='circle-team-template'
|
|
||||||
widget-members='circle-delete-template'
|
|
||||||
)
|
)
|
||||||
|
@ -151,15 +151,19 @@
|
|||||||
|
|
||||||
sib-form-auto-completion.member-select {
|
sib-form-auto-completion.member-select {
|
||||||
align-self: flex-end;
|
align-self: flex-end;
|
||||||
font-weight: normal;
|
|
||||||
|
>label:first-of-type>div {
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
.ss-single-selected {
|
.ss-single-selected {
|
||||||
background-color: $color-222-57-95;
|
background-color: $color-222-57-95;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
font-weight: normal;
|
||||||
margin-top: 0.8rem;
|
margin-top: 0.8rem;
|
||||||
min-height: 3.9rem;
|
min-height: 4.4rem;
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
|
|
||||||
@ -170,6 +174,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ss-content .ss-list .ss-option {
|
.ss-content .ss-list .ss-option {
|
||||||
|
font-weight: normal;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
h2 {
|
||||||
|
font-size: 1.7rem;
|
||||||
|
font-weight: bold;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
.table-header {
|
.table-header {
|
||||||
background: $color-228-25-79;
|
background: $color-228-25-79;
|
||||||
color: white;
|
color: white;
|
||||||
@ -19,102 +25,110 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.table-body>div {
|
.table-body div team-template {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
>* {
|
>* {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
|
||||||
|
|
||||||
/*>*:nth-child(even) {
|
|
||||||
display: flex;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
/*>*:nth-child(odd) {
|
|
||||||
border-left: 1px solid $color-228-25-79;
|
|
||||||
}*/
|
|
||||||
|
|
||||||
circle-team-template {
|
|
||||||
display: block;
|
|
||||||
border-bottom: 1px solid $color-228-25-79;
|
border-bottom: 1px solid $color-228-25-79;
|
||||||
border-left: 1px solid $color-228-25-79;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
circle-delete-template {
|
>*:nth-child(odd) {
|
||||||
display: block;
|
|
||||||
border-bottom: 1px solid $color-228-25-79;
|
|
||||||
border-left: 1px solid $color-228-25-79;
|
border-left: 1px solid $color-228-25-79;
|
||||||
border-right: 1px solid $color-228-25-79;
|
border-right: 1px solid $color-228-25-79;
|
||||||
|
padding: 0 2.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
>*:nth-child(even) {
|
||||||
|
display: flex;
|
||||||
|
border-right: 1px solid $color-228-25-79;
|
||||||
|
justify-content: flex-end;
|
||||||
|
padding: 2.5rem 2.2rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sib-multiple {
|
sib-multiple[widget='team-template'] {
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
>team-template[name='members'] {
|
>div>team-template>sib-display>div {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-column-gap: 1.6rem;
|
grid-column-gap: 1.6rem;
|
||||||
grid-template-columns: 7vh auto;
|
grid-template-columns: 7vh auto;
|
||||||
grid-template-rows: repeat(2, 5.2vh);
|
grid-template-rows: repeat(2, 5.2vh);
|
||||||
|
|
||||||
>sib-display:first-child {
|
>[name='account.picture'] {
|
||||||
|
align-items: center;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
|
background-color: $color-213-20-91;
|
||||||
|
border-radius: 50%;
|
||||||
|
display: flex;
|
||||||
grid-column: 1 / span 1;
|
grid-column: 1 / span 1;
|
||||||
grid-row: 1 / span 2;
|
grid-row: 1 / span 2;
|
||||||
|
height: 7vh;
|
||||||
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
width: 7vh;
|
||||||
|
|
||||||
div {
|
img {
|
||||||
background-color: $color-0-0-100;
|
background-color: white;
|
||||||
border-radius: 50%;
|
height: 100%;
|
||||||
height: 7vh;
|
left: 0;
|
||||||
overflow: hidden;
|
object-fit: cover;
|
||||||
position: relative;
|
position: absolute;
|
||||||
width: 7vh;
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
object {
|
||||||
height: 100%;
|
height: 45%;
|
||||||
left: 0;
|
width: 45%;
|
||||||
object-fit: cover;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
>div:nth-child(2) {
|
>[name='sup'] {
|
||||||
align-self: end;
|
align-self: end;
|
||||||
display: flex;
|
display: flex;
|
||||||
grid-column: 2 / span 1;
|
grid-column: 2 / span 1;
|
||||||
grid-row: 1 / span 1;
|
grid-row: 1 / span 1;
|
||||||
|
margin-bottom: 0.50rem;
|
||||||
|
|
||||||
span {
|
[name='name'] {
|
||||||
align-self: center;
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
span~sib-display {
|
sib-multiple {
|
||||||
|
display: flex;
|
||||||
|
margin-left: 1rem;
|
||||||
|
|
||||||
>div {
|
[name='groups'] {
|
||||||
display: flex;
|
@extend %user-role;
|
||||||
margin-left: 1rem;
|
|
||||||
|
|
||||||
sib-multiple [name='name'] {
|
|
||||||
@extend %user-role;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
>span:nth-child(3) {
|
>[name='sub'] {
|
||||||
align-self: start;
|
align-self: start;
|
||||||
grid-column: 2 / span 1;
|
grid-column: 2 / span 1;
|
||||||
grid-row: 2 / span 1;
|
grid-row: 2 / span 1;
|
||||||
|
margin-top: 0.50rem;
|
||||||
|
|
||||||
|
>[name$='profile.city']:not(:empty) {
|
||||||
|
@include mdi('atom');
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
color: $color-43-100-50;
|
||||||
|
margin-right: 0.50rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user