fix: new classes added to admin-project

This commit is contained in:
gaelle morin 2020-06-15 16:06:01 +02:00
parent d70fd6dac8
commit 54da12c7a3
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
2 changed files with 84 additions and 79 deletions

View File

@ -113,6 +113,10 @@
width: 280px; width: 280px;
} }
.w230 {
width: 230px;
}
.w70 { .w70 {
width: 70px; width: 70px;
} }

View File

@ -22,106 +22,107 @@
next='admin-project-create' next='admin-project-create'
) Créer un nouveau projet ) Créer un nouveau projet
.table .table-wrapper
div.table-header.grey-color .table
div.w25 Nom div.table-header.grey-color
div.w25 Administrateurs div.w280 Nom
div.w25 Capitaines div.w280 Administrateurs
div.w25 Rejoindre div.w280 Capitaines
div.w230 Rejoindre
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( sib-display.user-thumb(
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='user-thumb__picture' class-account.picture='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-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-display( sib-display(
class='table-body' class='table-body'
bind-user bind-user
nested-field="projects" nested-field="projects"
fields='project.name, project.members, project.captain, leaveButton' fields='project.name, project.members, project.captain, leaveButton'
class-project.name='w25 cell border cell-with-name' class-project.name='w280 cell border cell-with-name'
class-project.members='w25 cell border' class-project.members='w280 cell border'
class-project.captain='w25 cell border cell-with-id-card' class-project.captain='w280 cell border cell-with-id-card'
class-leaveButton='w25 cell border cell-with-buttons' class-leaveButton='w230 cell border cell-with-buttons'
action-leaveButton="joinButton" action-leaveButton="joinButton"
widget-leaveButton="hubl-admin-project-leave-button" widget-leaveButton="hubl-admin-project-leave-button"
widget-project.captain='hubl-project-captain' widget-project.captain='hubl-project-captain'
widget-project.members='hubl-project-admins' widget-project.members='hubl-project-admins'
order-by="project.name" order-by="project.name"
) )
sib-widget(name='hubl-admin-project-join-button') sib-widget(name='hubl-admin-project-join-button')
template template
sib-form.button.text-bold.text-uppercase.reversed.button-primary.bordered.with-icon.icon-arrow-right-circle.flex( sib-form.button.text-bold.text-uppercase.reversed.button-primary.bordered.with-icon.icon-arrow-right-circle.flex(
data-src='${src}' data-src='${src}'
nested-field="members" nested-field="members"
fields='user.username' fields='user.username'
value-user.username='hubl-workaround-493' value-user.username='hubl-workaround-493'
widget-user.username='sib-form-hidden' widget-user.username='sib-form-hidden'
submit-button='Rejoindre' submit-button='Rejoindre'
) )
sib-display( sib-display(
class='table-body' class='table-body'
data-src=`${endpoints.projects || endpoints.get.projects}joinable/` data-src=`${endpoints.projects || endpoints.get.projects}joinable/`
fields='name, members, captain, joinButton' fields='name, members, captain, joinButton'
class-name='w25 cell border cell-with-name' class-name='w280 cell border cell-with-name'
class-members='w25 cell border' class-members='w280 cell border'
class-captain='w25 cell border cell-with-id-card' class-captain='w280 cell border cell-with-id-card'
class-joinButton='w25 cell border cell-with-buttons' class-joinButton='w230 cell border cell-with-buttons'
action-joinButton="joinButton" # Workaround: I need members two times action-joinButton="joinButton" # Workaround: I need members two times
widget-joinButton="hubl-admin-project-join-button" widget-joinButton="hubl-admin-project-join-button"
widget-captain='hubl-project-captain' widget-captain='hubl-project-captain'
widget-members='hubl-project-admins' widget-members='hubl-project-admins'
order-by="name" order-by="name"
) )
#admin-project-create(hidden) #admin-project-create(hidden)
include page-admin-projects-create.pug include page-admin-projects-create.pug