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

Adding proper dashboard components architecture

parent f4a923ec
No related branches found
No related tags found
1 merge request!3Feature/editing a resource
......@@ -8,7 +8,7 @@
// Like and comment
header#header(role='banner')
include ../templates/header.pug
include components/header.pug
section#home
h1 Mentorship program
......@@ -23,12 +23,4 @@ section#home
//-Work on the page architecture
#list(hidden)
include resource/list.pug
#create(hidden).no-sidebar
sib-link(class="backlink", next="list") Back to the list
include resource/create.pug
#edit(hidden).no-sidebar
sib-link(class="backlink", next="list") Back to the list
include resource/edit.pug
\ No newline at end of file
include ../resource/list.pug
\ No newline at end of file
......@@ -18,18 +18,4 @@ sib-widget(name='account-user-name')
bind-user
)
button(role='log in' onclick="document.querySelector('sib-auth').login();") Login
button(role='log out' onclick="document.querySelector('sib-auth').logout();") Logout
sib-auth
sib-auth-provider(
class="sib-auth-provider"
data-authority=`${sdn}`
data-client_id=`${client_id}`,
data-id="coopstarter"
data-response_type='id_token token',
data-scope='openid profile email',
data-automaticSilentRenew='true',
data-loadUserInfo='true'
)
\ No newline at end of file
button(role='log out' onclick="document.querySelector('sib-auth').logout();") Logout
\ No newline at end of file
sib-router(default-route="list", use-hash)
sib-route(name='list')
div.menu-label Resources
sib-route(name='mentor-resource-list')
div.menu-label My Resources
div.menu-icon.icon-people
div.divider
sib-ac-checker(permission="acl:Write")
sib-route(name='create')
sib-route(name='resource-create')
div.menu-label Create a resource
div.menu-icon.icon-people
div.divider
sib-ac-checker(permission="acl:Write" bind-resources)
sib-route(id-prefix=`${endpoints.resources}`, name='edit', use-id)
sib-route(id-prefix=`${endpoints.resources}`, name='resource-edit', use-id)
sib-route(name="mentor")
sib-route(name="entrepreneur")
\ No newline at end of file
......@@ -4,4 +4,15 @@
// Like and comment
header#header(role='banner')
include ../templates/header.pug
include ./components/header.pug
section#home
h1 Mentorship program
#resource-create(hidden).no-sidebar
sib-link(class="backlink", next="list") Back to the list
include ../resource/create.pug
#resource-edit(hidden).no-sidebar
sib-link(class="backlink", next="list") Back to the list
include ../resource/edit.pug
\ No newline at end of file
......@@ -6,7 +6,16 @@ html
sib-route(name='splash')
sib-route(name='mentor-new-account')
sib-route(name='entrepreneur-new-account')
sib-route(name='mentor-dashboard')
sib-route(name='entrepreneur-search-page')
body
#mentor-dashboard(hidden).no-sidebar
include includes/mentor/dashboard.pug
#entrepreneur-search-page(hidden).no-sidebar
include includes/entrepreneur/dashboard.pug
#splash(hidden).no-sidebar
include includes/splash.pug
......
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