diff --git a/src/includes/components/widgets.pug b/src/includes/components/widgets.pug index 29840ccf4a854aee23fd6d0fd9bd4421c44fbe11..28344ab35954e83d06c69eb48791818f1a2419dd 100644 --- a/src/includes/components/widgets.pug +++ b/src/includes/components/widgets.pug @@ -21,7 +21,21 @@ sib-widget(name='cs-display-multiple-property') sib-widget(name='cs-display-step-property') template p #[b ${label} ${value.order}:] ${value.name} - + +sib-widget(name='cs-resource-format-name') + template + div + p ${value.name} + +sib-widget(name='cs-action') + template + div + sib-link( + data-src="\${src}" + next="\${value}" + ) ${label} + + sib-widget(name='cs-form-password') template label diff --git a/src/includes/mentor/resources/create.pug b/src/includes/mentor/resources/create.pug index 0e584f41aeacaf3e83da9c06072ec9026a3661e5..9011abff559d5730aceab181fb8c0a258f832f07 100644 --- a/src/includes/mentor/resources/create.pug +++ b/src/includes/mentor/resources/create.pug @@ -5,7 +5,7 @@ h2 Post a resource p Thank you for enriching our database ! sib-form( - data-src=`${endpoints.resources}` + data-src=`${sdn}/resources/` fields="mandatory_information(header_mandatory, name, country, language, uri,\ format, field, author, publication_year, skills),\ complementary_information(header_complementary, description, iframe_link,\ @@ -23,7 +23,7 @@ sib-form( range-steps=`${endpoints.steps}` range-language=`${endpoints.languages}` range-field=`${endpoints.fields}` - range-related=`${endpoints.resources}` + range-related=`${sdn}/resources/` label-header_mandatory='Mandatory information' label-header_complementary='Complementary information' diff --git a/src/includes/mentor/resources/detail.pug b/src/includes/mentor/resources/detail.pug index f9ea5877d62afdef5619dd5feeb199164719871e..528a939df2f1aa675cee0659c50a7268ba2e2817 100644 --- a/src/includes/mentor/resources/detail.pug +++ b/src/includes/mentor/resources/detail.pug @@ -13,7 +13,6 @@ sib-display( widget-submitter.name='cs-display-resource-property', widget-edit='sib-action', widget-reviewer.name='cs-display-resource-property', - widget-format.name='cs-display-resource-property', widget-author='cs-display-resource-property', widget-country='cs-display-resource-property', widget-submitter.organisation.name='cs-display-resource-property' diff --git a/src/includes/mentor/resources/list.pug b/src/includes/mentor/resources/list.pug index f79b5ade7d645c8c3cba727e2efca0d7547eef9f..16c63e7d48f71eb3990f8f3be3969be7ed0adadf 100644 --- a/src/includes/mentor/resources/list.pug +++ b/src/includes/mentor/resources/list.pug @@ -1,7 +1,4 @@ -sib-widget(name='resource-format-name') - template - div - p ${value.name} +include ../../components/widgets div.resources__newresource sib-link(next='mentor-resource-create').plus-button @@ -42,11 +39,15 @@ div(id='history', class="tabcontent") sib-display( bind-user nested-field='resources' - fields='content(name), reviews.status, info(format.name, publication_year), edit', - widget-status='resource-format-name', - widget-format.name='resource-format-name', - - widget-edit='sib-action' + fields='content(name), reviews.status, info(format, publication_year), edit', + widget-reviews.status='resource-format-name', + + widget-format='cs-display-multiple-property' + label-format='Formats: ' + each-label-format='' + multiple-format + + widget-edit='cs-action' action-edit='mentor-resource-edit' next='mentor-resource-detail' ) \ No newline at end of file diff --git a/src/includes/splash.pug b/src/includes/splash.pug index 8c90634d8d2cb384ecf318818d762d712c089e5c..caa93d28e8756c11e84d49679b53c4f40e0431d5 100644 --- a/src/includes/splash.pug +++ b/src/includes/splash.pug @@ -2,7 +2,7 @@ sib-router sib-route(name='mentor-login') sib-route(name='entrepreneur-login') -h2 Welcome to your international index of resources for cooperative mentors and entrepreneurs +h2 Welcome to our international index of resources for cooperative mentors and entrepreneurs sib-link(next='mentor-login') div I am a mentor