diff --git a/src/includes/components/widgets.pug b/src/includes/components/widgets.pug index 53edd925486c5ac548958db6afbcb8bfa9fdba46..859aa42dc2edd36c45df9eaa7adc75df0ecba2c5 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 8b2fe4dd824d22eac3e39dc5441f2001ec8321e1..eef2cacf776603f9bd1c04d8adcc27bb090087bc 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' )