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
@ -1,90 +1,89 @@
|
||||
sib-widget(name='hd-fieldset-title')
|
||||
template
|
||||
label ${label}
|
||||
div.content-box__info
|
||||
|
||||
sib-widget(name='hd-project-members')
|
||||
template
|
||||
sib-display.member-info(
|
||||
data-src='${id}'
|
||||
fields='user.account.picture, user.name, name'
|
||||
widget-user.account.picture='sib-display-img'
|
||||
)
|
||||
include templates/hd-user-avatar.pug
|
||||
|
||||
sib-widget(name='hd-member-form')
|
||||
template
|
||||
sib-form.member-add(
|
||||
bind-resources
|
||||
range-user=`${endpoints.users}`
|
||||
nested-field='members'
|
||||
fields='member-form__input(user, name)'
|
||||
|
||||
class-user='member-select form-label is-light is-half-width'
|
||||
label-user='Member'
|
||||
widget-user='sib-form-auto-completion'
|
||||
sib-widget(name='hd-fieldset-title')
|
||||
template
|
||||
label ${label}
|
||||
|
||||
class-name='form-label is-light is-half-width'
|
||||
label-name='Role'
|
||||
|
||||
submit-button='Add'
|
||||
)
|
||||
sib-link(class='backlink', bind-resources, next='project-profile') Back
|
||||
|
||||
h1 Edit your project
|
||||
|
||||
.content-box.with-padding.with-form.full-width
|
||||
sib-form.form-container.block(
|
||||
bind-resources
|
||||
|
||||
fields='fieldset-info, block-project__info(customer.name, name, customer.logo, description), fieldset-fee, block-project__fee(businessProvider, businessProviderFee), fieldset-customer, block-project__customer(customer.companyRegister, customer.address, customer.firstName, customer.lastName, customer.role, customer.email, customer.phone)'
|
||||
|
||||
h1 Edit your project
|
||||
class-customer.name='form-label is-light is-half-width'
|
||||
class-name='form-label is-light is-half-width'
|
||||
class-customer.logo='form-label is-light is-full-width'
|
||||
class-description='form-label is-light is-full-width'
|
||||
label-fieldset-info=''
|
||||
label-customer.name='Customer\'s name'
|
||||
label-name='Project\'s name*'
|
||||
label-customer.logo='Customer\'s logo'
|
||||
label-description='Project description'
|
||||
upload-url-customer.logo=''
|
||||
widget-fieldset-info='hd-fieldset-title'
|
||||
widget-description='sib-form-textarea'
|
||||
|
||||
class-fieldset-fee='fieldset'
|
||||
class-businessprovider='form-label is-light is-half-width'
|
||||
class-businessproviderfee='form-label is-light is-half-width'
|
||||
label-fieldset-fee='Fee'
|
||||
label-businessprovider='Business provider'
|
||||
label-businessproviderfee='Amount of the contribution'
|
||||
widget-fieldset-fee='hd-fieldset-title'
|
||||
|
||||
sib-form.form-container.block(
|
||||
bind-resources
|
||||
|
||||
fields='fieldset-info, block-project__info(customer.name, name, customer.logo, description), fieldset-fee, block-project__fee(businessProvider, businessProviderFee), fieldset-customer, block-project__customer(customer.companyRegister, customer.address, customer.firstName, customer.lastName, customer.role, customer.email, customer.phone), fieldset-members, block-project__members(member-form, members)'
|
||||
class-fieldset-customer='fieldset'
|
||||
class-customer.companyregister='form-label is-light is-half-width'
|
||||
class-customer.address='form-label is-light is-half-width'
|
||||
class-customer.firstname='form-label is-light is-half-width'
|
||||
class-customer.lastname='form-label is-light is-half-width'
|
||||
class-customer.role='form-label is-light is-half-width'
|
||||
class-customer.email='form-label is-light is-half-width'
|
||||
class-customer.phone='form-label is-light is-half-width'
|
||||
label-fieldset-customer='Customer\'s information'
|
||||
label-customer.companyregister='Company register*'
|
||||
label-customer.address='Address'
|
||||
label-customer.firstname='Name of the contact at the customer\'s premises'
|
||||
label-customer.lastname='Firstname of the contact at the customer\'s premises'
|
||||
label-customer.role='Role within the company'
|
||||
label-customer.email='Email'
|
||||
label-customer.phone='Phone'
|
||||
widget-fieldset-customer='hd-fieldset-title'
|
||||
|
||||
class-customer.name='form-label is-light is-half-width'
|
||||
class-name='form-label is-light is-half-width'
|
||||
class-customer.logo='form-label is-light is-full-width'
|
||||
class-description='form-label is-light is-full-width'
|
||||
label-fieldset-info=''
|
||||
label-customer.name='Customer\'s name'
|
||||
label-name='Project\'s name*'
|
||||
label-customer.logo='Customer\'s logo'
|
||||
label-description='Project description'
|
||||
upload-url-customer.logo=''
|
||||
widget-fieldset-info='hd-fieldset-title'
|
||||
widget-description='sib-form-textarea'
|
||||
|
||||
class-fieldset-fee='fieldset'
|
||||
class-businessprovider='form-label is-light is-half-width'
|
||||
class-businessproviderfee='form-label is-light is-half-width'
|
||||
label-fieldset-fee='Fee'
|
||||
label-businessprovider='Business provider'
|
||||
label-businessproviderfee='Amount of the contribution'
|
||||
widget-fieldset-fee='hd-fieldset-title'
|
||||
|
||||
class-fieldset-customer='fieldset'
|
||||
class-customer.companyregister='form-label is-light is-half-width'
|
||||
class-customer.address='form-label is-light is-half-width'
|
||||
class-customer.firstname='form-label is-light is-half-width'
|
||||
class-customer.lastname='form-label is-light is-half-width'
|
||||
class-customer.role='form-label is-light is-half-width'
|
||||
class-customer.email='form-label is-light is-half-width'
|
||||
class-customer.phone='form-label is-light is-half-width'
|
||||
label-fieldset-customer='Customer\'s information'
|
||||
label-customer.companyregister='Company register*'
|
||||
label-customer.address='Address'
|
||||
label-customer.firstname='Name of the contact at the customer\'s premises'
|
||||
label-customer.lastname='Firstname of the contact at the customer\'s premises'
|
||||
label-customer.role='Role within the company'
|
||||
label-customer.email='Email'
|
||||
label-customer.phone='Phone'
|
||||
widget-fieldset-customer='hd-fieldset-title'
|
||||
|
||||
class-fieldset-members='fieldset'
|
||||
label-fieldset-members='Team'
|
||||
label-members=''
|
||||
multiple-members=''
|
||||
widget-members='hd-project-members'
|
||||
widget-fieldset-members='hd-fieldset-title'
|
||||
widget-member-form='hd-member-form'
|
||||
|
||||
submit-button='Submit'
|
||||
submit-button='Save'
|
||||
)
|
||||
|
||||
h2 Members List
|
||||
|
||||
sib-form.block.team-form(
|
||||
bind-resources
|
||||
nested-field='members'
|
||||
fields='user'
|
||||
range-user=`${endpoints.users}`
|
||||
|
||||
class-user='team form-label is-dark'
|
||||
label-user=''
|
||||
widget-user='sib-form-auto-completion'
|
||||
|
||||
submit-button='Add a member'
|
||||
)
|
||||
|
||||
.table
|
||||
|
||||
div.table-header.grey-color
|
||||
div Name
|
||||
div Access
|
||||
|
||||
//-class='table-body'
|
||||
sib-display(
|
||||
class='table-body'
|
||||
bind-resources
|
||||
fields='members'
|
||||
|
||||
multiple-members=''
|
||||
widget-members='team-template-edit'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user