From 45361cf7443acccf17eb349306bba8cbe9801884 Mon Sep 17 00:00:00 2001 From: Alice <alice.poggioli@hotmail.fr> Date: Tue, 10 Sep 2019 08:57:19 +0200 Subject: [PATCH] WIP: Entrepreneur dashboard- filter the resources. --- src/includes/components/widgets.pug | 4 ++- src/includes/entrepreneur/resources/list.pug | 27 ++++++++++++++++++-- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/includes/components/widgets.pug b/src/includes/components/widgets.pug index 53edd925..859aa42d 100644 --- a/src/includes/components/widgets.pug +++ b/src/includes/components/widgets.pug @@ -12,7 +12,9 @@ sib-widget(name='cs-display-property') sib-widget(name='cs-steps-resources-multiple') template - p ${value.name} + div.resource_resume_header + p ${value.name} + p ${value.publication_year} p ${value.description} sib-widget(name='cs-display-link') diff --git a/src/includes/entrepreneur/resources/list.pug b/src/includes/entrepreneur/resources/list.pug index 8b2fe4dd..eef2cacf 100644 --- a/src/includes/entrepreneur/resources/list.pug +++ b/src/includes/entrepreneur/resources/list.pug @@ -2,14 +2,37 @@ include ../../components/widgets h2.title_form Search for a resource +//-Question : +//the render by default of the steps'field should be render by the widget : "cs-display-step-property" +//=> With the architecture how we do that?? + +//Sould I use jquery to build the steps'accordion? + +//Is there in the project any example to help fred putting the right class on the tag? + +//What's the best way to retrieve the name of the format? By the resource we get a number. Sould we manage this with a 'switch/case' in js? + +//It seems that we don't have likes and dislikes data : sould i ignore them for the moment? + +// To filter by type, I imagine something like that : +//Sib-display (who get all ressources) +// sib-display (with type 1) +// nested-field (to filter by step) +// sib-display (with type 2) +// nested-field (to filter by step) +// => We active one of them on demand with js + + #circles sib-display#circles-list( data-src=`${endpoints.steps}`, - fields='name, order, resources' + fields='order, name, resources' + + widget-fields='cs-display-step-property' - widget-name='cs-display-property' label-resources='' label-each-resources='Resource:' + multiple-resources widget-resources='cs-steps-resources-multiple' ) -- GitLab