Skip to content
Snippets Groups Projects
Commit 6b3983b9 authored by fred's avatar fred
Browse files

Merge branch 'master' into integration/dashboard-completion

parents e7cef60a 2b554cba
No related branches found
No related tags found
1 merge request!25Integration/dashboard completion
.container
.flex.flex_espace.flex_item_center
sib-link(next='entrepreneur-resource-list')
figure.logo_head.margin_bord_ecran
img(src="../images/logo_head.png" alt="Coopstarter")
include menu.pug
div.flex.flex_espace.flex_item_center
sib-form(
data-src=`${endpoints.languages}`
fields='languages'
range-languages=`${endpoints.languages}`
widget-languages='sib-form-dropdown'
selected-languages=`${endpoints.languages}/1/`
label-languages=''
naked
)
input.ico_droite.ico_search
sib-link(next='entrepreneur-account')
sib-display#user-account-picture(
bind-user
fields='account.picture',
widget-account.picture='cs-account-picture'
)
\ No newline at end of file
sib-router(default-route='entrepreneur-resource-list')
sib-route(name='entrepreneur-resource-list')
sib-route(name='entrepreneur-account', id-prefix=`${endpoints.users}`, use-id)
\ No newline at end of file
......@@ -4,9 +4,10 @@
// Like and comment
header#header(role='banner')
include components/header.pug
include ./components/header.pug
section#home
h1 Mentorship program
p International index of resources for cooperative mentors and entrepreneurs
......@@ -18,5 +19,22 @@ section#home
// From two different endpoints I guess
//-Work on the page architecture
#entrepreneur-resource-list(hidden)
include resources/list.pug
\ No newline at end of file
//TODO : investigate why we have to remove hidden attribute to see this even if we are on the right route.
#entrepreneur-resource-list()
include ./resources/list.pug
sib-router
sib-route(name='entrepreneur-request-create')
sib-route(name='entrepreneur-request-validation')
dialog#entrepreneur-request-create.no-sidebar.container
include ./requests/create.pug
dialog#entrepreneur-request-validation.no-sidebar.container
p You request has been submitted
p.flex
sib-link(next='entrepreneur-resource-list', class='button_base') Ok
#entrepreneur-account(hidden)
h2 account
h2 Request a ressource
p You can't find a resource you are looking for ? You need resources to acquire certain skills or progress in your cooperative developement ? It can be a book, a document model, a tutorial, anything you need, make a request to our mentors so they know how to help you.
sib-form#resource-creation-form(
data-src=`${endpoints.requests}`
fields="mandatory_information(header_mandatory, name, description, country, language),\
complementary_information(header_complementary, field, organisation, skills)"
widget-header_mandatory='cs-section_header'
widget-header_complementary='cs-section_header'
range-language=`${endpoints.languages}`
range-field=`${endpoints.fields}`
range-organisation=`${endpoints.organisations}`
label-header_mandatory='Mandatory information'
label-header_complementary='Complementary information'
label-name='Title*'
label-description='Description'
label-language='Language*'
label-country='Country*'
label-field='Field*'
label-organisation='Organisation'
label-skills='What do you need to learn with this resource ?'
multiple-field='sib-multiple-select'
widget-field='sib-form-auto-completion'
multiple-language='sib-multiple-select'
widget-language='sib-form-auto-completion'
widget-description='sib-form-textarea'
widget-skills='sib-form-textarea'
widget-organisation='sib-form-auto-completion'
submit-button='Send request'
next="entrepreneur-request-validation"
)
sib-link(class="backlink", next="entrepreneur-resource-list") Back to the dashboard
include ../../components/widgets
p: a Watch a video presentation
h2 Search for a resource
......@@ -5,14 +7,21 @@ h2 Search for a resource
#circles
sib-display#circles-list(
data-src=`${endpoints.resources}`,
fields='content(title, description), format, info(author, publication_year, language.name), steps',
search-fields='title, description, format',
fields='name, description, format, info(author, publication_year, language.name), steps',
search-fields='name, description, format',
widget-format='cs-resource-format-name',
multiple-format,
widget-steps='cs-resource-format-name',
multiple-steps,
group-by='steps'
paginate-by="1"
next='detail'
)
\ No newline at end of file
)
div.side-block
p Can't find the ressource you need ?
div.button__actions
sib-link(next='entrepreneur-request-create')
div
div.button_base.ico_gauche.ico_plus Make a request
\ No newline at end of file
......@@ -33,9 +33,9 @@ section#home
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
include resources/detail.pug
#mentor-database
#mentor-database(hidden)
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
include ../entrepreneur/dashboard.pug
include resources/list.pug
#mentor-account(hidden).no-sidebar.container
include profile.pug
......@@ -983,8 +983,4 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/
b, strong {
font-weight: bolder;
}
div{
}
\ No newline at end of file
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