From f3d170e7a3e4d43bb742cff5363a820d719b25c8 Mon Sep 17 00:00:00 2001
From: Benoit Alessandroni <benoit@happy-dev.fr>
Date: Tue, 10 Sep 2019 12:24:20 +0200
Subject: [PATCH] First step on grouping resources by steps

---
 src/includes/entrepreneur/resources/list.pug | 21 ++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

diff --git a/src/includes/entrepreneur/resources/list.pug b/src/includes/entrepreneur/resources/list.pug
index eef2cacf..a0c98016 100644
--- a/src/includes/entrepreneur/resources/list.pug
+++ b/src/includes/entrepreneur/resources/list.pug
@@ -24,17 +24,18 @@ h2.title_form Search for a resource
 
 
 #circles
-    sib-display#circles-list(
-        data-src=`${endpoints.steps}`,
-        fields='order, name, resources'
-
-        widget-fields='cs-display-step-property'
+    sib-widget(name="group-by-steps")
+        template
+            strong(data-content)
+                p.p_entete(data-title) ${value.name}
 
-        label-resources=''
-        label-each-resources='Resource:'
-        
-        multiple-resources
-        widget-resources='cs-steps-resources-multiple'
+    sib-display#circles-list(
+        data-src=`${endpoints.resources}`,
+        fields='name, description'
+        group-by='steps'
+        group-by-widget="group-by-steps"
+        widget-description='cs-display-property'
+        widget-name='cs-display-property'
     )
        
 
-- 
GitLab