2021-02-22 20:27:58 +00:00
|
|
|
solid-router(default-route=`${component.route}-profile`, hidden)
|
|
|
|
solid-route(name=`${component.route}-profile`)
|
|
|
|
solid-route(name=`${component.route}-edit`)
|
|
|
|
|
|
|
|
div(
|
|
|
|
id=`${component.route}-profile`
|
|
|
|
hidden
|
|
|
|
data-view=`${component.route}-profile`
|
|
|
|
)
|
2021-01-22 15:30:39 +00:00
|
|
|
solid-ac-checker.segment.block(permission='acl:Read', bind-resources)
|
2021-01-22 13:29:45 +00:00
|
|
|
div.segment.full.padding-large.sm-padding-top-small.sm-padding-right-xsmall.sm-padding-bottom-small.sm-padding-left-xsmall.border-bottom.border-color-grey.whitespace-normal
|
2020-12-06 17:28:28 +00:00
|
|
|
solid-display.text-xxlarge.text-letter-spacing-large(
|
|
|
|
bind-resources
|
2021-01-21 22:54:20 +00:00
|
|
|
fields='name, dash, subtitle'
|
2020-12-06 17:28:28 +00:00
|
|
|
|
|
|
|
value-dash=' - '
|
|
|
|
|
|
|
|
class-name='text-color-heading text-bold'
|
|
|
|
class-dash='text-color-heading text-bold'
|
|
|
|
)
|
2021-03-16 14:27:30 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
div.segment.full.padding-large.sm-padding-xsmall.sm-padding-top-xlarge
|
2021-02-22 20:27:58 +00:00
|
|
|
div.loader(id=`loader-${component.route}-profile-1`)
|
2020-08-31 10:04:51 +00:00
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
|
2021-01-08 14:39:37 +00:00
|
|
|
div.whitespace-normal
|
2021-01-22 13:29:45 +00:00
|
|
|
solid-display.segment.half.sm-full.sm-margin-bottom-medium(
|
2019-11-06 17:44:02 +00:00
|
|
|
bind-resources
|
|
|
|
fields='creationDateSet(title, creationDate)'
|
2021-02-22 20:27:58 +00:00
|
|
|
loader-id=`loader-${component.route}-profile-1`
|
2019-09-25 14:16:17 +00:00
|
|
|
|
2020-10-21 13:31:05 +00:00
|
|
|
value-title=''
|
|
|
|
data-trans='value-title=circle.profile.creationDate'
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-09-14 13:41:10 +00:00
|
|
|
widget-creationDate='solid-display-value-date'
|
2019-11-06 17:44:02 +00:00
|
|
|
)
|
2021-01-19 18:59:24 +00:00
|
|
|
|
2021-01-26 14:29:57 +00:00
|
|
|
.segment.half.sm-full.text-right.margin-bottom-medium.sm-margin-bottom-small
|
|
|
|
solid-ac-checker(permission='acl:Append', bind-resources, nested-field='members')
|
|
|
|
solid-ac-checker(permission='acl:Delete', bind-resources)
|
2021-02-22 20:27:58 +00:00
|
|
|
solid-link(class='segment sm-full button text-xsmall text-bold text-uppercase text-center reversed color-secondary bordered icon icon-pencil' next=`${component.route}-edit` bind-resources data-trans='circle.profile.buttonModify')
|
2021-01-26 14:29:57 +00:00
|
|
|
solid-ac-checker(no-permission='acl:Delete', bind-resources)
|
2021-02-22 20:27:58 +00:00
|
|
|
solid-link(class='segment sm-full button text-xsmall text-bold text-uppercase text-center reversed color-secondary bordered icon icon-pencil' next=`${component.route}-edit` bind-resources data-trans='circle.profile.buttonAdd')
|
|
|
|
|
2021-03-16 14:27:30 +00:00
|
|
|
solid-widget(name=`hubl-circle-leave-button-${component.uniq}`)
|
2021-02-22 20:27:58 +00:00
|
|
|
template
|
2021-03-16 14:27:30 +00:00
|
|
|
solid-ac-checker(permission='acl:Delete', data-src="${src}")
|
|
|
|
solid-ac-checker(no-permission='acl:Delete', data-src="${src}", nested-field='circle')
|
|
|
|
solid-delete(
|
|
|
|
class='button text-xsmall text-bold text-uppercase color-secondary bordered'
|
|
|
|
data-src="${src}"
|
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=circle.profile.buttonQuit'
|
|
|
|
next=`${component.route}-left`
|
|
|
|
)
|
2019-10-30 10:47:39 +00:00
|
|
|
|
2021-01-26 14:29:57 +00:00
|
|
|
.segment.full.text-right.margin-bottom-large.sm-margin-bottom-medium
|
|
|
|
solid-display.segment(
|
2021-01-08 14:39:37 +00:00
|
|
|
bind-resources
|
2021-01-26 14:29:57 +00:00
|
|
|
nested-field='members'
|
|
|
|
fields='relation'
|
|
|
|
action-relation='relation'
|
2021-03-16 14:27:30 +00:00
|
|
|
widget-relation=`hubl-circle-leave-button-${component.uniq}`
|
2021-01-26 14:29:57 +00:00
|
|
|
search-fields='user'
|
|
|
|
search-widget-user='solid-form-hidden'
|
2021-03-16 14:27:30 +00:00
|
|
|
search-value-user='store://user.@id'
|
2021-01-26 14:29:57 +00:00
|
|
|
empty-widget='hubl-circle-join-button'
|
2021-01-08 14:39:37 +00:00
|
|
|
)
|
2021-01-26 14:29:57 +00:00
|
|
|
solid-ac-checker.segment.margin-left-small(permission='acl:Delete', bind-resources)
|
|
|
|
solid-delete(
|
|
|
|
class='segment sm-full text-xsmall text-center children-link-button children-link-text-bold children-link-text-uppercase children-link-color-secondary bordered'
|
|
|
|
bind-resources
|
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=circle.profile.buttonDelete'
|
2021-02-22 20:27:58 +00:00
|
|
|
next=`admin-${component.route}`
|
2021-01-26 14:29:57 +00:00
|
|
|
)
|
2021-03-16 14:27:30 +00:00
|
|
|
|
2021-01-21 22:54:20 +00:00
|
|
|
h3.text-color-heading.text-bold.text-letter-spacing-large(data-trans='circle.profile.description')
|
2021-03-16 14:27:30 +00:00
|
|
|
|
2021-01-21 22:54:20 +00:00
|
|
|
solid-display.segment.block.sm-hidden.whitespace-normal(
|
|
|
|
bind-resources
|
|
|
|
fields='description'
|
|
|
|
widget-description='solid-display-value-markdown'
|
|
|
|
)
|
2019-10-30 10:47:39 +00:00
|
|
|
|
2021-01-21 22:54:20 +00:00
|
|
|
h3.text-color-heading.text-bold.text-letter-spacing-large(data-trans='circle.profile.subTitle')
|
2020-05-29 16:12:29 +00:00
|
|
|
|
2021-02-22 20:27:58 +00:00
|
|
|
div.loader(id=`loader-${component.route}-profile-2`)
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
2020-09-14 13:41:10 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
solid-display.segment.full.labelled-avatar.two-lines.whitespace-normal.children.children-full.sm-children-full.children-margin-bottom-medium(
|
2020-05-29 16:12:29 +00:00
|
|
|
bind-resources
|
2020-09-14 13:41:10 +00:00
|
|
|
nested-field='members'
|
2021-02-22 20:27:58 +00:00
|
|
|
loader-id=`loader-${component.route}-profile-2`
|
2021-01-08 14:39:37 +00:00
|
|
|
fields='segment1(user.account.picture), segment2(line1(user.name, user, is_admin), line2(atom, user.communities))'
|
2020-09-14 13:41:10 +00:00
|
|
|
|
2021-01-08 14:39:37 +00:00
|
|
|
class-segment1='segment'
|
|
|
|
class-user.account.picture='avatar'
|
2020-12-06 15:20:33 +00:00
|
|
|
|
2021-01-22 13:29:45 +00:00
|
|
|
class-segment2='segment three-quarter margin-left-xsmall'
|
2021-01-22 15:30:39 +00:00
|
|
|
class-line1='segment block'
|
2021-01-21 13:58:43 +00:00
|
|
|
class-user.name='text-small text-semibold text-color-heading text-sub'
|
2021-01-22 15:30:39 +00:00
|
|
|
class-line2='segment block'
|
2021-01-08 14:39:37 +00:00
|
|
|
class-atom='icon icon-large icon-third mdi-atom margin-right-xxsmall'
|
2021-01-22 13:29:45 +00:00
|
|
|
class-user.communities='full'
|
2021-01-26 14:29:57 +00:00
|
|
|
|
2021-01-19 21:57:32 +00:00
|
|
|
class-is_admin='segment tag color-primary'
|
2021-01-08 14:39:37 +00:00
|
|
|
|
2020-10-13 16:18:13 +00:00
|
|
|
multiple-user.communities
|
2021-03-16 14:27:30 +00:00
|
|
|
multiple-user.communities-fields='community.name'
|
2020-05-29 16:12:29 +00:00
|
|
|
|
2021-01-08 14:39:37 +00:00
|
|
|
widget-user='hubl-circle-team-contact'
|
2020-09-14 13:41:10 +00:00
|
|
|
widget-user.account.picture='hubl-user-avatar'
|
|
|
|
widget-is_admin='hubl-circle-user-admin'
|
2020-05-29 16:12:29 +00:00
|
|
|
)
|
|
|
|
|
2021-02-22 20:27:58 +00:00
|
|
|
div(
|
|
|
|
id=`${component.route}-edit`
|
|
|
|
hidden
|
|
|
|
data-view=`${component.route}-edit`
|
|
|
|
)
|
2019-10-29 14:48:37 +00:00
|
|
|
include page-circle-edit.pug
|