update: table - responsive for admin-project and project-edit (wip)

This commit is contained in:
gaelle morin 2020-06-10 00:59:45 +02:00
parent 7e655e054a
commit 741eff85ce
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
7 changed files with 52 additions and 50 deletions

View File

@ -1,11 +1,8 @@
/*#circle-information, /*#circle-information,
#circle-edit, #circle-edit,
#admin-circle-list,
#admin-circle-create, #admin-circle-create,
#project-edit, #project-edit,
#admin-project-list, #admin-project-create*/
#admin-project-create,
#admin-users-list*/
[widget="hubl-team-template-edit"]>div { [widget="hubl-team-template-edit"]>div {
flex: 1; flex: 1;
@ -112,16 +109,20 @@
display: table-cell; display: table-cell;
} }
.w75 { .w786 {
width: 280px; width: 786px;
} }
.w25 { .w262 {
width: 70px; width: 262px;
} }
.w33 { .w349 {
width: 256px; width: 349px;
}
.w698 {
width: 698px;
} }
/*.w25 { /*.w25 {

View File

@ -1,6 +1,6 @@
/* Fix. Could disappear when we can add .class on set fields */ /* Fix. Could disappear when we can add .class on set fields */
sib-set-default[name='cell-1'] { sib-set-default[name='cell-1'] {
@extend .w75; @extend .w786;
@extend .cell; @extend .cell;
@extend .border; @extend .border;
} }

View File

@ -42,9 +42,9 @@
.table .table
div.table-header.grey-color div.table-header.grey-color
div.w33 Nom div.w349 Nom
div.w33 Administrateurs div.w349 Administrateurs
div.w33 Rejoindre div.w349 Rejoindre
sib-widget(name='hubl-admin-circle-leave-button') sib-widget(name='hubl-admin-circle-leave-button')
template template
@ -61,9 +61,9 @@
nested-field='circles' nested-field='circles'
fields='circle.name, circle.owner, leaveButton' fields='circle.name, circle.owner, leaveButton'
class-circle.name='w33 cell border cell-with-name' class-circle.name='w349 cell border cell-with-name'
class-circle.owner='w33 cell border cell-with-id-card' class-circle.owner='w349 cell border cell-with-id-card'
class-leaveButton='w33 cell border cell-with-buttons' class-leaveButton='w349 cell border cell-with-buttons'
action-leaveButton="joinButton" action-leaveButton="joinButton"
widget-leaveButton="hubl-admin-circle-leave-button" widget-leaveButton="hubl-admin-circle-leave-button"
@ -90,11 +90,11 @@
data-src=`${endpoints.circles || endpoints.get.circles}joinable/` data-src=`${endpoints.circles || endpoints.get.circles}joinable/`
fields='name, owner, members' fields='name, owner, members'
class-name='w33 cell border cell-with-name' class-name='w349 cell border cell-with-name'
class-owner='w33 cell border cell-with-id-card' class-owner='w349 cell border cell-with-id-card'
widget-owner='hubl-circle-owner' widget-owner='hubl-circle-owner'
class-members='w33 cell border cell-with-buttons' class-members='w349 cell border cell-with-buttons'
widget-members="hubl-admin-circle-join-button" widget-members="hubl-admin-circle-join-button"
order-by="name" order-by="name"

View File

@ -22,13 +22,13 @@
next='admin-project-create' next='admin-project-create'
) Créer un projet ) Créer un projet
.gridjs-wrapper .table-wrapper
.table .table
div.table-header.grey-color div.table-header.grey-color
div.w25 Nom div.w262 Nom
div.w25 Administrateurs div.w262 Administrateurs
div.w25 Capitaines div.w262 Capitaines
div.w25 Accès div.w262 Accès
sib-widget(name="hubl-admin-project-leave-button") sib-widget(name="hubl-admin-project-leave-button")
template template
@ -82,10 +82,10 @@
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='w262 cell border cell-with-name hashtag'
class-members='w25 cell border' class-members='w262 cell border'
class-captain='w25 cell border cell-with-id-card' class-captain='w262 cell border cell-with-id-card'
class-buttons='w25 cell border cell-with-buttons' class-buttons='w262 cell border cell-with-buttons'
widget-buttons="admin-project-buttons" widget-buttons="admin-project-buttons"
action-buttons="buttons" action-buttons="buttons"

View File

@ -31,8 +31,8 @@
.table-wrapper .table-wrapper
.table .table
div.table-header.grey-color div.table-header.grey-color
div.w75 Nom div.w786 Nom
div.w25 div.w262
sib-display( sib-display(
class='table-body' class='table-body'
@ -47,7 +47,7 @@
label-actions='Edit' label-actions='Edit'
action-actions='admin-users-edit' action-actions='admin-users-edit'
class-actions='w25 cell border cell-with-buttons' class-actions='w262 cell border cell-with-buttons'
widget-actions='hubl-sib-action-custom' widget-actions='hubl-sib-action-custom'
order-by='username' order-by='username'

View File

@ -8,7 +8,7 @@ div.content-box__info
sib-widget(name='hubl-team-template-edit') sib-widget(name='hubl-team-template-edit')
template template
sib-display.user-thumb( sib-display.user-thumb(
class='w66 cell border cell-with-id-card user-thumb' class='w698 cell border cell-with-id-card user-thumb'
data-src='${await value.user}' data-src='${await value.user}'
fields='account.picture, sup(name, groups), sub(profile.city)' fields='account.picture, sup(name, groups), sub(profile.city)'
@ -24,7 +24,7 @@ div.content-box__info
) )
sib-ac-checker( sib-ac-checker(
class='w33 cell border' class='w349 cell border'
permission="acl:Delete" permission="acl:Delete"
data-src="${value['@id']}" data-src="${value['@id']}"
) )
@ -36,7 +36,7 @@ div.content-box__info
//- Only to show the table grid //- Only to show the table grid
sib-ac-checker( sib-ac-checker(
class='w33 cell border' class='w349 cell border'
no-permission="acl:Delete" no-permission="acl:Delete"
data-src="${value['@id']}" data-src="${value['@id']}"
) )
@ -88,19 +88,20 @@ div.content-box__info
submit-button='Ajouter un membre' submit-button='Ajouter un membre'
) )
.table .table-wrapper
.table
div.table-header.grey-color
div.w698 Nom
div.w349 Accès
div.table-header.grey-color //-class='table-body'
div.w66 Nom sib-display(
div.w33 Accès class='table-body'
bind-resources
fields='members'
//-class='table-body' class-members='w698'
sib-display( multiple-members=''
class='table-body' widget-members='hubl-team-template-edit'
bind-resources )
fields='members'
multiple-members=''
widget-members='hubl-team-template-edit'
)

View File

@ -56,8 +56,8 @@ div.content-box__info.flex
.table .table
div.table-header.grey-color div.table-header.grey-color
div.w66 Nom div.w698 Nom
div.w33 Accès div.w349 Accès
//-class='table-body' //-class='table-body'
sib-display( sib-display(