feature: project-profile page
- css added or reviewed - templates added or reviewed (customer, business provider, team) - modal added and stylised - routes reviewed - navbar reviewed (adapted according to the content of the main section - admin status added - new staging added.
This commit is contained in:
committed by
Jean-Baptiste Pasquier
parent
255083d2c1
commit
40e103fc00
6
src/templates/hd-business-provider.pug
Normal file
6
src/templates/hd-business-provider.pug
Normal file
@ -0,0 +1,6 @@
|
||||
sib-widget(name='hd-business-provider')
|
||||
template
|
||||
ul
|
||||
li #[span Happy Dev Paris:] 5%
|
||||
li #[span Business provider:] ${await value.name ? await value.name : ""} ${await value.name ? "," : ""} ${await value.fee ? await value.fee:0}%
|
||||
|
11
src/templates/hd-captain.pug
Normal file
11
src/templates/hd-captain.pug
Normal file
@ -0,0 +1,11 @@
|
||||
include hd-user-avatar.pug
|
||||
|
||||
sib-widget(name='hd-captain')
|
||||
template
|
||||
sib-display(
|
||||
data-src="${await value}"
|
||||
fields='account.picture, sup(name), sub(profile.city)'
|
||||
|
||||
widget-account.picture='hd-user-avatar'
|
||||
)
|
||||
|
19
src/templates/hd-customer.pug
Normal file
19
src/templates/hd-customer.pug
Normal file
@ -0,0 +1,19 @@
|
||||
sib-widget(name='hd-customer')
|
||||
template
|
||||
div.customer-box
|
||||
div
|
||||
h3 Client:
|
||||
ul
|
||||
li #[span Business name:]${await value.name}
|
||||
li #[span Company register:]${await value.companyRegister}
|
||||
li
|
||||
span Address:
|
||||
br
|
||||
p ${await value.address}
|
||||
div
|
||||
h3 Contact:
|
||||
ul
|
||||
li(class='mdi-account-outline') #[span ${await value.firstName} ${await value.lastName}], ${await value.role}
|
||||
li(class='mdi-email-outline')
|
||||
a(href='mailto:${await value.email}') ${await value.email}
|
||||
li(class='mdi-cellphone-iphone') ${await value.phone}
|
@ -1,6 +0,0 @@
|
||||
sib-widget(name='template-business-provider')
|
||||
template
|
||||
ul
|
||||
li #[span Happy Dev Paris:] 5%
|
||||
li #[span Business provider:] ${value.name}, ${value.fee ? value.fee:0}%
|
||||
|
@ -1,23 +0,0 @@
|
||||
include hd-user-avatar.pug
|
||||
|
||||
sib-widget(name='captain-template')
|
||||
template
|
||||
sib-display.project-profile-user-avatar(
|
||||
data-src="${value ? value['@id'] : ''}"
|
||||
fields='account.picture',
|
||||
widget-account.picture='hd-user-avatar'
|
||||
)
|
||||
div(name='user.thumb')
|
||||
sib-display(
|
||||
data-src="${value ? value['@id'] : ''}"
|
||||
fields='name'
|
||||
)
|
||||
sib-display(
|
||||
data-src="${value ? value['@id'] : ''}",
|
||||
fields='name'
|
||||
nested-field="groups"
|
||||
)
|
||||
sib-display(
|
||||
data-src="${value ? value['@id'] : ''}"
|
||||
fields='username'
|
||||
)
|
@ -1,20 +0,0 @@
|
||||
sib-widget(name='customer-template')
|
||||
template
|
||||
div#clientBox
|
||||
div
|
||||
h5 Client:
|
||||
ul
|
||||
li #[span Business name:]${value.name}
|
||||
li #[span Company register:]${value.companyRegister}
|
||||
li
|
||||
span Address:
|
||||
br
|
||||
p ${value.address}
|
||||
div
|
||||
h5 Contact:
|
||||
ul
|
||||
li(class='mdi-account-outline') #[span ${value.firstName} ${value.lastName}], ${value.role}
|
||||
li(class='mdi-email-outline')
|
||||
a(href='mailto:${value.email}') ${value.email}
|
||||
li(class='mdi-cellphone-iphone') ${value.phone}
|
||||
|
@ -2,23 +2,24 @@ include hd-user-avatar.pug
|
||||
|
||||
sib-widget(name='project-team-template')
|
||||
template
|
||||
sib-display.project-profile-user-avatar(
|
||||
data-src="${value.user ? value.user['@id'] : ''}"
|
||||
fields='account.picture',
|
||||
widget-account.picture='hd-user-avatar'
|
||||
)
|
||||
div(name='user.thumb')
|
||||
sib-display(
|
||||
data-src="${value.user ? value.user['@id'] : ''}"
|
||||
fields='name'
|
||||
)
|
||||
sib-display(
|
||||
data-src="${value.user ? value.user['@id'] : ''}",
|
||||
fields='name'
|
||||
nested-field="groups"
|
||||
)
|
||||
sib-display(
|
||||
data-src="${value.user ? value.user['@id'] : ''}"
|
||||
fields='username'
|
||||
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}
|
||||
|
Reference in New Issue
Block a user