update: table - wip
This commit is contained in:
parent
eaa7478196
commit
5441686d8e
@ -11,7 +11,25 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.table-body>div:first-of-type,
|
||||||
|
.table-body>div:first-of-type>sib-display>div {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gridjs-wrapper {
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
z-index: 1;
|
||||||
|
overflow: auto;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.table {
|
.table {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
overflow: auto;
|
||||||
|
table-layout: fixed;
|
||||||
|
|
||||||
.table-header {
|
.table-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -22,76 +22,77 @@
|
|||||||
next='admin-project-create'
|
next='admin-project-create'
|
||||||
) Créer un projet
|
) Créer un projet
|
||||||
|
|
||||||
.table
|
.gridjs-wrapper
|
||||||
div.table-header.grey-color
|
.table
|
||||||
div.w25 Nom
|
div.table-header.grey-color
|
||||||
div.w25 Administrateurs
|
div.w25 Nom
|
||||||
div.w25 Capitaines
|
div.w25 Administrateurs
|
||||||
div.w25 Accès
|
div.w25 Capitaines
|
||||||
|
div.w25 Accès
|
||||||
|
|
||||||
sib-widget(name="hubl-admin-project-leave-button")
|
sib-widget(name="hubl-admin-project-leave-button")
|
||||||
template
|
template
|
||||||
sib-delete(
|
sib-delete(
|
||||||
class='button text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
|
class='button text-bold text-uppercase reversed button-secondary bordered with-icon icon-close'
|
||||||
data-src="${src}"
|
data-src="${src}"
|
||||||
data-label='Quitter'
|
data-label='Quitter'
|
||||||
)
|
)
|
||||||
|
|
||||||
sib-widget(name='hubl-project-captain')
|
sib-widget(name='hubl-project-captain')
|
||||||
template
|
template
|
||||||
sib-display.user-thumb.is-spaced(
|
sib-display.user-thumb.is-spaced(
|
||||||
data-src='${await value}'
|
data-src='${await value}'
|
||||||
fields='account.picture, sup(name), sub(username)'
|
fields='account.picture, sup(name), sub(username)'
|
||||||
|
|
||||||
class-account.picture='avatar user-thumb__picture'
|
class-account.picture='avatar user-thumb__picture'
|
||||||
class-name='user-thumb__name'
|
class-name='user-thumb__name'
|
||||||
class-username='user-thumb__username'
|
class-username='user-thumb__username'
|
||||||
|
|
||||||
widget-account.picture='hubl-user-avatar'
|
widget-account.picture='hubl-user-avatar'
|
||||||
)
|
)
|
||||||
|
|
||||||
sib-widget(name='hubl-project-admins')
|
sib-widget(name='hubl-project-admins')
|
||||||
template
|
template
|
||||||
sib-display(
|
sib-display(
|
||||||
data-src='${value}'
|
data-src='${value}'
|
||||||
fields='user'
|
fields='user'
|
||||||
search-fields='is_admin'
|
search-fields='is_admin'
|
||||||
search-value-is_admin='true'
|
search-value-is_admin='true'
|
||||||
search-widget-is_admin='sib-form-hidden'
|
search-widget-is_admin='sib-form-hidden'
|
||||||
widget-user='hubl-project-captain'
|
widget-user='hubl-project-captain'
|
||||||
)
|
)
|
||||||
|
|
||||||
sib-widget(name="hubl-admin-project-buttons")
|
sib-widget(name="hubl-admin-project-buttons")
|
||||||
template
|
template
|
||||||
sib-display(
|
sib-display(
|
||||||
data-src='${src}'
|
data-src='${src}'
|
||||||
nested-field='members'
|
nested-field='members'
|
||||||
fields='relation'
|
fields='relation'
|
||||||
action-relation='relation'
|
action-relation='relation'
|
||||||
widget-relation='hubl-admin-project-leave-button'
|
widget-relation='hubl-admin-project-leave-button'
|
||||||
search-fields='user'
|
search-fields='user'
|
||||||
search-widget-user='sib-form-hidden'
|
search-widget-user='sib-form-hidden'
|
||||||
search-value-user="-"
|
search-value-user="-"
|
||||||
hubl-inherit-user-id="search-value-user"
|
hubl-inherit-user-id="search-value-user"
|
||||||
)
|
)
|
||||||
|
|
||||||
sib-display(
|
sib-display(
|
||||||
class='table-body'
|
class='table-body'
|
||||||
|
|
||||||
data-src=`${endpoints.projects || endpoints.get.projects}`
|
data-src=`${endpoints.projects || endpoints.get.projects}`
|
||||||
fields='name, members, captain, buttons'
|
fields='name, members, captain, buttons'
|
||||||
|
|
||||||
class-name='w25 cell border cell-with-name hashtag'
|
class-name='w25 cell border cell-with-name hashtag'
|
||||||
class-members='w25 cell border'
|
class-members='w25 cell border'
|
||||||
class-captain='w25 cell border cell-with-id-card'
|
class-captain='w25 cell border cell-with-id-card'
|
||||||
class-buttons='w25 cell border cell-with-buttons'
|
class-buttons='w25 cell border cell-with-buttons'
|
||||||
|
|
||||||
widget-buttons="admin-project-buttons"
|
widget-buttons="admin-project-buttons"
|
||||||
action-buttons="buttons"
|
action-buttons="buttons"
|
||||||
|
|
||||||
widget-captain='hubl-project-captain'
|
widget-captain='hubl-project-captain'
|
||||||
widget-members='hubl-project-admins'
|
widget-members='hubl-project-admins'
|
||||||
)
|
)
|
||||||
|
|
||||||
#admin-project-create(hidden)
|
#admin-project-create(hidden)
|
||||||
include page-admin-projects-create.pug
|
include page-admin-projects-create.pug
|
Loading…
Reference in New Issue
Block a user