2019-10-25 17:15:45 +00:00
|
|
|
.content-box.full-width.with-form
|
2019-11-14 12:27:04 +00:00
|
|
|
sib-router(default-route='admin-project-list', hidden)
|
2019-10-25 17:15:45 +00:00
|
|
|
sib-route(name='admin-project-list')
|
|
|
|
sib-route(name='admin-project-create')
|
2020-02-05 12:39:29 +00:00
|
|
|
sib-route(name='project-left')
|
2019-10-25 17:15:45 +00:00
|
|
|
|
2020-04-02 16:09:23 +00:00
|
|
|
div.content-box__header
|
|
|
|
h1.without-margin Administration
|
2019-10-25 17:15:45 +00:00
|
|
|
|
2020-02-05 12:39:29 +00:00
|
|
|
#project-left(hidden)
|
2020-02-10 12:59:23 +00:00
|
|
|
include ../project/page-project-left.pug
|
2020-02-05 12:39:29 +00:00
|
|
|
|
2019-10-25 17:15:45 +00:00
|
|
|
#admin-project-list(hidden)
|
2020-05-08 13:27:44 +00:00
|
|
|
include ../../templates/hubl-user-avatar.pug
|
2019-10-25 17:15:45 +00:00
|
|
|
|
2019-12-09 17:23:47 +00:00
|
|
|
div.content-box__info
|
|
|
|
div.admin-header
|
2020-04-21 09:36:39 +00:00
|
|
|
div.admin-header__title Projets
|
2019-12-09 17:23:47 +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-12-09 17:23:47 +00:00
|
|
|
next='admin-project-create'
|
2020-04-21 09:36:39 +00:00
|
|
|
) Créer un projet
|
2019-10-25 17:15:45 +00:00
|
|
|
|
2019-12-09 17:23:47 +00:00
|
|
|
.table
|
|
|
|
div.table-header.grey-color
|
2020-04-21 09:36:39 +00:00
|
|
|
div Nom
|
2020-04-21 14:57:23 +00:00
|
|
|
div Administrateurs
|
2020-04-21 09:36:39 +00:00
|
|
|
div Capitaines
|
2020-05-28 21:17:16 +00:00
|
|
|
div Rejoindre
|
2019-12-09 17:23:47 +00:00
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
sib-widget(name="hubl-admin-project-leave-button")
|
2019-12-09 17:23:47 +00:00
|
|
|
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'
|
2019-12-09 17:23:47 +00:00
|
|
|
data-src="${src}"
|
2020-04-21 09:36:39 +00:00
|
|
|
data-label='Quitter'
|
2019-12-09 17:23:47 +00:00
|
|
|
)
|
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
sib-widget(name='hubl-project-captain')
|
2019-12-09 17:23:47 +00:00
|
|
|
template
|
2020-04-02 16:09:23 +00:00
|
|
|
sib-display.user-thumb(
|
2019-12-09 17:23:47 +00:00
|
|
|
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'
|
2019-12-09 17:23:47 +00:00
|
|
|
)
|
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
sib-widget(name='hubl-project-admins')
|
2019-12-09 17:23:47 +00:00
|
|
|
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'
|
2019-12-09 17:23:47 +00:00
|
|
|
)
|
|
|
|
|
2020-05-08 13:27:44 +00:00
|
|
|
sib-widget(name="hubl-admin-project-buttons")
|
2019-12-09 17:23:47 +00:00
|
|
|
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'
|
2019-12-09 17:23:47 +00:00
|
|
|
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"
|
2019-12-09 17:23:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
sib-display(
|
|
|
|
class='table-body'
|
|
|
|
|
2020-02-03 13:39:14 +00:00
|
|
|
data-src=`${endpoints.projects || endpoints.get.projects}`
|
2019-12-09 17:23:47 +00:00
|
|
|
fields='name, members, captain, buttons'
|
|
|
|
|
2020-01-08 16:29:23 +00:00
|
|
|
class-name='w25 cell border cell-with-name hashtag'
|
2020-01-07 23:59:44 +00:00
|
|
|
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'
|
2020-01-07 23:59:44 +00:00
|
|
|
|
2019-12-09 17:23:47 +00:00
|
|
|
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'
|
2019-12-09 17:23:47 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
#admin-project-create(hidden)
|
|
|
|
include page-admin-projects-create.pug
|