2019-10-24 20:03:15 +00:00
|
|
|
div.content-box__info
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2019-10-21 13:38:49 +00:00
|
|
|
include templates/hd-user-avatar.pug
|
|
|
|
|
2019-10-22 13:50:15 +00:00
|
|
|
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')
|
2019-10-22 13:50:15 +00:00
|
|
|
template
|
2019-10-21 13:38:49 +00:00
|
|
|
sib-display(
|
2020-01-08 16:29:23 +00:00
|
|
|
class='w50 cell border cell-with-id-card'
|
2019-10-22 13:50:15 +00:00
|
|
|
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=''
|
2019-10-22 13:50:15 +00:00
|
|
|
widget-groups='hd-user-groups'
|
2019-10-21 13:38:49 +00:00
|
|
|
)
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2019-10-24 19:23:11 +00:00
|
|
|
sib-ac-checker(
|
2019-11-12 22:16:56 +00:00
|
|
|
class='w50 cell border'
|
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(
|
2019-11-12 22:16:56 +00:00
|
|
|
class='w50 cell border'
|
2019-10-24 19:23:11 +00:00
|
|
|
no-permission="acl:Delete"
|
2019-10-25 13:35:14 +00:00
|
|
|
data-src="${value['@id']}"
|
2019-10-15 15:10:16 +00:00
|
|
|
)
|
|
|
|
|
2019-10-24 20:03:15 +00:00
|
|
|
sib-link(class="backlink", bind-resources, next='circle-profile') Back
|
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
sib-ac-checker(permission='acl:Write', bind-resources)
|
|
|
|
h1 Edit your circle
|
2019-10-24 20:03:15 +00:00
|
|
|
|
2020-01-16 17:48:21 +00:00
|
|
|
sib-form.block.form-edit(
|
2019-12-10 10:52:39 +00:00
|
|
|
bind-resources
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
fields='block-circle__info(name, owner), description'
|
|
|
|
range-owner=`${endpoints.users}`
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
label-owner='owner'
|
|
|
|
label-description='circle subtitle'
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
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'
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
widget-owner='sib-form-auto-completion'
|
2019-10-22 13:50:15 +00:00
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
partial=''
|
2019-10-24 19:23:11 +00:00
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
submit-button='Save'
|
|
|
|
next='circle-information'
|
|
|
|
)
|
2019-10-24 20:03:15 +00:00
|
|
|
|
2019-10-24 19:23:11 +00:00
|
|
|
h2 Members list
|
2019-10-15 15:10:16 +00:00
|
|
|
|
2019-12-10 14:33:33 +00:00
|
|
|
sib-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
2020-01-16 17:48:21 +00:00
|
|
|
sib-form.block.select-add-member(
|
2019-12-10 10:52:39 +00:00
|
|
|
bind-resources
|
|
|
|
nested-field='members'
|
|
|
|
fields='user'
|
|
|
|
range-user=`${endpoints.users}`
|
2019-11-11 10:50:10 +00:00
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
class-user='team form-label is-dark'
|
|
|
|
label-user=''
|
|
|
|
widget-user='sib-form-auto-completion'
|
2019-11-11 10:50:10 +00:00
|
|
|
|
2019-12-10 10:52:39 +00:00
|
|
|
submit-button='Add a member'
|
|
|
|
)
|
2019-11-11 10:50:10 +00:00
|
|
|
|
2019-11-13 11:00:38 +00:00
|
|
|
.table
|
2019-11-13 14:23:54 +00:00
|
|
|
|
2019-11-13 11:00:38 +00:00
|
|
|
div.table-header.grey-color
|
|
|
|
div Name
|
|
|
|
div Access
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-01-16 17:48:21 +00:00
|
|
|
//-class='table-body'
|
2019-11-13 11:00:38 +00:00
|
|
|
sib-display(
|
|
|
|
class='table-body'
|
|
|
|
bind-resources
|
|
|
|
fields='members'
|
|
|
|
|
|
|
|
multiple-members=''
|
|
|
|
widget-members='team-template-edit'
|
|
|
|
)
|
2019-11-11 10:22:37 +00:00
|
|
|
|