hubl/src/views/admin/page-admin-projects.pug

96 lines
3.0 KiB
Plaintext
Raw Normal View History

.content-box.full-width.with-form
2019-11-14 12:27:04 +00:00
sib-router(default-route='admin-project-list', hidden)
sib-route(name='admin-project-list')
sib-route(name='admin-project-create')
sib-route(name='project-left')
2020-04-02 16:09:23 +00:00
div.content-box__header
h1.without-margin Administration
#project-left(hidden)
include ../project/page-project-left.pug
#admin-project-list(hidden)
2020-05-08 13:27:44 +00:00
include ../../templates/hubl-user-avatar.pug
div.content-box__info
div.admin-header
div.admin-header__title Projets
sib-link(
2020-05-11 18:20:13 +00:00
class='button text-bold text-uppercase reversed button-primary bordered with-icon icon-plus'
next='admin-project-create'
) Créer un projet
.table
div.table-header.grey-color
div Nom
2020-04-21 14:57:23 +00:00
div Administrateurs
div Capitaines
div Rejoindre
2020-05-08 13:27:44 +00:00
sib-widget(name="hubl-admin-project-leave-button")
template
sib-delete(
2020-05-11 18:20:13 +00:00
class='button text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
data-src="${src}"
data-label='Quitter'
)
2020-05-08 13:27:44 +00:00
sib-widget(name='hubl-project-captain')
template
2020-04-02 16:09:23 +00:00
sib-display.user-thumb(
data-src='${await value}'
fields='account.picture, sup(name), sub(username)'
2020-04-02 16:09:23 +00:00
class-account.picture='user-thumb__picture'
class-name='user-thumb__name'
class-username='user-thumb__username'
2020-05-08 13:27:44 +00:00
widget-account.picture='hubl-user-avatar'
)
2020-05-08 13:27:44 +00:00
sib-widget(name='hubl-project-admins')
template
sib-display(
data-src='${value}'
fields='user'
2020-03-20 13:48:56 +00:00
search-fields='is_admin'
search-value-is_admin='true'
search-widget-is_admin='sib-form-hidden'
2020-05-08 13:27:44 +00:00
widget-user='hubl-project-captain'
)
2020-05-08 13:27:44 +00:00
sib-widget(name="hubl-admin-project-buttons")
template
sib-display(
data-src='${src}'
nested-field='members'
fields='relation'
action-relation='relation'
2020-05-08 13:27:44 +00:00
widget-relation='hubl-admin-project-leave-button'
search-fields='user'
search-widget-user='sib-form-hidden'
search-value-user="-"
2020-05-08 13:27:44 +00:00
hubl-inherit-user-id="search-value-user"
)
sib-display(
class='table-body'
data-src=`${endpoints.projects || endpoints.get.projects}`
fields='name, members, captain, buttons'
2020-01-08 16:29:23 +00:00
class-name='w25 cell border cell-with-name hashtag'
class-members='w25 cell border'
2020-01-08 16:29:23 +00:00
class-captain='w25 cell border cell-with-id-card'
class-buttons='w25 cell border cell-with-buttons'
widget-buttons="admin-project-buttons"
action-buttons="buttons"
2020-05-08 13:27:44 +00:00
widget-captain='hubl-project-captain'
widget-members='hubl-project-admins'
)
#admin-project-create(hidden)
include page-admin-projects-create.pug