hubl/src/views/project/page-project-edit.pug
Jean-Baptiste Pasquier ee29fa3e7c minor: core@beta
2020-09-14 15:41:10 +02:00

87 lines
2.4 KiB
Plaintext

div.content-box__info
include ../../templates/hubl-user-avatar.pug
solid-widget(name="project-edit-members-delete")
template
solid-ac-checker(permission="acl:Delete" data-src="${src}")
solid-delete(
class='button text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
data-src="${src}"
data-label='Retirer'
)
solid-link(class='backlink right', bind-resources, next='project-profile') Retour
solid-ac-checker(permission='acl:Write', bind-resources)
h1 Modifie ton projet
div#loader-project-edit.loader.loader-top
div
div
div
div
solid-form.form.button-register(
bind-resources
fields='line-1(customer.name, name)'
label-name='Nom du projet*'
class-name='form-label is-light is-half-width input-text-like'
label-customer.name='Nom du client*'
class-customer.name='form-label is-light is-half-width input-text-like'
partial=""
submit-button='Enregistrer'
next='project-information'
)
h2 Liste des membres :
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
solid-form.block.select-add(
bind-resources
nested-field='members'
fields='user'
range-user=`${endpoints.users || endpoints.get.users}`
class-user='team form-label is-light'
label-user=''
widget-user='solid-form-dropdown-autocompletion-label'
submit-button='Ajouter un membre'
)
.table-wrapper
.table
div.table-header.grey-color
div.w280 Nom
div.w162 Accès
//-class='table-body'
solid-display(
class='table-body'
bind-resources
nested-field='members'
fields='classGroup(user.account.picture, sup(user.name, user.groups), sub(user.profile.city)), self'
loader-id='loader-project-edit'
class-classGroup='w280 cell border cell-with-id-card user-thumb is-spaced'
class-user.account.picture='user-thumb__picture avatar'
class-user.name='user-thumb__name'
class-user.groups='user-thumb__groups'
class-user.profile.city='user-thumb__city'
widget-user.account.picture='hubl-user-avatar'
multiple-user.groups=''
widget-user.groups='hubl-user-groups'
action-self='self'
widget-self='project-edit-members-delete'
)