ui : members with user.groups
This commit is contained in:
parent
1d0e1ea90b
commit
1a3c36ef4d
@ -1,26 +1,31 @@
|
|||||||
div.grid-layer
|
div.grid-layer
|
||||||
|
template#read-more-link
|
||||||
|
sib-link(next="member") ${value}
|
||||||
|
template#read-more-link
|
||||||
|
sib-link(next="member") ${value}
|
||||||
div.grid-layer-main.containerV
|
div.grid-layer-main.containerV
|
||||||
h1 Members
|
h1 Members
|
||||||
sib-display#profiles-list(
|
sib-display#profiles-list(
|
||||||
data-src=`${sdn}/members/`,
|
data-src=`${sdn}/members/`,
|
||||||
data-fields='header, infos, group, role',
|
data-fields='header, infos, group, role, more',
|
||||||
set-header='avatar, user, pseudonym, bio, user.email',
|
set-header='avatar, user, pseudonym, bio, send',
|
||||||
set-infos='cell, roles, foaf:homepage, skills',
|
set-infos='cell, roles, user.email, foaf:homepage, skills',
|
||||||
set-pseudonym='before-pseudo,pseudo'
|
set-pseudonym='before-pseudo,pseudo'
|
||||||
label-skills='skill',
|
label-skills='skill',
|
||||||
value-before-pseudo='@',
|
value-before-pseudo='@',
|
||||||
|
value-more='read more...',
|
||||||
|
template-more='hdapp-link-more',
|
||||||
value-send='SEND A MESSAGE',
|
value-send='SEND A MESSAGE',
|
||||||
widget-avatar='sib-display-img',
|
widget-avatar='sib-display-img',
|
||||||
widget-user='hdapp-userinfo',
|
widget-user='hdapp-userinfo',
|
||||||
widget-user.email='hdapp-mail',
|
|
||||||
widget-foaf:hompage='hdapp-hyperlink',
|
widget-foaf:hompage='hdapp-hyperlink',
|
||||||
widget-cell='hdapp-usercell',
|
widget-cell='hdapp-usercell',
|
||||||
widget-roles='sib-display-lookuplist',
|
widget-roles='sib-display-lookuplist',
|
||||||
widget-skills='sib-display-lookuplist',
|
widget-skills='sib-display-lookuplist',
|
||||||
set-name='pseudo,user.first_name,user.last_name',
|
set-name='pseudo,user.first_name,user.last_name',
|
||||||
search-fields='name, skills, roles',
|
search-fields='name, skills, user.groups',
|
||||||
search-range-skills=`${sdn}/skills/`,
|
search-range-skills=`${sdn}/skills/`,
|
||||||
search-range-roles=`${sdn}/role/`
|
search-range-user.groups=`${sdn}/group/`,
|
||||||
next='member')
|
next='member')
|
||||||
div.grid-layer-links.containerV
|
div.grid-layer-links.containerV
|
||||||
div.containerH.containerCenter.how-link
|
div.containerH.containerCenter.how-link
|
||||||
|
@ -7,6 +7,7 @@ h1 Edit project
|
|||||||
data-fields=`name, number, client, description, team, jabberRoom, foaf:jabberID`,
|
data-fields=`name, number, client, description, team, jabberRoom, foaf:jabberID`,
|
||||||
widget-jabberRoom='sib-form-checkbox',
|
widget-jabberRoom='sib-form-checkbox',
|
||||||
widget-description='sib-form-textarea',
|
widget-description='sib-form-textarea',
|
||||||
widget-team='sib-form-multiple-dropdown',
|
widget-team='hdapp-link-more',
|
||||||
|
label-team='Equipe'
|
||||||
bind-resources
|
bind-resources
|
||||||
)
|
)
|
||||||
|
@ -149,4 +149,17 @@ document.addEventListener('WebComponentsReady', function(event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
customElements.define('hdapp-hyperlink', HDAppHyperlink);
|
customElements.define('hdapp-hyperlink', HDAppHyperlink);
|
||||||
|
|
||||||
|
class HDAppLinkMore extends SIBWidget {
|
||||||
|
get template() {
|
||||||
|
const id = uniqID();
|
||||||
|
console.warn('HDAppLinkMore'this);
|
||||||
|
return `
|
||||||
|
${this.label}
|
||||||
|
${this.name}
|
||||||
|
${this.escapedValue}
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
customElements.define('hdapp-link-more', HDAppLinkMore);
|
||||||
});
|
});
|
||||||
|
@ -176,8 +176,6 @@ sib-display#member-info {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
div[name='header'] {
|
div[name='header'] {
|
||||||
border-bottom: 1px solid $color-grey-light;
|
border-bottom: 1px solid $color-grey-light;
|
||||||
padding-bottom: 1em;
|
padding-bottom: 1em;
|
||||||
@ -251,6 +249,10 @@ sib-display#member-info {
|
|||||||
sib-display-div[name$='foaf:homepage'] * {
|
sib-display-div[name$='foaf:homepage'] * {
|
||||||
@include icon('link');
|
@include icon('link');
|
||||||
}
|
}
|
||||||
|
sib-display-div[name$='more']{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row-reverse;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
hdapp-available {
|
hdapp-available {
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit ca1e0e35196b9ea1c235e81ad93987d115832188
|
Subproject commit 4162a4cc2d68ab76290a1691760a740634eee953
|
@ -1 +1 @@
|
|||||||
Subproject commit 79804ac27cd389bcf91e5eb5714f42c1436c430d
|
Subproject commit 34a75986f9a5d8d4e95e4c8e04743f1be362b752
|
Loading…
Reference in New Issue
Block a user