67 lines
2.0 KiB
Plaintext
67 lines
2.0 KiB
Plaintext
.content-box.full-width.with-form
|
|
sib-router(default-route='admin-users-list', hidden)
|
|
sib-route(name='admin-users-list')
|
|
sib-route(name='admin-users-create')
|
|
sib-route(name='admin-users-edit')
|
|
|
|
div.content-box__header
|
|
h1.without-margin Administration
|
|
|
|
sib-widget(name='hubl-sib-action-custom')
|
|
template
|
|
sib-ac-checker(data-src="${src}", permission='acl:Write')
|
|
sib-link(
|
|
class='button rounded reversed button-blue bordered icon-pencil'
|
|
data-src="${src}"
|
|
next="${value}"
|
|
)
|
|
|
|
sib-widget(name='hubl-user-admin-groups-display')
|
|
template
|
|
sib-display(
|
|
data-src="${value}"
|
|
fields="name"
|
|
)
|
|
|
|
|
|
#admin-users-list(hidden)
|
|
div.content-box__info
|
|
div.admin-header
|
|
div.admin-header__title Utilisateurs
|
|
sib-ac-checker(data-src=`${endpoints.users || endpoints.post.users}`, permission='acl:Append')
|
|
sib-link(
|
|
class='button text-bold text-uppercase reversed button-yellow bordered with-icon icon-plus'
|
|
next='admin-users-create'
|
|
) Ajouter un utilisateur
|
|
|
|
.table
|
|
div.table-header.grey-color
|
|
div.w75 Nom
|
|
div.w25
|
|
|
|
sib-display(
|
|
class='table-body'
|
|
data-src=`${endpoints.users || endpoints.get.users}`
|
|
fields='cell-1(user-thumb(account.picture, sup(name), sub(username))), actions'
|
|
|
|
class-account.picture='user-thumb__picture'
|
|
class-name='user-thumb__name'
|
|
class-username='user-thumb__username'
|
|
class-profile.city='user-thumb__city'
|
|
widget-account.picture='hubl-user-avatar'
|
|
|
|
label-actions='Edit'
|
|
action-actions='admin-users-edit'
|
|
class-actions='w25 cell border cell-with-buttons'
|
|
widget-actions='hubl-sib-action-custom'
|
|
|
|
order-by='username'
|
|
)
|
|
|
|
|
|
#admin-users-create(hidden)
|
|
include page-admin-users-create.pug
|
|
|
|
#admin-users-edit(hidden)
|
|
include page-admin-users-edit.pug
|