Merge branch 'staging' into project-admin
This commit is contained in:
commit
07abdce85c
@ -56,6 +56,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'] {
|
>[name='account.picture'] {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
@ -150,7 +151,7 @@
|
|||||||
li {
|
li {
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
|
|
||||||
&::before {
|
span::before {
|
||||||
color: $color-43-100-50;
|
color: $color-43-100-50;
|
||||||
font-size: 2.2rem;
|
font-size: 2.2rem;
|
||||||
margin: 0 1rem 0 0;
|
margin: 0 1rem 0 0;
|
||||||
|
@ -5,15 +5,13 @@ sib-widget(name='hd-customer')
|
|||||||
h3 Client:
|
h3 Client:
|
||||||
ul
|
ul
|
||||||
li #[span Business name: ]${await value.name}
|
li #[span Business name: ]${await value.name}
|
||||||
li #[span Company register: ]${await value.companyRegister}
|
li ${await value.companyRegister ? `<span>Company register: </span> ${await value.companyRegister}` : ``}
|
||||||
li
|
li ${await value.address ? `<span>Address: </span><br/><p>${await value.address}</p>`: ``}
|
||||||
span Address:
|
|
||||||
br
|
|
||||||
p ${await value.address}
|
|
||||||
div
|
div
|
||||||
h3 Contact:
|
h3 Contact:
|
||||||
ul
|
ul
|
||||||
li(class='mdi-account-outline') #[span ${await value.firstName} ${await value.lastName}], ${await value.role}
|
li #[span(class='mdi-account-outline') ${await value.firstName} ${await value.lastName ? await value.lastName : ""}]${await value.role ? `, ${await value.role}` : ""}
|
||||||
li(class='mdi-email-outline')
|
li
|
||||||
a(href='mailto:${await value.email}') ${await value.email}
|
span(class='mdi-email-outline')
|
||||||
li(class='mdi-cellphone-iphone') ${await value.phone}
|
a(href='mailto:${await value.email}') ${await value.email}
|
||||||
|
span ${await value.phone ? `<li><span class='mdi-cellphone-iphone'>${await value.phone}</span></li>` : ``}
|
||||||
|
@ -4,17 +4,22 @@ sib-widget(name='hd-project-team')
|
|||||||
template
|
template
|
||||||
sib-display(
|
sib-display(
|
||||||
data-src='${await value}'
|
data-src='${await value}'
|
||||||
fields='account.picture, sup(user.name, user.groups), sub(user.profile.city, name)'
|
fields='user.account.picture, sup(user.name, is_admin, user.groups), sub(user.profile.city, name)'
|
||||||
|
|
||||||
class-user.name='user-name'
|
class-user.name='user-name'
|
||||||
|
class-is_admin='tag-admin'
|
||||||
class-user.groups='tag-group'
|
class-user.groups='tag-group'
|
||||||
class-user.profile.city='city'
|
class-user.profile.city='city'
|
||||||
|
|
||||||
widget-account.picture='hd-user-avatar'
|
widget-user.account.picture='hd-user-avatar'
|
||||||
|
widget-is_admin='hd-user-admin'
|
||||||
widget-user.groups='hd-user-groups'
|
widget-user.groups='hd-user-groups'
|
||||||
|
|
||||||
multiple-user.groups=''
|
multiple-user.groups=''
|
||||||
)
|
)
|
||||||
|
|
||||||
|
sib-widget(name='hd-user-admin')
|
||||||
|
template ${await value ? "Administrator" : ""}
|
||||||
|
|
||||||
sib-widget(name='hd-user-groups')
|
sib-widget(name='hd-user-groups')
|
||||||
template ${await value.name}
|
template ${await value.name}
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
include hd-user-avatar.pug
|
|
||||||
|
|
||||||
sib-widget(name='project-team-template')
|
|
||||||
template
|
|
||||||
sib-display(
|
|
||||||
data-src='${await value}'
|
|
||||||
fields='account.picture, sup(user.name, is_admin, user.groups), sub(user.profile.city)'
|
|
||||||
|
|
||||||
class-user.name='user-name'
|
|
||||||
class-is_admin='tag-admin'
|
|
||||||
class-user.groups='tag-group'
|
|
||||||
class-user.profile.city='city'
|
|
||||||
|
|
||||||
widget-account.picture='hd-user-avatar'
|
|
||||||
widget-is_admin='hd-user-admin'
|
|
||||||
widget-user.groups='hd-user-groups'
|
|
||||||
|
|
||||||
multiple-user.groups=''
|
|
||||||
)
|
|
||||||
|
|
||||||
sib-widget(name='hd-user-admin')
|
|
||||||
template ${await value ? "Administrator" : ""}
|
|
||||||
|
|
||||||
sib-widget(name='hd-user-groups')
|
|
||||||
template ${await value.name}
|
|
Loading…
Reference in New Issue
Block a user