hubl/src/views/partials/circle/page-circle-profile.pug

130 lines
5.1 KiB
Plaintext
Raw Normal View History

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')
2021-01-08 14:39:37 +00:00
#circle-profile(hidden, data-view="circle-profile")
solid-ac-checker.block(permission='acl:Read', bind-resources)
div.segment.lg-full.padding-large.border-bottom.border-color-grey
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'
)
div.segment.lg-hidden
button.mobile-sidebar-button.jsMobileSidebarOpenButton.icon-arrow-left-circle(data-trans='circle.menuRight.buttonMobile')
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')
2021-01-08 14:39:37 +00:00
div.segment.lg-full.padding-large
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
solid-display.segment.lg-half(
bind-resources
fields='creationDateSet(title, creationDate)'
2020-08-31 10:04:51 +00:00
loader-id='loader-circle-profile'
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'
)
2021-01-08 14:39:37 +00:00
solid-ac-checker.segment.lg-half.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)
solid-link(class='button text-xsmall text-bold text-uppercase 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)
solid-link(class='button text-xsmall text-bold text-uppercase reversed color-secondary bordered icon icon-pencil' next='circle-edit' bind-resources data-trans='circle.profile.buttonAdd')
2021-01-08 14:39:37 +00:00
solid-ac-checker.segment.lg-full.text-right.margin-bottom-large(permission='acl:Delete', bind-resources)
solid-delete(
class='button text-xsmall text-bold text-uppercase color-secondary bordered'
bind-resources
data-label=''
data-trans='data-label=circle.profile.buttonDelete'
next='admin-circles'
)
solid-widget(name='hubl-circle-leave-button')
template
2020-09-03 10:15:47 +00:00
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'
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
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-25 13:35:14 +00:00
2020-06-18 18:02:54 +00:00
solid-display(
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-25 13:35:14 +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-08 14:39:37 +00:00
solid-display.segment.lg-full.labelled-avatar.two-lines.whitespace-normal.children.lg-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'
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'
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