From f863d5cdcbbd5235a55c4fc0dfce8da97fb2b4bf Mon Sep 17 00:00:00 2001 From: Alice <alice.poggioli@hotmail.fr> Date: Mon, 16 Sep 2019 15:54:10 +0200 Subject: [PATCH] First test on loader in entrepreneur dashboard. --- src/includes/entrepreneur/dashboard.pug | 2 ++ src/includes/entrepreneur/resources/list.pug | 11 ++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/includes/entrepreneur/dashboard.pug b/src/includes/entrepreneur/dashboard.pug index 422ad21f..e91bebd0 100644 --- a/src/includes/entrepreneur/dashboard.pug +++ b/src/includes/entrepreneur/dashboard.pug @@ -7,6 +7,8 @@ header#header(role='banner') include ./components/header.pug section#home + div#coopstarter-loader + hidden Loading, please wait... //TODO: //-Distinguish the search form from the listing diff --git a/src/includes/entrepreneur/resources/list.pug b/src/includes/entrepreneur/resources/list.pug index 6421aceb..124b14c5 100644 --- a/src/includes/entrepreneur/resources/list.pug +++ b/src/includes/entrepreneur/resources/list.pug @@ -16,6 +16,7 @@ container.block_list.flex.flex_espace h2.title_form Search for a resource sib-form#search-by-keyword( data-src=`${endpoints.resources}`, + loader-id="coopstarter-loader" fields='keyword(name_keyword, description, author)' label-keyword="Search by author, name..." widget-keyword="sib-form-placeholder-text" @@ -29,7 +30,7 @@ container.block_list.flex.flex_espace div#keyword_submit.button__actions div.button_base.ico_gauche Search - + sib-form#instance_database_only( data-src=`${endpoints.resources}`, fields='instance_database_only' @@ -38,11 +39,9 @@ container.block_list.flex.flex_espace naked ) - sib-form#more_criterias( data-src=`${endpoints.resources}`, fields='header_criterias, format, publication_year, country, language, fields' - label-header_criterias='More criterias' label-format='Format:' label-publication_year='Year of publication' @@ -76,9 +75,12 @@ container.block_list.flex.flex_espace div div.button_base Make a request + div#resources-loader + hidden Loading resources, please wait... //Step 1 sib-display#circles-list( + loader-id="resources-loader" data-src=`${endpoints.steps}1/`, fields='name' @@ -87,8 +89,7 @@ container.block_list.flex.flex_espace widget-name='cs-steps-header' ) - - + sib-display.resource_by_step( data-src=`${endpoints.steps}1/resources/`, fields='name, author, format, publication_year, description, country, language, fields', -- GitLab