2020-05-18 12:18:15 +00:00
|
|
|
.content-box.flex.full-width.with-form
|
2019-11-14 12:27:04 +00:00
|
|
|
sib-router(default-route='admin-circle-list', hidden)
|
2019-10-25 17:15:45 +00:00
|
|
|
sib-route(name='admin-circle-list')
|
|
|
|
sib-route(name='admin-circle-create')
|
2020-02-05 12:39:29 +00:00
|
|
|
sib-route(name='circle-left')
|
2019-10-25 17:15:45 +00:00
|
|
|
|
2020-06-05 09:25:57 +00:00
|
|
|
div.content-box__header.flex.space-between
|
2020-04-02 16:09:23 +00:00
|
|
|
h1.without-margin Administration
|
2020-06-05 09:25:57 +00:00
|
|
|
button.mobile-sidebar-button.jsMobileSidebarOpenButton.icon-arrow-left-circle MENU
|
2019-10-25 17:15:45 +00:00
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
include ../circle/page-circle-left.pug
|
2020-02-05 12:39:29 +00:00
|
|
|
|
2019-10-25 17:15:45 +00:00
|
|
|
#admin-circle-list(hidden)
|
2020-05-08 13:27:44 +00:00
|
|
|
include ../../templates/hubl-user-avatar.pug
|
2019-11-07 17:04:01 +00:00
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
sib-widget(name='hubl-circle-owner')
|
2019-11-04 13:14:19 +00:00
|
|
|
template
|
2020-05-13 10:11:05 +00:00
|
|
|
sib-display.user-thumb.is-spaced(
|
2019-11-07 17:04:01 +00:00
|
|
|
data-src='${await value}'
|
|
|
|
fields='account.picture, sup(name), sub(username)'
|
2019-11-04 13:14:19 +00:00
|
|
|
|
2020-05-18 08:47:43 +00:00
|
|
|
class-account.picture='avatar user-thumb__picture'
|
2020-04-02 16:09:23 +00:00
|
|
|
class-name='user-thumb__name'
|
|
|
|
class-username='user-thumb__username'
|
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
widget-account.picture='hubl-user-avatar'
|
2019-11-04 13:14:19 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2020-05-18 08:47:43 +00:00
|
|
|
div.content-box__info.flex
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-05-18 08:47:43 +00:00
|
|
|
div.admin-header.flex
|
2019-10-29 13:59:57 +00:00
|
|
|
|
2020-05-13 13:04:54 +00:00
|
|
|
h3 Canaux
|
2019-11-05 14:00:10 +00:00
|
|
|
|
2019-11-06 20:28:25 +00:00
|
|
|
sib-link(
|
2020-05-11 18:20:13 +00:00
|
|
|
class='button text-bold text-uppercase reversed button-primary bordered with-icon icon-plus'
|
2019-11-06 20:28:25 +00:00
|
|
|
next='admin-circle-create'
|
2020-04-21 09:09:56 +00:00
|
|
|
) Créer un canal
|
2019-10-29 13:59:57 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
.table-wrapper
|
|
|
|
.table
|
2019-11-13 11:00:38 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
div.table-header.grey-color
|
2020-06-09 22:59:45 +00:00
|
|
|
div.w349 Nom
|
|
|
|
div.w349 Administrateurs
|
|
|
|
div.w349 Rejoindre
|
2019-11-13 11:00:38 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
sib-widget(name='hubl-admin-circle-leave-button')
|
|
|
|
template
|
|
|
|
sib-delete(
|
|
|
|
class='circle-leave button text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
|
|
|
|
data-src="${src}"
|
|
|
|
data-label='Quitter'
|
|
|
|
)
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
sib-display(
|
|
|
|
class='table-body'
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
bind-user
|
|
|
|
nested-field='circles'
|
|
|
|
fields='circle.name, circle.owner, leaveButton'
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-06-10 09:25:36 +00:00
|
|
|
class-circle.name='w349 border cell-with-name'
|
|
|
|
class-circle.owner='w349 border cell-with-id-card'
|
|
|
|
class-leaveButton='w349 border cell-with-buttons'
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
action-leaveButton="joinButton"
|
|
|
|
widget-leaveButton="hubl-admin-circle-leave-button"
|
|
|
|
widget-circle.owner='hubl-circle-owner'
|
2020-05-20 14:42:11 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
order-by="circle.name"
|
|
|
|
)
|
2019-11-14 12:27:04 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
sib-widget(name='hubl-admin-circle-join-button')
|
|
|
|
template
|
|
|
|
sib-form.circle-join.button.text-bold.text-uppercase.reversed.button-primary.bordered.with-icon.icon-arrow-right-circle.flex(
|
|
|
|
data-src='${value}'
|
2020-02-10 16:58:03 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
fields='user.username'
|
|
|
|
value-user.username='hubl-workaround-493'
|
|
|
|
widget-user.username='sib-form-hidden'
|
2020-02-10 16:58:03 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
submit-button='Rejoindre'
|
|
|
|
)
|
2019-11-13 11:00:38 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
sib-display(
|
|
|
|
class='table-body'
|
2019-10-29 13:59:57 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
data-src=`${endpoints.circles || endpoints.get.circles}joinable/`
|
|
|
|
fields='name, owner, members'
|
2019-11-07 17:04:01 +00:00
|
|
|
|
2020-06-10 09:25:36 +00:00
|
|
|
class-name='w349 border cell-with-name'
|
|
|
|
class-owner='w349 border cell-with-id-card'
|
2020-06-09 22:03:58 +00:00
|
|
|
widget-owner='hubl-circle-owner'
|
2020-02-10 16:58:03 +00:00
|
|
|
|
2020-06-10 09:25:36 +00:00
|
|
|
class-members='w349 border cell-with-buttons'
|
2020-06-09 22:03:58 +00:00
|
|
|
widget-members="hubl-admin-circle-join-button"
|
2020-05-20 14:42:11 +00:00
|
|
|
|
2020-06-09 22:03:58 +00:00
|
|
|
order-by="name"
|
|
|
|
)
|
2019-11-07 17:04:01 +00:00
|
|
|
|
2019-10-25 17:15:45 +00:00
|
|
|
|
|
|
|
#admin-circle-create(hidden)
|
2019-11-11 10:22:37 +00:00
|
|
|
include page-admin-circles-create.pug
|