hubl/src/views/project/page-project-edit.pug

90 lines
2.4 KiB
Plaintext
Raw Normal View History

div.content-box__info
2020-05-08 13:27:44 +00:00
include ../../templates/hubl-user-avatar.pug
2020-09-14 13:41:10 +00:00
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'
)
2020-06-18 18:02:54 +00:00
solid-link(class='backlink right', bind-resources, next='project-profile') Retour
2020-09-03 10:15:47 +00:00
solid-ac-checker(permission='acl:Write', bind-resources)
h1 Modifie ton projet
2020-09-03 10:15:47 +00:00
div#loader-project-edit.loader.loader-top
div
div
div
div
2020-06-01 15:29:30 +00:00
2020-09-03 10:15:47 +00:00
solid-form.form.button-register(
bind-resources
2020-09-03 13:40:10 +00:00
fields='line-1(customer.name, name)'
2020-09-24 10:56:19 +00:00
required-customer.name
required-name
2019-05-14 15:32:42 +00:00
2020-06-01 15:29:30 +00:00
2020-09-03 10:15:47 +00:00
label-name='Nom du projet*'
class-name='form-label is-light is-half-width input-text-like'
2020-06-01 15:29:30 +00:00
2020-09-03 10:15:47 +00:00
label-customer.name='Nom du client*'
class-customer.name='form-label is-light is-half-width input-text-like'
2020-09-03 10:15:47 +00:00
partial=""
submit-button='Enregistrer'
next='project-information'
)
2020-04-21 10:10:01 +00:00
h2 Liste des membres :
2020-09-03 10:15:47 +00:00
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'
2020-09-03 10:15:47 +00:00
label-user=''
widget-user='solid-form-dropdown-autocompletion'
2020-09-03 10:15:47 +00:00
submit-button='Ajouter un membre'
)
.table-wrapper
.table
div.table-header.grey-color
div.w280 Nom
div.w162 Accès
//-class='table-body'
2020-06-18 18:02:54 +00:00
solid-display(
class='table-body'
bind-resources
2020-09-14 13:41:10 +00:00
nested-field='members'
2020-10-13 16:18:13 +00:00
fields='classGroup(classGrid(user.account.picture, sup(user.name, user.groups), sub(user.communities))), self'
2020-09-03 10:15:47 +00:00
loader-id='loader-project-edit'
2020-09-14 13:41:10 +00:00
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'
2020-10-13 16:18:13 +00:00
multiple-user.communities
multiple-user.communities-fields="community.name"
2020-09-14 13:41:10 +00:00
widget-user.account.picture='hubl-user-avatar'
multiple-user.groups
multiple-user.groups-fields='name'
2020-09-14 13:41:10 +00:00
action-self='self'
widget-self='project-edit-members-delete'
)