Skip to content
Snippets Groups Projects
Commit a55462c4 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Some fix on the list

parent 77da7a04
No related branches found
No related tags found
1 merge request!4Feature/editing a resource
This commit is part of merge request !4. Comments created here will be created in the context of that merge request.
......@@ -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
......
......@@ -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'
......
......@@ -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'
......
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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment