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')
|
2019-10-25 17:15:45 +00:00
|
|
|
|
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-02-05 12:39:29 +00:00
|
|
|
|
2020-12-11 20:44:00 +00:00
|
|
|
#admin-circle-list(hidden, data-view="admin-circle-list")
|
|
|
|
|
|
|
|
solid-widget(name='hubl-circle-owner')
|
|
|
|
template
|
|
|
|
solid-display.segment.margin-left-xlarge.user-thumb(
|
|
|
|
data-src='${await value}'
|
|
|
|
fields='account.picture, content(name-and-icon(name), sub(username))'
|
|
|
|
|
|
|
|
class-account.picture='user-thumb-avatar'
|
|
|
|
class-content='user-thumb-content'
|
|
|
|
class-name-and-icon='user-thumb-content__name-and-icon'
|
|
|
|
class-name='name'
|
|
|
|
class-sub='user-thumb-content__sub-text username'
|
|
|
|
class-username=''
|
|
|
|
|
|
|
|
widget-account.picture='hubl-user-avatar'
|
|
|
|
)
|
|
|
|
|
|
|
|
div.segment.padding-top-xsmall.padding-right-large.padding-bottom-xsmall.padding-left-large.border-bottom.border-color-grey.text-color-heading
|
|
|
|
div
|
|
|
|
h2.text-uppercase.text-xlarge.text-letter-spacing-large(data-trans='circle.list.title')
|
|
|
|
div.segment.lg-hidden
|
|
|
|
button.mobile-sidebar-button.jsMobileSidebarOpenButton.icon-arrow-left-circle(data-trans='circle.list.buttonMobile')
|
|
|
|
|
|
|
|
div.segment.padding-large
|
|
|
|
div.segment.margin-bottom-medium.clearfix
|
|
|
|
div.segment.lg-half.float-left
|
|
|
|
h3.text-color-heading.text-semibold.text-letter-spacing-large(data-trans='circle.list.subTitle')
|
|
|
|
div.segment.lg-half.float-left.text-right.padding-top-xxsmall
|
|
|
|
solid-ac-checker(data-src=`${endpoints.circles || (endpoints.post && endpoints.post.circles)}`, permission='acl:Append')
|
|
|
|
solid-link(
|
|
|
|
class='button text-xsmall text-bold text-uppercase reversed color-secondary bordered icon icon-plus'
|
|
|
|
next='admin-circle-create'
|
|
|
|
data-trans='circle.list.buttonCreate'
|
|
|
|
)
|
2019-11-07 17:04:01 +00:00
|
|
|
|
2020-12-11 20:44:00 +00:00
|
|
|
.table-wrapper
|
|
|
|
.table
|
|
|
|
|
|
|
|
div.table-header.bg-color-third.text-color-heading
|
|
|
|
div.table-cell.w280(data-trans='circle.list.tableHeader1')
|
|
|
|
div.table-cell.w280(data-trans='circle.list.tableHeader2')
|
|
|
|
div.table-cell.w280(data-trans='circle.list.tableHeader3')
|
|
|
|
|
|
|
|
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'
|
|
|
|
fields='circle.name, circle.owner, leaveButton'
|
|
|
|
loader-id='loader-admin-circles'
|
|
|
|
|
|
|
|
class-circle.name='table-cell w280 text-xlarge text-color-heading text-semibold text-letter-spacing-large text-underline'
|
|
|
|
class-circle.owner='table-cell w280'
|
|
|
|
class-leaveButton='table-cell w280'
|
|
|
|
|
|
|
|
action-leaveButton="joinButton"
|
|
|
|
widget-leaveButton="hubl-admin-circle-leave-button"
|
|
|
|
widget-circle.owner='hubl-circle-owner'
|
|
|
|
|
|
|
|
order-by="circle.name"
|
|
|
|
)
|
2019-11-04 13:14:19 +00:00
|
|
|
|
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'
|
2019-11-04 13:14:19 +00:00
|
|
|
|
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/`
|
|
|
|
fields='name, owner, members'
|
|
|
|
loader-id='loader-admin-circles'
|
|
|
|
|
|
|
|
class-name='table-cell w280 text-xlarge text-color-heading text-semibold text-letter-spacing-large text-underline'
|
|
|
|
class-owner='table-cell w280'
|
|
|
|
widget-owner='hubl-circle-owner'
|
2019-11-07 17:04:01 +00:00
|
|
|
|
2020-12-11 20:44:00 +00:00
|
|
|
class-members='table-cell w280'
|
|
|
|
widget-members="hubl-admin-circle-join-button"
|
|
|
|
|
|
|
|
order-by="name"
|
|
|
|
)
|
|
|
|
|
|
|
|
div#loader-admin-circles.loader.loader-top
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
|
|
|
div
|
2019-10-25 17:15:45 +00:00
|
|
|
|
2020-12-11 20:44:00 +00:00
|
|
|
#admin-circle-create(hidden, data-view="admin-circle-create")
|
|
|
|
include page-admin-circles-create.pug
|