diff --git a/src/includes/entrepreneur/components/header.pug b/src/includes/entrepreneur/components/header.pug index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..2efbe86c3b3e0f5a71a3eb4c434d17d019463081 100644 --- a/src/includes/entrepreneur/components/header.pug +++ b/src/includes/entrepreneur/components/header.pug @@ -0,0 +1,26 @@ +.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 diff --git a/src/includes/entrepreneur/components/menu.pug b/src/includes/entrepreneur/components/menu.pug new file mode 100644 index 0000000000000000000000000000000000000000..79869cdc9887ec34016828034c5f6dd3cfeefdb3 --- /dev/null +++ b/src/includes/entrepreneur/components/menu.pug @@ -0,0 +1,4 @@ +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 diff --git a/src/includes/entrepreneur/dashboard.pug b/src/includes/entrepreneur/dashboard.pug index 4bf507f122982b2b1eb4df1e0cf89971d5fd38c8..442c9cbe13f06c560bcd75d7f5a5f7e42e5ad1c4 100644 --- a/src/includes/entrepreneur/dashboard.pug +++ b/src/includes/entrepreneur/dashboard.pug @@ -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,16 @@ 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') + + dialog#entrepreneur-request-create.no-sidebar.container + include ./requests/create.pug + + #entrepreneur-account(hidden) + h2 account diff --git a/src/includes/entrepreneur/requests/create.pug b/src/includes/entrepreneur/requests/create.pug index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..e036b4d326ed543ee0aa552ed387b15cfb2d1760 100644 --- a/src/includes/entrepreneur/requests/create.pug +++ b/src/includes/entrepreneur/requests/create.pug @@ -0,0 +1,3 @@ +p That's work + + sib-link(class="backlink", next="entrepreneur-resource-list") Back to the dashboard \ No newline at end of file diff --git a/src/includes/entrepreneur/resources/list.pug b/src/includes/entrepreneur/resources/list.pug index 30576314d0cb8fbc98544c9fcd8dfba3ddd94f0a..3270dd35941a566cf8d0a8c210bb3cd9b097d1a2 100644 --- a/src/includes/entrepreneur/resources/list.pug +++ b/src/includes/entrepreneur/resources/list.pug @@ -1,3 +1,5 @@ +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 diff --git a/src/includes/mentor/dashboard.pug b/src/includes/mentor/dashboard.pug index 0d01061a1376938ae6725da92d74cd3f2a9e5c98..cb14552241f071af827ad4ebdfa2e35fb2052a2f 100644 --- a/src/includes/mentor/dashboard.pug +++ b/src/includes/mentor/dashboard.pug @@ -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 diff --git a/src/styles/index.scss b/src/styles/index.scss index faf7274e5fb74e78ad217624a21d2d3f5ba463f0..74a46edf5c9b07365a745d255aa31aeb996b27bb 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -881,8 +881,4 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/ b, strong { font-weight: bolder; -} - -div{ - } \ No newline at end of file