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

98 lines
3.1 KiB
Plaintext
Raw Normal View History

div.content-box__info
2020-09-14 13:41:10 +00:00
solid-widget(name="project-edit-members-delete")
template
2021-01-13 08:58:52 +00:00
solid-ac-checker(permission="acl:Delete", data-src="${src}")
2020-09-14 13:41:10 +00:00
solid-delete(
class='button text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
data-src="${src}"
2020-10-21 13:31:05 +00:00
data-label=''
data-trans='data-label=project.edit.buttonDelete'
2020-09-14 13:41:10 +00:00
)
2021-01-13 08:58:52 +00:00
2020-10-21 13:31:05 +00:00
solid-link(class='backlink right', bind-resources, next='project-profile' data-trans='project.edit.backlink')
2020-09-03 10:15:47 +00:00
solid-ac-checker(permission='acl:Write', bind-resources)
2020-10-21 13:31:05 +00:00
h1(data-trans='project.edit.title')
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
2021-01-13 08:58:52 +00:00
fields='line-1(customer.name, name), description, help'
2020-09-24 10:56:19 +00:00
required-customer.name
required-name
2019-05-14 15:32:42 +00:00
2020-10-21 13:31:05 +00:00
label-name=''
2020-09-03 10:15:47 +00:00
class-name='form-label is-light is-half-width input-text-like'
2020-06-01 15:29:30 +00:00
2020-10-21 13:31:05 +00:00
label-customer.name=''
2020-09-03 10:15:47 +00:00
class-customer.name='form-label is-light is-half-width input-text-like'
2021-01-13 08:58:52 +00:00
label-description='',
widget-description='solid-form-textarea-label'
class-description='form-label is-light input-text-like'
value-help=''
widget-help='solid-display-value'
class-help='is-small'
2020-09-03 10:15:47 +00:00
partial=""
submit-button='Enregistrer'
next='project-information'
2021-01-13 08:58:52 +00:00
data-trans='label-name=project.edit.labelName;label-customer.name=project.edit.labelCustomer;submit-button=project.edit.buttonSubmit;label-description=project.edit.labelDescription;value-help=project.edit.descriptionHelp'
2020-09-03 10:15:47 +00:00
)
2020-10-21 13:31:05 +00:00
h2(data-trans='project.edit.subTitle')
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-10-21 13:31:05 +00:00
submit-button=''
2020-10-22 17:18:32 +00:00
data-trans='submit-button=project.edit.buttonAddMember'
2020-09-03 10:15:47 +00:00
)
.table-wrapper
.table
div.table-header.grey-color
2020-10-21 19:36:09 +00:00
div.w280(data-trans='project.edit.tableHeader1')
div.w162(data-trans='project.edit.tableHeader2')
//-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'
)