Merge branch 'release/project' into release/rework-css
This commit is contained in:
commit
518864e093
@ -11,5 +11,5 @@ sib-widget(name='hubl-captain')
|
|||||||
class-is_lead='user-thumb__lead'
|
class-is_lead='user-thumb__lead'
|
||||||
|
|
||||||
widget-account.picture='hubl-user-avatar'
|
widget-account.picture='hubl-user-avatar'
|
||||||
value-is_lead='Project lead'
|
value-is_lead='Capitaine'
|
||||||
)
|
)
|
||||||
|
@ -12,37 +12,41 @@ div.content-box__info.flex
|
|||||||
naked
|
naked
|
||||||
)
|
)
|
||||||
|
|
||||||
h1.centered Créer un projet
|
h1 Créer un nouveau projet
|
||||||
|
|
||||||
sib-form.form.button-register(
|
sib-form.form.button-register(
|
||||||
data-src=`${endpoints.projects || endpoints.post.projects}`
|
data-src=`${endpoints.projects || endpoints.post.projects}`
|
||||||
|
|
||||||
fields='line-1(customer, name), line-2(project.description), line-3(businessProvider.name, businessProvider.fee), line-4(captain)'
|
fields='status, line-1(customer.name, name), description, line-10(captain), logo'
|
||||||
|
|
||||||
label-customer='Nom du client*'
|
label-status='Statut du canal*'
|
||||||
class-customer='form-label is-light is-half-width'
|
widget-status='hubl-status'
|
||||||
range-customer=`${endpoints.customers || endpoints.get.customers}`
|
class-status='form-label is-light is-full-width member-select color'
|
||||||
widget-customer='sib-form-auto-completion'
|
|
||||||
|
label-description='Description du projet'
|
||||||
|
class-description='form-label is-light is-full-width'
|
||||||
|
widget-description='sib-form-textarea'
|
||||||
|
|
||||||
|
class-fieldset-captain='fieldset'
|
||||||
|
widget-fieldset-captain='hubl-template-project-title'
|
||||||
|
|
||||||
|
label-customer.name='Nom du client*'
|
||||||
|
class-customer.name='form-label is-light is-half-width'
|
||||||
|
|
||||||
label-name='Nom du projet*'
|
label-name='Nom du projet*'
|
||||||
class-name='form-label is-light is-half-width input-text-like'
|
class-name='form-label is-light is-half-width input-text-like'
|
||||||
|
|
||||||
label-project.description='Description du projet'
|
label-captain='Capitaine du projet*'
|
||||||
class-project.description='form-label is-light is-full-width input-text-like'
|
|
||||||
widget-project.description='sib-form-textarea'
|
|
||||||
|
|
||||||
label-businessProvider.name='Apporteur d\'affaire*'
|
|
||||||
class-businessProvider.name='form-label is-light is-half-width input-text-like'
|
|
||||||
|
|
||||||
label-businessProvider.fee='Contribution'
|
|
||||||
class-businessProvider.fee='form-label is-light is-half-width input-text-like'
|
|
||||||
|
|
||||||
label-captain='Capitaine du projet'
|
|
||||||
range-captain=`${endpoints.users || endpoints.get.users}`
|
range-captain=`${endpoints.users || endpoints.get.users}`
|
||||||
class-captain='form-label is-light is-half-width'
|
class-captain='form-label is-light is-half-width'
|
||||||
widget-captain='sib-form-auto-completion'
|
widget-captain='sib-form-auto-completion'
|
||||||
|
|
||||||
|
widget-logo="sib-form-file"
|
||||||
|
label-logo="Télécharger un logo"
|
||||||
|
class-logo='form-label is-light is-full-width'
|
||||||
|
upload-url-logo=`${endpoints.uploads || endpoints.post.uploads}`
|
||||||
|
|
||||||
next='admin-project-list'
|
next='admin-project-list'
|
||||||
|
|
||||||
submit-button='Enregistrer'
|
submit-button='Enregistrer et ajouter des membres'
|
||||||
)
|
)
|
||||||
|
@ -20,15 +20,14 @@
|
|||||||
sib-link(
|
sib-link(
|
||||||
class='button text-bold text-uppercase reversed button-primary bordered with-icon icon-plus'
|
class='button text-bold text-uppercase reversed button-primary bordered with-icon icon-plus'
|
||||||
next='admin-project-create'
|
next='admin-project-create'
|
||||||
) Créer un projet
|
) Créer un nouveau projet
|
||||||
|
|
||||||
.table-wrapper
|
|
||||||
.table
|
.table
|
||||||
div.table-header.grey-color
|
div.table-header.grey-color
|
||||||
div.w262 Nom
|
div.w25 Nom
|
||||||
div.w262 Administrateurs
|
div.w25 Administrateurs
|
||||||
div.w262 Capitaines
|
div.w25 Capitaines
|
||||||
div.w262 Accès
|
div.w25 Rejoindre
|
||||||
|
|
||||||
sib-widget(name="hubl-admin-project-leave-button")
|
sib-widget(name="hubl-admin-project-leave-button")
|
||||||
template
|
template
|
||||||
@ -40,11 +39,11 @@
|
|||||||
|
|
||||||
sib-widget(name='hubl-project-captain')
|
sib-widget(name='hubl-project-captain')
|
||||||
template
|
template
|
||||||
sib-display.user-thumb.is-spaced(
|
sib-display.user-thumb(
|
||||||
data-src='${await value}'
|
data-src='${await value}'
|
||||||
fields='account.picture, sup(name), sub(username)'
|
fields='account.picture, sup(name), sub(username)'
|
||||||
|
|
||||||
class-account.picture='avatar user-thumb__picture'
|
class-account.picture='user-thumb__picture'
|
||||||
class-name='user-thumb__name'
|
class-name='user-thumb__name'
|
||||||
class-username='user-thumb__username'
|
class-username='user-thumb__username'
|
||||||
|
|
||||||
@ -62,37 +61,67 @@
|
|||||||
widget-user='hubl-project-captain'
|
widget-user='hubl-project-captain'
|
||||||
)
|
)
|
||||||
|
|
||||||
sib-widget(name="hubl-admin-project-buttons")
|
sib-widget(name='hubl-admin-project-leave-button')
|
||||||
template
|
template
|
||||||
sib-display(
|
sib-delete(
|
||||||
data-src='${src}'
|
class='button text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
|
||||||
nested-field='members'
|
data-src="${src}"
|
||||||
fields='relation'
|
data-label='Quitter'
|
||||||
action-relation='relation'
|
|
||||||
widget-relation='hubl-admin-project-leave-button'
|
|
||||||
search-fields='user'
|
|
||||||
search-widget-user='sib-form-hidden'
|
|
||||||
search-value-user="-"
|
|
||||||
hubl-inherit-user-id="search-value-user"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
sib-display(
|
sib-display(
|
||||||
class='table-body'
|
class='table-body'
|
||||||
|
|
||||||
data-src=`${endpoints.projects || endpoints.get.projects}`
|
bind-user
|
||||||
fields='name, members, captain, buttons'
|
nested-field="projects"
|
||||||
|
fields='project.name, project.members, project.captain, leaveButton'
|
||||||
|
|
||||||
class-name='w262 border cell-with-name hashtag'
|
class-project.name='w25 cell border cell-with-name'
|
||||||
class-members='w262 border'
|
class-project.members='w25 cell border'
|
||||||
class-captain='w262 border cell-with-id-card'
|
class-project.captain='w25 cell border cell-with-id-card'
|
||||||
class-buttons='w262 border cell-with-buttons'
|
class-leaveButton='w25 cell border cell-with-buttons'
|
||||||
|
|
||||||
widget-buttons="admin-project-buttons"
|
action-leaveButton="joinButton"
|
||||||
action-buttons="buttons"
|
widget-leaveButton="hubl-admin-project-leave-button"
|
||||||
|
|
||||||
|
widget-project.captain='hubl-project-captain'
|
||||||
|
widget-project.members='hubl-project-admins'
|
||||||
|
|
||||||
|
order-by="project.name"
|
||||||
|
)
|
||||||
|
|
||||||
|
sib-widget(name='hubl-admin-project-join-button')
|
||||||
|
template
|
||||||
|
sib-form.button.text-bold.text-uppercase.reversed.button-primary.bordered.with-icon.icon-arrow-right-circle.flex(
|
||||||
|
data-src='${src}'
|
||||||
|
nested-field="members"
|
||||||
|
|
||||||
|
fields='user.username'
|
||||||
|
value-user.username='hubl-workaround-493'
|
||||||
|
widget-user.username='sib-form-hidden'
|
||||||
|
|
||||||
|
submit-button='Rejoindre'
|
||||||
|
)
|
||||||
|
|
||||||
|
sib-display(
|
||||||
|
class='table-body'
|
||||||
|
|
||||||
|
data-src=`${endpoints.projects || endpoints.get.projects}joinable/`
|
||||||
|
fields='name, members, captain, joinButton'
|
||||||
|
|
||||||
|
class-name='w25 cell border cell-with-name'
|
||||||
|
class-members='w25 cell border'
|
||||||
|
class-captain='w25 cell border cell-with-id-card'
|
||||||
|
class-joinButton='w25 cell border cell-with-buttons'
|
||||||
|
|
||||||
|
action-joinButton="joinButton" # Workaround: I need members two times
|
||||||
|
widget-joinButton="hubl-admin-project-join-button"
|
||||||
|
|
||||||
widget-captain='hubl-project-captain'
|
widget-captain='hubl-project-captain'
|
||||||
widget-members='hubl-project-admins'
|
widget-members='hubl-project-admins'
|
||||||
|
|
||||||
|
order-by="name"
|
||||||
)
|
)
|
||||||
|
|
||||||
#admin-project-create.content-box__height(hidden)
|
#admin-project-create(hidden)
|
||||||
include page-admin-projects-create.pug
|
include page-admin-projects-create.pug
|
@ -9,24 +9,26 @@ div.content-box__info
|
|||||||
sib-form.form.button-register(
|
sib-form.form.button-register(
|
||||||
bind-resources
|
bind-resources
|
||||||
|
|
||||||
fields='line-1(customer, name), description, line-2(businessProvider, businessProviderFee)'
|
fields='status, block-project__info(customer.name, name), description'
|
||||||
|
|
||||||
|
label-status='Statut du canal*'
|
||||||
|
widget-status='hubl-status'
|
||||||
|
class-status='form-label is-light is-full-width member-select color'
|
||||||
|
|
||||||
class-customer='form-label is-light is-half-width'
|
|
||||||
widget-customer='sib-form-auto-completion'
|
|
||||||
class-name='form-label is-light is-half-width input-text-like'
|
|
||||||
class-description='form-label is-light is-full-width input-text-like'
|
|
||||||
label-customer='Client*'
|
|
||||||
range-customer=`${endpoints.customers || endpoints.get.customers}`
|
|
||||||
label-name='Nom du projet*'
|
label-name='Nom du projet*'
|
||||||
|
class-name='form-label is-light is-half-width'
|
||||||
|
|
||||||
|
label-customer.name='Nom du client*'
|
||||||
|
class-customer.name='form-label is-light is-half-width'
|
||||||
|
|
||||||
label-description='Description du projet'
|
label-description='Description du projet'
|
||||||
|
class-description='form-label is-light is-full-width'
|
||||||
widget-description='sib-form-textarea'
|
widget-description='sib-form-textarea'
|
||||||
|
|
||||||
class-businessprovider='form-label is-light is-half-width input-text-like'
|
partial=""
|
||||||
class-businessproviderfee='form-label is-light is-half-width input-text-like'
|
|
||||||
label-businessprovider='Apporteur d\'affaire'
|
|
||||||
label-businessproviderfee='Montant de la contribution'
|
|
||||||
|
|
||||||
submit-button='Enregistrer'
|
submit-button='Enregistrer'
|
||||||
|
next='project-information'
|
||||||
)
|
)
|
||||||
|
|
||||||
h2 Liste des membres :
|
h2 Liste des membres :
|
||||||
@ -44,11 +46,11 @@ div.content-box__info
|
|||||||
submit-button='Ajouter un membre'
|
submit-button='Ajouter un membre'
|
||||||
)
|
)
|
||||||
|
|
||||||
.table-wrapper
|
|
||||||
.table
|
.table
|
||||||
|
|
||||||
div.table-header.grey-color
|
div.table-header.grey-color
|
||||||
div.w355 Nom
|
div.w66 Nom
|
||||||
div.W152 Accès
|
div.w33 Accès
|
||||||
|
|
||||||
//-class='table-body'
|
//-class='table-body'
|
||||||
sib-display(
|
sib-display(
|
||||||
|
@ -21,10 +21,25 @@ sib-router(default-route='project-profile', hidden)
|
|||||||
widget-creationDate='sib-display-date'
|
widget-creationDate='sib-display-date'
|
||||||
)
|
)
|
||||||
sib-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
sib-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
||||||
sib-link(class='button mobile-full-width text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='project-edit' bind-resources) Modifier et ajouter un membre
|
sib-link(class='button text-bold text-uppercase reversed button-primary bordered with-icon icon-pencil' next='project-edit' bind-resources) Modifier et ajouter un membre
|
||||||
|
|
||||||
|
sib-display(
|
||||||
|
class='position-end'
|
||||||
|
bind-resources
|
||||||
|
nested-field='members'
|
||||||
|
fields='relation'
|
||||||
|
|
||||||
.flex.space-between.with-padding
|
action-relation='relation'
|
||||||
|
widget-relation='hubl-project-leave-button'
|
||||||
|
|
||||||
|
search-fields='user'
|
||||||
|
search-widget-user='sib-form-hidden'
|
||||||
|
search-value-user=""
|
||||||
|
|
||||||
|
hubl-inherit-user-id="search-value-user"
|
||||||
|
)
|
||||||
|
|
||||||
|
.space-between
|
||||||
sib-display(
|
sib-display(
|
||||||
bind-resources
|
bind-resources
|
||||||
fields='label-captain, captain'
|
fields='label-captain, captain'
|
||||||
@ -51,6 +66,7 @@ sib-router(default-route='project-profile', hidden)
|
|||||||
multiple-members
|
multiple-members
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
sib-widget(name='hubl-project-leave-button')
|
sib-widget(name='hubl-project-leave-button')
|
||||||
template
|
template
|
||||||
sib-delete(
|
sib-delete(
|
||||||
@ -59,22 +75,5 @@ sib-router(default-route='project-profile', hidden)
|
|||||||
data-label='Quitter le groupe'
|
data-label='Quitter le groupe'
|
||||||
)
|
)
|
||||||
|
|
||||||
sib-display(
|
|
||||||
class='flex desktop-button__end'
|
|
||||||
bind-resources
|
|
||||||
nested-field='members'
|
|
||||||
fields='relation'
|
|
||||||
|
|
||||||
action-relation='relation'
|
|
||||||
widget-relation='hubl-project-leave-button'
|
|
||||||
|
|
||||||
search-fields='user'
|
|
||||||
search-widget-user='sib-form-hidden'
|
|
||||||
search-value-user=""
|
|
||||||
|
|
||||||
hubl-inherit-user-id="search-value-user"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
#project-edit.content-box__height(hidden)
|
#project-edit.content-box__height(hidden)
|
||||||
include page-project-edit.pug
|
include page-project-edit.pug
|
||||||
|
Loading…
Reference in New Issue
Block a user