From c2ec8e6b5b2cad25bff6c2da4045b11dced52c15 Mon Sep 17 00:00:00 2001
From: Alice <alice.poggioli@hotmail.fr>
Date: Mon, 9 Sep 2019 11:33:59 +0200
Subject: [PATCH] WIP: Search resource by keyword in entrepreneur dashboard.

---
 src/includes/entrepreneur/dashboard.pug       |  6 +++---
 src/includes/entrepreneur/requests/create.pug |  3 ++-
 src/includes/entrepreneur/resources/list.pug  | 11 ++++++-----
 3 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/includes/entrepreneur/dashboard.pug b/src/includes/entrepreneur/dashboard.pug
index 69b824c5..55d83d34 100644
--- a/src/includes/entrepreneur/dashboard.pug
+++ b/src/includes/entrepreneur/dashboard.pug
@@ -8,9 +8,9 @@ header#header(role='banner')
 
 section#home
 
-    h1 Mentorship program
-
-    p International index of resources for cooperative mentors and entrepreneurs
+    div.container_min
+        h2.title_lead.fd_bleu International index of resources for cooperative mentors and entrepreneurs
+        button.button_dark.pull-right Watch the presentation
 
     //TODO:
     //-Distinguish the search form from the listing
diff --git a/src/includes/entrepreneur/requests/create.pug b/src/includes/entrepreneur/requests/create.pug
index 2692e978..b382d5fd 100644
--- a/src/includes/entrepreneur/requests/create.pug
+++ b/src/includes/entrepreneur/requests/create.pug
@@ -1,4 +1,5 @@
 h2 Request a ressource
+sib-link(class="backlink", next="entrepreneur-resource-list") 
 
 p You can't find a resource you are looking for ? You need resources to acquire certain skills or progress in your cooperative developement ? It can be a book, a document model, a tutorial, anything you need, make a request to our mentors so they know how to help you.
 
@@ -39,6 +40,6 @@ p You can't find a resource you are looking for ? You need resources to acquire
         next="entrepreneur-request-validation"
     )
 
- sib-link(class="backlink", next="entrepreneur-resource-list") Back to the dashboard
+
 
 
diff --git a/src/includes/entrepreneur/resources/list.pug b/src/includes/entrepreneur/resources/list.pug
index 3270dd35..5c3e44a5 100644
--- a/src/includes/entrepreneur/resources/list.pug
+++ b/src/includes/entrepreneur/resources/list.pug
@@ -1,21 +1,22 @@
 include ../../components/widgets
 
-p: a Watch a video presentation
 
-h2 Search for a resource
+
+h2.title_form Search for a resource
 
 #circles
     sib-display#circles-list(
         data-src=`${endpoints.resources}`,
-        fields='name, description,  format, info(author, publication_year, language.name), steps',
-        search-fields='name, description, format',
+        fields='search(name, description, author)',
+        search-fields='name, description, author',
         widget-format='cs-resource-format-name',
         multiple-format,
         
+        widget-header_search='cs-section_header',
         widget-steps='cs-resource-format-name',
         multiple-steps,
         
-        paginate-by="1"
+        paginate-by="10"
         next='detail'
     )
 
-- 
GitLab