hubl/src/page-circle-edit.pug

79 lines
1.8 KiB
Plaintext
Raw Normal View History

div.content-box__info
2019-10-21 13:38:49 +00:00
include templates/hd-user-avatar.pug
sib-widget(name='hd-user-groups')
2019-10-25 13:35:14 +00:00
template ${value.name}
2019-10-21 13:38:49 +00:00
2019-10-24 19:44:35 +00:00
sib-widget(name='team-template-edit')
template
2019-10-21 13:38:49 +00:00
sib-display(
class='cell'
data-src='${await value.user}'
2019-10-21 13:38:49 +00:00
fields='account.picture, sup(name, groups), sub(profile.city)'
widget-account.picture='hd-user-avatar'
multiple-groups=''
widget-groups='hd-user-groups'
2019-10-21 13:38:49 +00:00
)
2019-10-25 13:35:14 +00:00
2019-10-24 19:23:11 +00:00
sib-ac-checker(
class='cell'
2019-10-24 19:23:11 +00:00
permission="acl:Delete"
2019-10-25 13:35:14 +00:00
data-src="${value['@id']}"
2019-10-24 19:23:11 +00:00
)
sib-delete(
2019-11-06 14:48:33 +00:00
class='button text-bold text-uppercase reversed button-dark bordered with-icon icon-close'
2019-10-25 13:35:14 +00:00
data-src="${value['@id']}"
2019-10-24 19:23:11 +00:00
data-label='Leave the circle'
)
//- Only to show the table grid
sib-ac-checker(
class='cell'
2019-10-24 19:23:11 +00:00
no-permission="acl:Delete"
2019-10-25 13:35:14 +00:00
data-src="${value['@id']}"
)
sib-link(class="backlink", bind-resources, next='circle-profile') Back
h1 Edit your circle
sib-form.block.circle-edit-form(
bind-resources
2019-10-15 10:14:54 +00:00
2019-10-21 09:37:07 +00:00
fields='block-circle__info(name, owner), description'
range-owner=`${endpoints.users}`
2019-10-21 09:37:07 +00:00
label-owner='owner'
class-name='form-label is-light is-half-width'
2019-10-23 07:57:34 +00:00
class-owner='form-label is-light is-half-width member-select color'
class-description='form-label is-light is-full-width'
2019-10-21 09:37:07 +00:00
widget-owner='sib-form-auto-completion'
widget-description='sib-form-textarea'
2019-10-24 19:23:11 +00:00
partial=''
submit-button='Save'
)
2019-10-24 19:23:11 +00:00
h2 Members list
div.table.cols-2.table-no-border-bottom
div.table-header Name
div.table-header Access
2019-10-17 14:06:22 +00:00
//-class='table-body'
sib-display(
class='table cols-2'
bind-resources
fields='members'
2019-10-21 13:02:12 +00:00
multiple-members=''
2019-10-24 19:44:35 +00:00
widget-members='team-template-edit'
)
2019-11-11 10:22:37 +00:00