fix a lot of problems and add js for menus
This commit is contained in:
parent
36a045cacb
commit
83e6957934
@ -14,7 +14,7 @@ sib-notifications(
|
|||||||
|
|
||||||
include templates/hd-user-avatar.pug
|
include templates/hd-user-avatar.pug
|
||||||
|
|
||||||
details#user-controls
|
details#user-controls.notLoggedIn
|
||||||
summary(tabindex='0' role='button')
|
summary(tabindex='0' role='button')
|
||||||
sib-display#user-controls__profile(
|
sib-display#user-controls__profile(
|
||||||
fields='firstName, account.picture'
|
fields='firstName, account.picture'
|
||||||
@ -24,11 +24,10 @@ details#user-controls
|
|||||||
#user-controls__panel
|
#user-controls__panel
|
||||||
include page-user-panel.pug
|
include page-user-panel.pug
|
||||||
|
|
||||||
.jsToggleLeftMenu.mobile-menu-icon
|
|
||||||
button.icon-menu
|
|
||||||
|
|
||||||
button(role='log in' onclick="document.querySelector('sib-auth').login();") Login
|
button(role='log in' onclick="document.querySelector('sib-auth').login();") Login
|
||||||
|
|
||||||
|
button.notLoggedIn.mobile-menu-icon.icon-menu#toggleMainMenu
|
||||||
|
|
||||||
sib-auth
|
sib-auth
|
||||||
sib-auth-provider(
|
sib-auth-provider(
|
||||||
data-authority=`${authority}`
|
data-authority=`${authority}`
|
||||||
|
@ -7,7 +7,7 @@ sib-widget(name='hd-create')
|
|||||||
p.create You are not part of any ${value} yet. To create a new one, you can go to the
|
p.create You are not part of any ${value} yet. To create a new one, you can go to the
|
||||||
sib-link(next='admin') administration panel
|
sib-link(next='admin') administration panel
|
||||||
|
|
||||||
nav#main__menu.jsLeftMenu.mobile-closed
|
nav#main__menu.jsLeftMenu
|
||||||
sib-router#navbar-router(default-route='members')
|
sib-router#navbar-router(default-route='members')
|
||||||
//- sib-route.menu(name='members')
|
//- sib-route.menu(name='members')
|
||||||
//- div.menu-label Members
|
//- div.menu-label Members
|
||||||
@ -19,32 +19,33 @@ nav#main__menu.jsLeftMenu.mobile-closed
|
|||||||
//- sib-route(name='job-offer-create', hidden)
|
//- sib-route(name='job-offer-create', hidden)
|
||||||
//- sib-route(name='job-offer-edit', use-id, hidden)
|
//- sib-route(name='job-offer-edit', use-id, hidden)
|
||||||
//- div.divider
|
//- div.divider
|
||||||
div.menu-wrapper
|
//- div
|
||||||
div.menu
|
//- div.menu
|
||||||
div.menu-chevron
|
//- div.menu-chevron
|
||||||
div.menu-icon.icon-arrow-up
|
//- sib-link(next='admin-project-list')
|
||||||
div.menu-label Projects
|
//- div.menu-icon.icon-arrow-right
|
||||||
div.menu-icon.icon-folder-alt
|
//- div.menu-label Projects
|
||||||
sib-route(name='project', rdf-type='hd:project', use-id='', hidden)
|
//- div.menu-icon.icon-folder-alt
|
||||||
div.sub-menu.menu-notification
|
//- sib-route(name='project', rdf-type='hd:project', use-id='', hidden)
|
||||||
sib-display.project-tab(
|
//- div.sub-menu.menu-notification
|
||||||
data-src=`${endpoints.projects}`
|
//- sib-display.project-tab(
|
||||||
fields='project(customer.name, name), badge'
|
//- data-src=`${endpoints.projects}`
|
||||||
class-customer.name='project-customer'
|
//- fields='project(customer.name, name), badge'
|
||||||
class-name='project-name'
|
//- class-customer.name='project-customer'
|
||||||
empty-widget='hd-create'
|
//- class-name='project-name'
|
||||||
empty-value='project'
|
//- empty-widget='hd-create'
|
||||||
search-fields='team'
|
//- empty-value='project'
|
||||||
search-widget-team='sib-form-hidden'
|
//- search-fields='team'
|
||||||
search-value-team='-'
|
//- search-widget-team='sib-form-hidden'
|
||||||
hd-inherit-user-id='search-value-team'
|
//- search-value-team='-'
|
||||||
hd-inherit-widgets
|
//- hd-inherit-user-id='search-value-team'
|
||||||
widget-badge='hd-counter'
|
//- hd-inherit-widgets
|
||||||
action-badge='badge'
|
//- widget-badge='hd-counter'
|
||||||
order-by='customer.name'
|
//- action-badge='badge'
|
||||||
next='project'
|
//- order-by='customer.name'
|
||||||
)
|
//- next='project'
|
||||||
div.divider
|
//- )
|
||||||
|
//- div.divider
|
||||||
div
|
div
|
||||||
div.menu
|
div.menu
|
||||||
div.menu-chevron
|
div.menu-chevron
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.views-container
|
.views-container.sidebar-is-closed
|
||||||
#admin-circles(hidden)
|
#admin-circles(hidden)
|
||||||
include page-admin-circles.pug
|
include page-admin-circles.pug
|
||||||
#admin-projects(hidden)
|
#admin-projects(hidden)
|
||||||
@ -16,6 +16,6 @@ nav.jsRightMenu(role='navigation')
|
|||||||
sib-route(name='admin-circles')
|
sib-route(name='admin-circles')
|
||||||
li
|
li
|
||||||
a Circles
|
a Circles
|
||||||
sib-route(name='admin-projects')
|
//- sib-route(name='admin-projects')
|
||||||
li
|
//- li
|
||||||
a Projects
|
//- a Projects
|
||||||
|
@ -3,7 +3,7 @@ div.content-box__info
|
|||||||
include templates/hd-user-avatar.pug
|
include templates/hd-user-avatar.pug
|
||||||
|
|
||||||
sib-widget(name='hd-user-groups')
|
sib-widget(name='hd-user-groups')
|
||||||
template ${value.name}
|
template ${await value.name}
|
||||||
|
|
||||||
sib-widget(name='team-template-edit')
|
sib-widget(name='team-template-edit')
|
||||||
template
|
template
|
||||||
|
@ -25,10 +25,10 @@ sib-router(default-route='circle-profile', hidden)
|
|||||||
|
|
||||||
sib-display.block(
|
sib-display.block(
|
||||||
bind-resources
|
bind-resources
|
||||||
fields='members.user'
|
fields='members'
|
||||||
|
|
||||||
multiple-members.user=''
|
multiple-members=''
|
||||||
widget-members.user='circle-team-template'
|
widget-members='circle-team-template'
|
||||||
)
|
)
|
||||||
|
|
||||||
div.box-button
|
div.box-button
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.views-container
|
.views-container.sidebar-is-closed
|
||||||
.content-box.full-width.with-form
|
.content-box.full-width.with-form
|
||||||
div.content-box__header
|
div.content-box__header
|
||||||
sib-ac-checker(permission='acl:Read', bind-resources)
|
sib-ac-checker(permission='acl:Read', bind-resources)
|
||||||
@ -9,9 +9,7 @@
|
|||||||
class-name='h1-like'
|
class-name='h1-like'
|
||||||
class-description='h1-aside description'
|
class-description='h1-aside description'
|
||||||
)
|
)
|
||||||
.mobile-sidebar-button.jsMobileSidebarOpenButton
|
button.mobile-sidebar-button.jsMobileSidebarOpenButton.icon-arrow-left-circle MENU
|
||||||
button.icon-arrow-left-circle
|
|
||||||
span MENU
|
|
||||||
div.content-box__info
|
div.content-box__info
|
||||||
sib-ac-checker(permission='acl:Read', bind-resources)
|
sib-ac-checker(permission='acl:Read', bind-resources)
|
||||||
#circle-chat(hidden)
|
#circle-chat(hidden)
|
||||||
@ -19,7 +17,7 @@
|
|||||||
#circle-information(hidden)
|
#circle-information(hidden)
|
||||||
include page-circle-profile.pug
|
include page-circle-profile.pug
|
||||||
|
|
||||||
nav.jsRightMenu.mobile-closed(role='navigation')
|
nav.jsRightMenu(role='navigation')
|
||||||
sib-router(default-route='circle-chat')
|
sib-router(default-route='circle-chat')
|
||||||
ul
|
ul
|
||||||
li.jsOffsiteToggle
|
li.jsOffsiteToggle
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
.views-container
|
.views-container.sidebar-is-closed
|
||||||
.content-box.full-width.with-form
|
.content-box.full-width.with-form
|
||||||
div.content-box__header
|
div.content-box__header
|
||||||
sib-ac-checker(permission='acl:Read', bind-resources)
|
sib-ac-checker(permission='acl:Read', bind-resources)
|
||||||
@ -28,7 +28,7 @@ dialog(id='project-contributions-help').modal
|
|||||||
button.icon-close
|
button.icon-close
|
||||||
img(src='/images/contributions-help.png')
|
img(src='/images/contributions-help.png')
|
||||||
|
|
||||||
nav.jsRightMenu.mobile-closed(role='navigation')
|
nav.jsRightMenu(role='navigation')
|
||||||
sib-router(default-route='project-chat')
|
sib-router(default-route='project-chat')
|
||||||
ul
|
ul
|
||||||
li.jsOffsiteToggle
|
li.jsOffsiteToggle
|
||||||
|
@ -48,14 +48,33 @@ function closeUserControls() {
|
|||||||
if (userControls) userControls.removeAttribute("open");
|
if (userControls) userControls.removeAttribute("open");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function closeLeftMenu() {
|
||||||
|
let leftMenu = document.querySelector('#main__menu');
|
||||||
|
if (leftMenu) leftMenu.removeAttribute("open");
|
||||||
|
}
|
||||||
|
|
||||||
|
function closeRightMenu() {
|
||||||
|
let rightMenu = document.querySelectorAll('.jsRightMenu');
|
||||||
|
if(Array.from(rightMenu).filter(el=>el.hasAttribute('open')).length > 0) {
|
||||||
|
Array.from(document.querySelectorAll('.views-container')).forEach(vC => vC.classList.toggle('sidebar-is-closed'));
|
||||||
|
Array.from(rightMenu).forEach(el => el.removeAttribute('open'));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function openRightMenu() {
|
||||||
|
let rightMenu = document.querySelectorAll('.jsRightMenu');
|
||||||
|
Array.from(rightMenu).forEach(el => el.setAttribute('open', ''));
|
||||||
|
Array.from(document.querySelectorAll('.views-container')).forEach(vC => vC.classList.toggle('sidebar-is-closed'));
|
||||||
|
}
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', function (event) {
|
document.addEventListener('DOMContentLoaded', function (event) {
|
||||||
const menuWrappers = Array.from(document.querySelectorAll('.menu-wrapper'));
|
const menuWrappers = Array.from(document.querySelectorAll('.menu-wrapper'));
|
||||||
const rightMenus = Array.from(document.querySelectorAll('nav.jsRightMenu'));
|
|
||||||
const viewsContainer = Array.from(document.querySelectorAll('.views-container'));
|
|
||||||
|
|
||||||
//- View change event
|
//- View change event
|
||||||
// window.addEventListener('navigate', (event) => {
|
window.addEventListener('navigate', (event) => {
|
||||||
// });
|
closeLeftMenu();
|
||||||
|
closeUserControls();
|
||||||
|
});
|
||||||
|
|
||||||
//- Toggle sub-menus
|
//- Toggle sub-menus
|
||||||
menuWrappers.forEach(menuWrapper => {
|
menuWrappers.forEach(menuWrapper => {
|
||||||
@ -65,22 +84,12 @@ document.addEventListener('DOMContentLoaded', function (event) {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
//- Open/close menu on the right
|
|
||||||
rightMenus.forEach(rightMenu => {
|
|
||||||
const btnRightMenu = rightMenu.querySelector("li.jsOffsiteToggle");
|
|
||||||
|
|
||||||
btnRightMenu.addEventListener('click', e => {
|
|
||||||
rightMenus.forEach(rM => rM.classList.toggle('offsite-is-closed'));
|
|
||||||
viewsContainer.forEach(vC => vC.classList.toggle('sidebar-is-closed'));
|
|
||||||
})
|
|
||||||
});
|
|
||||||
|
|
||||||
//- Watch every sib-forms & update data-src of linked sib-display
|
//- Watch every sib-forms & update data-src of linked sib-display
|
||||||
document.querySelectorAll('sib-form').forEach(function(el) {
|
document.querySelectorAll('sib-form').forEach(function (el) {
|
||||||
el.addEventListener("save", function(event) {
|
el.addEventListener("save", function (event) {
|
||||||
//clear cache on this resource
|
//clear cache on this resource
|
||||||
//NOTE: this is required because the cache is not refreshed after POSTing changes on the resource
|
//NOTE: this is required because the cache is not refreshed after POSTing changes on the resource
|
||||||
if(el.component.resource != null) el.component.resource.clearCache();
|
if (el.component.resource != null) el.component.resource.clearCache();
|
||||||
|
|
||||||
// if of the edited resource || id of the container of the created resource
|
// if of the edited resource || id of the container of the created resource
|
||||||
const resourceId = event.detail.resource['@id'] || el.dataset.src;
|
const resourceId = event.detail.resource['@id'] || el.dataset.src;
|
||||||
@ -94,6 +103,7 @@ document.addEventListener('DOMContentLoaded', function (event) {
|
|||||||
|
|
||||||
document.querySelector('sib-auth').getUser().then(user => {
|
document.querySelector('sib-auth').getUser().then(user => {
|
||||||
if (user !== null) {
|
if (user !== null) {
|
||||||
|
document.querySelectorAll('.notLoggedIn').forEach(el => el.style.visibility = 'visible');
|
||||||
// Hide login button if already logged
|
// Hide login button if already logged
|
||||||
document.querySelector('button[role="log in"]').setAttribute('style', 'display:none !important');
|
document.querySelector('button[role="log in"]').setAttribute('style', 'display:none !important');
|
||||||
// Set current user id on set-user-id of sib-display
|
// Set current user id on set-user-id of sib-display
|
||||||
@ -106,13 +116,52 @@ document.addEventListener('DOMContentLoaded', function (event) {
|
|||||||
|
|
||||||
// Document -> close menu
|
// Document -> close menu
|
||||||
document.addEventListener("click", event => {
|
document.addEventListener("click", event => {
|
||||||
if (!event.target.closest('#user-controls')) closeUserControls();
|
if (!event.target.closest('#user-controls')) {
|
||||||
|
closeUserControls();
|
||||||
|
}
|
||||||
|
if (!event.target.closest('#main__menu') && event.target.id != "toggleMainMenu") {
|
||||||
|
closeLeftMenu();
|
||||||
|
}
|
||||||
|
if (!event.target.className.includes('jsMobileSidebarOpenButton') && !event.target.className.includes('jsOffsiteToggle')) {
|
||||||
|
closeRightMenu();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
document.querySelector('#toggleMainMenu').addEventListener('click', event => {
|
||||||
|
let leftMenu = document.querySelector('#main__menu');
|
||||||
|
if (leftMenu.hasAttribute('open')) {
|
||||||
|
closeLeftMenu();
|
||||||
|
} else {
|
||||||
|
leftMenu.setAttribute('open', '');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
Array.from(document.querySelectorAll('.jsMobileSidebarOpenButton')).forEach(el => {
|
||||||
|
el.addEventListener('click', event => {
|
||||||
|
openRightMenu();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
const rightMenus = Array.from(document.querySelectorAll('nav.jsRightMenu'));
|
||||||
|
rightMenus.forEach(rightMenu => {
|
||||||
|
const btnRightMenu = rightMenu.querySelector("li.jsOffsiteToggle");
|
||||||
|
btnRightMenu.addEventListener('click', e => {
|
||||||
|
if (rightMenu.hasAttribute('open')) {
|
||||||
|
closeRightMenu();
|
||||||
|
} else {
|
||||||
|
openRightMenu();
|
||||||
|
}
|
||||||
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
// listen for keypress
|
// listen for keypress
|
||||||
document.onkeydown = (e) => {
|
document.onkeydown = (e) => {
|
||||||
e = e || window.event;
|
e = e || window.event;
|
||||||
if (e.key === "Escape" || e.key === "Esc") closeUserControls();
|
if (e.key === "Escape" || e.key === "Esc") {
|
||||||
|
closeUserControls();
|
||||||
|
closeLeftMenu();
|
||||||
|
closeRightMenu();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
});
|
});
|
@ -56,6 +56,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.notLoggedIn {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
sib-notifications {
|
sib-notifications {
|
||||||
|
|
||||||
@include breakpoint(sm) {
|
@include breakpoint(sm) {
|
||||||
@ -259,6 +263,7 @@
|
|||||||
@include breakpoint(sm) {
|
@include breakpoint(sm) {
|
||||||
display: block;
|
display: block;
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
|
font-size: 26px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -212,22 +212,17 @@ h5 {
|
|||||||
.mobile-sidebar-button {
|
.mobile-sidebar-button {
|
||||||
@include breakpoint(sm) {
|
@include breakpoint(sm) {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
button {
|
|
||||||
color: $color-233-18-29;
|
color: $color-233-18-29;
|
||||||
|
font-size: 1.8rem;
|
||||||
|
font-weight: bold!important;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
font-size: 2.2rem;
|
font-size: 2.2rem;
|
||||||
|
font-weight: normal;
|
||||||
margin-right: 1.2rem;
|
margin-right: 1.2rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
|
||||||
font-size: 1.8rem;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@include breakpoint($min: 1025px, $max: 0) {
|
@include breakpoint($min: 1025px, $max: 0) {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -189,9 +189,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.jsLeftMenu.mobile-opened {
|
&.jsLeftMenu {
|
||||||
|
|
||||||
@include breakpoint(sm) {
|
@include breakpoint(sm) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.jsLeftMenu[open] {
|
||||||
|
|
||||||
|
@include breakpoint(sm) {
|
||||||
|
display: block;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
box-shadow: 0 2px 8px 0 rgba(65, 69, 73, 0.5);
|
box-shadow: 0 2px 8px 0 rgba(65, 69, 73, 0.5);
|
||||||
min-width: 80%;
|
min-width: 80%;
|
||||||
@ -201,11 +209,4 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.jsLeftMenu.mobile-closed {
|
|
||||||
|
|
||||||
@include breakpoint(sm) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -15,10 +15,12 @@
|
|||||||
/*-webkit-backface-visibility: hidden;*/
|
/*-webkit-backface-visibility: hidden;*/
|
||||||
|
|
||||||
&.sidebar-is-closed {
|
&.sidebar-is-closed {
|
||||||
|
@include breakpoint(769px, 0) {
|
||||||
margin-left: -15.5rem;
|
margin-left: -15.5rem;
|
||||||
transform: translate(15.5rem);
|
transform: translate(15.5rem);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
>div {
|
>div {
|
||||||
transition: all 0.5s;
|
transition: all 0.5s;
|
||||||
@ -111,7 +113,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.jsRightMenu.offsite-is-closed {
|
&.jsRightMenu {
|
||||||
|
|
||||||
|
@include breakpoint(sm) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.jsRightMenu:not([open]) {
|
||||||
transform: translate(15.5rem);
|
transform: translate(15.5rem);
|
||||||
|
|
||||||
& .jsOffsiteToggle::before {
|
& .jsOffsiteToggle::before {
|
||||||
@ -119,9 +128,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.jsRightMenu.mobile-opened {
|
&.jsRightMenu[open] {
|
||||||
|
|
||||||
@include breakpoint(sm) {
|
@include breakpoint(sm) {
|
||||||
|
display: block;
|
||||||
background: $color-221-51-90;
|
background: $color-221-51-90;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.12);
|
box-shadow: 0 2px 9px 0 rgba(0, 0, 0, 0.12);
|
||||||
@ -132,12 +142,5 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.jsRightMenu.mobile-closed {
|
|
||||||
|
|
||||||
@include breakpoint(sm) {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -14,7 +14,7 @@
|
|||||||
grid-template-columns: 7vh auto;
|
grid-template-columns: 7vh auto;
|
||||||
grid-template-rows: repeat(2, 5.2vh);
|
grid-template-rows: repeat(2, 5.2vh);
|
||||||
|
|
||||||
>[name='user.account.picture'] {
|
>[name='account.picture'] {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
background-color: $color-213-20-91;
|
background-color: $color-213-20-91;
|
||||||
@ -61,7 +61,7 @@
|
|||||||
margin-bottom: 1px;
|
margin-bottom: 1px;
|
||||||
margin-left: 0.6rem;
|
margin-left: 0.6rem;
|
||||||
|
|
||||||
[name='user.groups'] {
|
[name='groups'] {
|
||||||
@extend %tag-role;
|
@extend %tag-role;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,23 +3,24 @@ include hd-user-avatar.pug
|
|||||||
sib-widget(name='circle-team-template')
|
sib-widget(name='circle-team-template')
|
||||||
template
|
template
|
||||||
sib-display(
|
sib-display(
|
||||||
data-src='${await value}'
|
data-src='${await value.user}'
|
||||||
fields='user.account.picture, sup(user.name, is_admin, user.groups), sub(user.profile.city)'
|
fields='account.picture, sup(name, isadmin, groups), sub(profile.city)'
|
||||||
|
value-isadmin='${await value.is_admin}'
|
||||||
|
|
||||||
class-user.name='user-name'
|
class-name='user-name'
|
||||||
class-is_admin='tag-admin'
|
class-isadmin='tag-admin'
|
||||||
class-user.groups='tag-group'
|
class-groups='tag-group'
|
||||||
class-user.profile.city='city'
|
class-profile.city='city'
|
||||||
|
|
||||||
widget-user.account.picture='hd-user-avatar'
|
widget-account.picture='hd-user-avatar'
|
||||||
widget-is_admin='hd-user-admin'
|
widget-isadmin='hd-circle-user-admin'
|
||||||
widget-user.groups='hd-user-groups'
|
widget-groups='hd-circle-user-groups'
|
||||||
|
|
||||||
multiple-user.groups=''
|
multiple-groups=''
|
||||||
)
|
)
|
||||||
|
|
||||||
sib-widget(name='hd-user-admin')
|
sib-widget(name='hd-circle-user-admin')
|
||||||
template ${await value ? "Administrator" : ""}
|
template ${(await value) != "false" ? "Administrator" : ""}
|
||||||
|
|
||||||
sib-widget(name='hd-user-groups')
|
sib-widget(name='hd-circle-user-groups')
|
||||||
template ${await value.name}
|
template ${await value.name}
|
||||||
|
@ -12,14 +12,14 @@ sib-widget(name='hd-project-team')
|
|||||||
class-user.profile.city='city'
|
class-user.profile.city='city'
|
||||||
|
|
||||||
widget-user.account.picture='hd-user-avatar'
|
widget-user.account.picture='hd-user-avatar'
|
||||||
widget-is_admin='hd-user-admin'
|
widget-is_admin='hd-project-user-admin'
|
||||||
widget-user.groups='hd-user-groups'
|
widget-user.groups='hd-project-user-groups'
|
||||||
|
|
||||||
multiple-user.groups=''
|
multiple-user.groups=''
|
||||||
)
|
)
|
||||||
|
|
||||||
sib-widget(name='hd-user-admin')
|
sib-widget(name='hd-project-user-admin')
|
||||||
template ${await value ? "Administrator" : ""}
|
template ${await value ? "Administrator" : ""}
|
||||||
|
|
||||||
sib-widget(name='hd-user-groups')
|
sib-widget(name='hd-project-user-groups')
|
||||||
template ${await value.name}
|
template ${await value.name}
|
||||||
|
Loading…
Reference in New Issue
Block a user