2021-01-08 14:39:37 +00:00
|
|
|
solid-router(default-route='circle-profile', hidden)
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-route(name='circle-profile')
|
|
|
|
solid-route(name='circle-edit')
|
2019-10-24 20:03:15 +00:00
|
|
|
|
2021-01-08 14:39:37 +00:00
|
|
|
#circle-profile(hidden, data-view="circle-profile")
|
|
|
|
solid-ac-checker.block(permission='acl:Read', bind-resources)
|
2021-01-19 18:59:24 +00:00
|
|
|
div.segment.lg-full.sm-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
|
|
|
|
fields='name, dash, description'
|
|
|
|
|
|
|
|
value-dash=' - '
|
|
|
|
|
|
|
|
class-name='text-color-heading text-bold'
|
|
|
|
class-dash='text-color-heading text-bold'
|
|
|
|
)
|
2020-10-08 12:03:30 +00:00
|
|
|
|
|
|
|
solid-widget(name='hubl-circle-team-contact')
|
|
|
|
template
|
2021-01-08 14:39:37 +00:00
|
|
|
solid-link.icon.icon-secondary.hover.icon-speech.margin-left-xsmall(data-src='\${value}', next='messages')
|
2020-06-15 10:59:43 +00:00
|
|
|
|
2021-01-19 18:59:24 +00:00
|
|
|
div.segment.lg-full.sm-full.padding-large.sm-padding-xsmall.sm-padding-top-xlarge
|
2020-08-31 10:04:51 +00:00
|
|
|
div#loader-circle-profile.loader
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
|
2021-01-08 14:39:37 +00:00
|
|
|
div.whitespace-normal
|
2021-01-19 18:59:24 +00:00
|
|
|
solid-display.segment.lg-half.sm-full.sm-margin-bottom-medium(
|
2019-11-06 17:44:02 +00:00
|
|
|
bind-resources
|
|
|
|
fields='creationDateSet(title, creationDate)'
|
2020-08-31 10:04:51 +00:00
|
|
|
loader-id='loader-circle-profile'
|
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
|
|
|
|
|
|
|
solid-ac-checker.segment.lg-half.sm-full.text-right.margin-bottom-large(permission='acl:Append', bind-resources, nested-field='members')
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-ac-checker(permission='acl:Delete', bind-resources)
|
2021-01-19 18:59:24 +00:00
|
|
|
solid-link(class='segment sm-full margin-bottom-large sm-margin-bottom-medium button text-xsmall text-bold text-uppercase text-center reversed color-secondary bordered icon icon-pencil' next='circle-edit' bind-resources data-trans='circle.profile.buttonModify')
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-ac-checker(no-permission='acl:Delete', bind-resources)
|
2021-01-19 18:59:24 +00:00
|
|
|
solid-link(class='segment sm-full margin-bottom-large sm-margin-bottom-medium button text-xsmall text-bold text-uppercase text-center reversed color-secondary bordered icon icon-pencil' next='circle-edit' bind-resources data-trans='circle.profile.buttonAdd')
|
2019-10-30 10:47:39 +00:00
|
|
|
|
2021-01-19 18:59:24 +00:00
|
|
|
solid-ac-checker.segment.lg-full.sm-full.text-right.margin-bottom-large.sm-margin-bottom-medium(permission='acl:Delete', bind-resources)
|
2021-01-08 14:39:37 +00:00
|
|
|
solid-delete(
|
2021-01-19 18:59:24 +00:00
|
|
|
class='segment sm-full button text-xsmall text-bold text-uppercase text-uppercase text-center color-secondary bordered'
|
2021-01-08 14:39:37 +00:00
|
|
|
bind-resources
|
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=circle.profile.buttonDelete'
|
|
|
|
next='admin-circles'
|
|
|
|
)
|
|
|
|
|
|
|
|
solid-widget(name='hubl-circle-leave-button')
|
2019-10-30 10:47:39 +00:00
|
|
|
template
|
2020-09-03 10:15:47 +00:00
|
|
|
solid-ac-checker(no-permission='acl:Delete', data-src="${src}", nested-field="circle")
|
|
|
|
solid-delete(
|
2020-12-06 15:20:33 +00:00
|
|
|
class='button text-xsmall text-bold text-uppercase color-secondary bordered'
|
2020-09-03 10:15:47 +00:00
|
|
|
data-src="${src}"
|
2020-10-21 13:31:05 +00:00
|
|
|
data-label=''
|
|
|
|
data-trans='data-label=circle.profile.buttonQuit'
|
2020-09-03 10:15:47 +00:00
|
|
|
next='circle-left'
|
|
|
|
)
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-widget(name='hubl-circle-join-button')
|
2019-11-14 12:27:04 +00:00
|
|
|
template
|
2020-12-06 15:20:33 +00:00
|
|
|
button.button.text-xsmall.text-bold.text-uppercase.reversed.color-secondary.bordered.icon.icon-arrow-right-circle
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-form(
|
2019-11-14 12:27:04 +00:00
|
|
|
data-src=''
|
|
|
|
nested-field='members'
|
|
|
|
|
2020-09-03 10:15:47 +00:00
|
|
|
fields='user.username'
|
|
|
|
value-user.username='hubl-workaround-493'
|
|
|
|
widget-user.username='solid-form-hidden'
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-10-21 13:31:05 +00:00
|
|
|
submit-button=''
|
|
|
|
data-trans='submit-button=circle.profile.buttonJoin'
|
2019-10-30 10:47:39 +00:00
|
|
|
)
|
2019-10-25 13:35:14 +00:00
|
|
|
|
2020-06-18 18:02:54 +00:00
|
|
|
solid-display(
|
2019-10-30 10:47:39 +00:00
|
|
|
bind-resources
|
2019-11-14 12:27:04 +00:00
|
|
|
nested-field='members'
|
|
|
|
fields='relation'
|
|
|
|
action-relation='relation'
|
2020-05-08 13:27:44 +00:00
|
|
|
widget-relation='hubl-circle-leave-button'
|
2019-11-14 12:27:04 +00:00
|
|
|
search-fields='user'
|
2020-06-18 18:02:54 +00:00
|
|
|
search-widget-user='solid-form-hidden'
|
2019-11-14 12:27:04 +00:00
|
|
|
search-value-user=""
|
2020-05-08 13:27:44 +00:00
|
|
|
empty-widget='hubl-circle-join-button'
|
|
|
|
hubl-inherit-bind-resources='hubl-circle-join-button'
|
|
|
|
hubl-inherit-user-id="search-value-user"
|
2019-10-30 10:47:39 +00:00
|
|
|
)
|
2019-10-25 13:35:14 +00:00
|
|
|
|
2021-01-08 22:31:48 +00:00
|
|
|
h3.text-color-heading.text-bold.text-uppercase.text-letter-spacing-large(data-trans='circle.profile.subTitle')
|
2020-05-29 16:12:29 +00:00
|
|
|
|
2020-09-14 13:41:10 +00:00
|
|
|
solid-widget(name='hubl-circle-user-admin')
|
|
|
|
template ${value ? "Administrateur" : ""}
|
|
|
|
|
2021-01-19 18:59:24 +00:00
|
|
|
solid-display.segment.lg-full.sm-full.labelled-avatar.two-lines.whitespace-normal.children.lg-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'
|
2020-08-31 10:04:51 +00:00
|
|
|
loader-id='loader-circle-profile'
|
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-08 14:39:37 +00:00
|
|
|
class-segment2='segment lg-three-quarter margin-left-xsmall'
|
|
|
|
class-line1='block'
|
|
|
|
class-user.name='text-semibold text-color-heading text-sub'
|
|
|
|
class-line2='block'
|
|
|
|
class-atom='icon icon-large icon-third mdi-atom margin-right-xxsmall'
|
|
|
|
class-user.communities='lg-full'
|
2020-12-06 15:20:33 +00:00
|
|
|
|
2021-01-08 14:39:37 +00:00
|
|
|
class-is_admin='segment margin-left-medium tag color-primary'
|
|
|
|
|
2020-10-13 16:18:13 +00:00
|
|
|
multiple-user.communities
|
|
|
|
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
|
|
|
)
|
|
|
|
|
2020-12-11 20:44:00 +00:00
|
|
|
#circle-edit(hidden, data-view="circle-edit")
|
2019-10-29 14:48:37 +00:00
|
|
|
include page-circle-edit.pug
|