From 31091c16cef42e68d1451b12b5c16e40ada0e3c7 Mon Sep 17 00:00:00 2001 From: gaelle morin Date: Fri, 28 Aug 2020 14:06:27 +0200 Subject: [PATCH] loader for users and projects panels added --- src/views/admin/page-admin-circles.pug | 4 ++-- src/views/admin/page-admin-projects.pug | 8 ++++++++ src/views/admin/page-admin-users.pug | 6 ++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/views/admin/page-admin-circles.pug b/src/views/admin/page-admin-circles.pug index ab39956..a8e26de 100644 --- a/src/views/admin/page-admin-circles.pug +++ b/src/views/admin/page-admin-circles.pug @@ -38,7 +38,7 @@ next='admin-circle-create' ) Créer un cercle - div#loader-admin-circle.loader + div#loader-admin-circles.loader div div div @@ -72,7 +72,7 @@ bind-user nested-field='circles' fields='circle.name, circle.owner, leaveButton' - loader-id='loader-admin-circle' + loader-id='loader-admin-circles' class-circle.name='w280 border cell-with-name' class-circle.owner='w280 border cell-with-id-card' diff --git a/src/views/admin/page-admin-projects.pug b/src/views/admin/page-admin-projects.pug index 56da86e..72f3f8b 100644 --- a/src/views/admin/page-admin-projects.pug +++ b/src/views/admin/page-admin-projects.pug @@ -82,6 +82,7 @@ bind-user nested-field="projects" fields='project.name, project.members, project.captain, leaveButton' + loader-id='loader-admin-projects' class-project.name='w280 cell border cell-with-name' class-project.members='w280 cell border cell-with-id-card' @@ -121,6 +122,7 @@ data-src=`${endpoints.projects || endpoints.get.projects}joinable/` fields='name, members, captain, joinButton' + loader-id='loader-admin-projects' class-name='w280 cell border cell-with-name' class-members='w280 cell border cell-with-id-card' @@ -136,5 +138,11 @@ order-by="name" ) + div#loader-admin-projects.loader + div + div + div + div + #admin-project-create(hidden) include page-admin-projects-create.pug \ No newline at end of file diff --git a/src/views/admin/page-admin-users.pug b/src/views/admin/page-admin-users.pug index 84cd0e7..d56540d 100644 --- a/src/views/admin/page-admin-users.pug +++ b/src/views/admin/page-admin-users.pug @@ -38,6 +38,7 @@ class='table-body' data-src=`${endpoints.users || endpoints.get.users}` fields='cell-1(user-thumb(account.picture, sup(name), sub(username))), actions' + loader-id='loader-admin-users' class-account.picture='avatar user-thumb__picture' class-name='user-thumb__name' @@ -53,6 +54,11 @@ order-by='username' ) + div#loader-admin-users.loader + div + div + div + div #admin-users-create.content-box__height(hidden) include page-admin-users-create.pug