hubl/src/views/partials/admin/page-admin-circles.pug

137 lines
6.2 KiB
Plaintext
Raw Normal View History

2020-12-11 20:44:00 +00:00
solid-router(default-route='admin-circle-list', hidden)
solid-route(name='admin-circle-list')
solid-route(name='admin-circle-create')
solid-route(name='circle-left')
2020-12-11 20:44:00 +00:00
#circle-left(hidden, data-view="circle-left")
2020-05-08 13:27:44 +00:00
include ../circle/page-circle-left.pug
2020-12-11 20:44:00 +00:00
#admin-circle-list(hidden, data-view="admin-circle-list")
solid-widget(name='hubl-circle-owner')
template
2021-01-10 21:43:24 +00:00
solid-display.labelled-avatar.two-lines(
2020-12-11 20:44:00 +00:00
data-src='${await value}'
2021-01-10 21:43:24 +00:00
fields='segment1(account.picture), segment2(line1(name), line2(at, username))'
2020-12-11 20:44:00 +00:00
2021-01-10 21:43:24 +00:00
class-segment1='segment'
class-account.picture='avatar'
class-segment2='segment lg-three-quarter margin-left-xsmall'
class-line1='block'
class-name='text-semibold text-color-heading text-sub'
class-line2='block'
2020-12-11 20:44:00 +00:00
class-username=''
widget-account.picture='hubl-user-avatar'
2021-01-10 21:43:24 +00:00
value-at='@'
2020-12-11 20:44:00 +00:00
)
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
h2.lg-margin-none.sm-margin-none.text-uppercase.text-xlarge.text-letter-spacing-large(data-trans='circle.list.title')
2020-12-11 20:44:00 +00:00
2021-01-19 18:59:24 +00:00
div.segment.lg-full.sm-full.padding-large.sm-padding-xsmall.sm-padding-top-normal.whitespace-normal
2021-01-10 21:43:24 +00:00
div#loader-admin-circles.loader.loader-top
div
div
div
div
2021-01-19 18:59:24 +00:00
div.segment.lg-full.sm-full.margin-bottom-xlarge.whitespace-normal
div.segment.lg-half.sm-full
2020-12-11 20:44:00 +00:00
h3.text-color-heading.text-semibold.text-letter-spacing-large(data-trans='circle.list.subTitle')
2021-01-19 18:59:24 +00:00
div.segment.lg-half.sm-full.text-right
2020-12-11 20:44:00 +00:00
solid-ac-checker(data-src=`${endpoints.circles || (endpoints.post && endpoints.post.circles)}`, permission='acl:Append')
solid-link(
2021-01-19 18:59:24 +00:00
class='segment sm-full button text-xsmall text-bold text-uppercase text-center reversed color-secondary bordered icon icon-plus'
2020-12-11 20:44:00 +00:00
next='admin-circle-create'
data-trans='circle.list.buttonCreate'
)
2021-01-10 21:43:24 +00:00
.segment.table-wrapper
2020-12-11 20:44:00 +00:00
.table
div.table-header.bg-color-third.text-color-heading
2021-01-10 21:43:24 +00:00
div.segment.table-cell.lg-third(data-trans='circle.list.tableHeader1')
div.segment.table-cell.lg-third(data-trans='circle.list.tableHeader2')
div.segment.table-cell.lg-third(data-trans='circle.list.tableHeader3')
2020-12-11 20:44:00 +00:00
solid-widget(name='hubl-admin-circle-leave-button')
template
solid-delete(
class='button text-xsmall text-bold text-uppercase color-secondary bordered'
data-src="${src}"
data-label=''
data-trans='data-label=circle.list.buttonQuit'
)
hubl-reactivity(data-src=`${endpoints.circles || endpoints.get.circles}` target-src='${src}')
hubl-reactivity(data-src=`${endpoints.circles || endpoints.get.circles}joinable/` target-src='${src}')
hubl-reactivity(bind-user nested-field="circles" target-src='${src}')
if (endpoints.post && endpoints.post.circles) && (endpoints.get && endpoints.get.circles)
hubl-reactivity(data-src=`${endpoints.post.circles}joinable/` target-src=`${src}`)
hubl-reactivity(data-src=`${endpoints.post.circles}` target-src=`${src}`)
solid-display(
class='table-body'
bind-user
nested-field='circles'
2021-01-10 21:43:24 +00:00
fields='cell1(circle.name, circle.description), cell2(circle.owner), cell3(leaveButton)'
2020-12-11 20:44:00 +00:00
loader-id='loader-admin-circles'
2021-01-10 21:43:24 +00:00
class-cell1='segment table-cell padding-xsmall lg-third text-left text-top'
class-cell2='segment table-cell padding-top-xsmall padding-right-xlarge padding-bottom-xsmall padding-left-xlarge lg-third text-center text-left'
class-cell3='segment table-cell padding-xsmall lg-third text-center'
class-circle.name='segment block margin-bottom-xxsmall text-xlarge text-color-heading text-semibold text-letter-spacing-large text-underline'
2020-12-11 20:44:00 +00:00
action-leaveButton="joinButton"
widget-leaveButton="hubl-admin-circle-leave-button"
widget-circle.owner='hubl-circle-owner'
order-by="circle.name"
)
2020-12-11 20:44:00 +00:00
solid-widget(name='hubl-admin-circle-join-button')
template
solid-form(
class='button text-xsmall text-bold text-uppercase reversed color-secondary bordered icon icon-arrow-right-circle'
data-src='${value}'
2020-04-02 16:09:23 +00:00
2020-12-11 20:44:00 +00:00
fields='user.username'
value-user.username='hubl-workaround-493'
widget-user.username='solid-form-hidden'
2020-12-11 20:44:00 +00:00
submit-button='Rejoindre'
data-trans='submit-button=circle.list.buttonJoin'
2020-11-24 17:09:27 +00:00
)
2020-12-11 20:44:00 +00:00
hubl-reactivity(data-src=`${endpoints.circles || endpoints.get.circles}` target-src='${value}')
hubl-reactivity(data-src=`${endpoints.circles || endpoints.get.circles}joinable/` target-src='${value}')
hubl-reactivity(bind-user nested-field="circles" target-src='${value}')
if (endpoints.post && endpoints.post.circles) && (endpoints.get && endpoints.get.circles)
hubl-reactivity(data-src=`${endpoints.post.circles}joinable/` target-src=`${value}`)
hubl-reactivity(data-src=`${endpoints.post.circles}` target-src=`${value}`)
2019-10-29 13:59:57 +00:00
2020-12-11 20:44:00 +00:00
solid-display(
class='table-body'
2019-11-14 12:27:04 +00:00
2020-12-11 20:44:00 +00:00
data-src=`${endpoints.circles || endpoints.get.circles}joinable/`
2021-01-10 21:43:24 +00:00
fields='cell1(name, description), cell2(owner), cell3(members)'
2020-12-11 20:44:00 +00:00
loader-id='loader-admin-circles'
2021-01-10 21:43:24 +00:00
class-cell1='segment table-cell padding-xsmall lg-third text-left text-top'
class-cell2='segment table-cell padding-top-xsmall padding-right-xlarge padding-bottom-xsmall padding-left-xlarge lg-third text-center text-left'
class-cell3='segment table-cell padding-xsmall lg-third text-center'
class-name='segment block margin-bottom-xxsmall text-xlarge text-color-heading text-semibold text-letter-spacing-large text-underline'
2021-01-10 21:43:24 +00:00
widget-owner='hubl-circle-owner'
2020-12-11 20:44:00 +00:00
widget-members="hubl-admin-circle-join-button"
order-by="name"
)
#admin-circle-create(hidden, data-view="admin-circle-create")
include page-admin-circles-create.pug