hubl/src/page-circle-edit.pug
2019-10-24 22:03:15 +02:00

72 lines
1.6 KiB
Plaintext

div.content-box__info
include templates/hd-user-avatar.pug
sib-widget(name='hd-user-groups')
template ${await value.name}
sib-widget(name='team-template-edit')
template
sib-display(
data-src='${await value.user}'
fields='account.picture, sup(name, groups), sub(profile.city)'
widget-account.picture='hd-user-avatar'
multiple-groups=''
widget-groups='hd-user-groups'
)
sib-ac-checker(
permission="acl:Delete"
data-src="${await value['@id']}"
)
sib-delete(
data-src="${await value['@id']}"
data-label='Leave the circle'
)
//- Only to show the table grid
sib-ac-checker(
no-permission="acl:Delete"
data-src="${await value['@id']}"
)
sib-link(class="backlink", bind-resources, next='circle-profile') Back
h1 Edit your circle
sib-form.block(
bind-resources
fields='block-circle__info(name, owner), description'
range-owner=`${endpoints.users}`
label-owner='owner'
class-name='form-label is-light is-half-width'
class-owner='form-label is-light is-half-width member-select color'
class-description='form-label is-light is-full-width'
widget-owner='sib-form-auto-completion'
widget-description='sib-form-textarea'
partial=''
submit-button='Save'
)
h2 Members list
div.table-header
div.cell Name
div.cell Access
sib-display.table-body(
bind-resources
fields='members'
multiple-members=''
widget-members='team-template-edit'
)