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
|
|
|
|
2019-12-09 17:23:47 +00:00
|
|
|
div.content-box__header.with-description
|
2020-01-06 16:40:58 +00:00
|
|
|
h1.title-left.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-02-10 12:59:23 +00:00
|
|
|
include ../../templates/hd-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
|
|
|
|
div.admin-header__title Projects
|
|
|
|
sib-link(
|
|
|
|
class='button text-bold text-uppercase reversed button-yellow bordered with-icon icon-plus'
|
|
|
|
next='admin-project-create'
|
|
|
|
) Create a new project
|
2019-10-25 17:15:45 +00:00
|
|
|
|
2019-12-09 17:23:47 +00:00
|
|
|
.table
|
|
|
|
div.table-header.grey-color
|
|
|
|
div Name
|
|
|
|
div Admins
|
|
|
|
div Captain
|
|
|
|
div Leave
|
|
|
|
|
|
|
|
sib-widget(name="admin-project-leave-button")
|
|
|
|
template
|
|
|
|
sib-delete(
|
2020-01-07 23:59:44 +00:00
|
|
|
class='button text-bold text-uppercase reversed button-dark bordered with-icon icon-close'
|
2019-12-09 17:23:47 +00:00
|
|
|
data-src="${src}"
|
|
|
|
data-label='Leave'
|
|
|
|
)
|
|
|
|
|
|
|
|
sib-widget(name='project-captain')
|
|
|
|
template
|
|
|
|
sib-display(
|
|
|
|
data-src='${await value}'
|
|
|
|
fields='account.picture, sup(name), sub(username)'
|
|
|
|
|
|
|
|
widget-account.picture='hd-user-avatar'
|
|
|
|
)
|
|
|
|
|
|
|
|
sib-widget(name='project-admins')
|
|
|
|
template
|
|
|
|
sib-display(
|
|
|
|
data-src='${value}'
|
|
|
|
fields='user'
|
|
|
|
search-fields='isAdmin'
|
|
|
|
search-value-isAdmin='true'
|
|
|
|
search-widget-isAdmin='sib-form-hidden'
|
|
|
|
widget-user='project-captain'
|
|
|
|
)
|
|
|
|
|
|
|
|
sib-widget(name="admin-project-buttons")
|
|
|
|
template
|
|
|
|
sib-display(
|
|
|
|
data-src='${src}'
|
|
|
|
nested-field='members'
|
|
|
|
fields='relation'
|
|
|
|
action-relation='relation'
|
|
|
|
widget-relation='admin-project-leave-button'
|
|
|
|
search-fields='user'
|
|
|
|
search-widget-user='sib-form-hidden'
|
|
|
|
search-value-user="-"
|
|
|
|
hd-inherit-user-id="search-value-user"
|
|
|
|
)
|
|
|
|
|
|
|
|
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"
|
|
|
|
|
|
|
|
widget-captain='project-captain'
|
|
|
|
widget-members='project-admins'
|
|
|
|
)
|
|
|
|
|
|
|
|
#admin-project-create(hidden)
|
|
|
|
include page-admin-projects-create.pug
|