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

Re-architecturing some stuff

parent 121642de
No related branches found
No related tags found
1 merge request!3Feature/editing a resource
Showing with 53 additions and 39 deletions
// Mentor dashboard, containing
// 3 tabs:
// - History of my validated resources
// - Resources validation request
// -
// Dashboard for entrepreneur, containing the search engine
// Access to all resources
// Capabilities to request a resource
// Like and comment
......@@ -18,9 +14,9 @@ section#home
//TODO:
//-Distinguish the search form from the listing
//-Create two Sib-displays getting the resources by "types"
// and grouped by steps
// From two different endpoints I guess
//-Testing the group-by right after the 0.8 version release
//-Work on the page architecture
#list(hidden)
include ../resource/list.pug
\ No newline at end of file
#entrepreneur-resource-list(hidden)
include resources/list.pug
\ No newline at end of file
......@@ -2,14 +2,5 @@ h2 I am an entrepreneur
button(role='log in' onclick="document.querySelector('sib-auth').login();") Login as entrepreneur
//- form(method='POST' action='/login')
//- div.form-group
//- label(for='email') Email
//- input.form-control(type='text' id='email' placeholder='email' name='email')
//- div.form-group
//- label(for='password') Password
//- input.form-control(type='password' id='password' placeholder='password' name='password')
//- button.btn.btn-primary(type='submit') Log in
sib-link(next='entrepreneur-new-account')
div Create an account
\ No newline at end of file
......@@ -7,11 +7,6 @@ p: a Watch a video presentation
h2 Search for a resource
div.resources__newresource
sib-link(next='create').plus-button
div.icon-plus
div Post a new Resource
#circles
sib-display#circles-list(
data-src=`${sdn}/resources/`,
......@@ -23,6 +18,6 @@ div.resources__newresource
widget-steps='resource-format-name',
multiple-steps,
next='edit'
)
//- group-by='step'
\ No newline at end of file
group-by='steps'
next='detail'
)
\ No newline at end of file
......@@ -4,7 +4,8 @@ sib-widget(name='account-user-avatar')
sib-widget(name='account-user-name')
template
p Hello ${value} :-)
div
p Hello ${value} :-)
.container
.d-flex.justify-content-between
......@@ -13,7 +14,7 @@ sib-widget(name='account-user-name')
sib-display#user-controls__profile(
fields='first_name, account.picture',
widget-first_name='account-user-name',
widget-user.first_name='account-user-name',
widget-account.picture='account-user-avatar',
bind-user
)
......
sib-router(default-route="list", use-hash)
sib-router(default-route='mentor-resource-list')
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='resource-create')
sib-route(name='mentor-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='resource-edit', use-id)
sib-route(name="mentor")
sib-route(name="entrepreneur")
\ No newline at end of file
sib-route(id-prefix=`${endpoints.resources}`, name='mentor-resource-edit', use-id)
\ No newline at end of file
// Dashboard for entrepreneur, containing the search engine
// Mentor dashboard, containing
// 3 tabs:
// - History of my validated resources
// - Resources validation request
// -
// Access to all resources
// Capabilities to request a resource
// Like and comment
......@@ -9,10 +13,17 @@ header#header(role='banner')
section#home
h1 Mentorship program
#resource-create(hidden).no-sidebar
sib-link(class="backlink", next="list") Back to the list
include ../resource/create.pug
#mentor-resource-list(hidden).no-sidebar
include resources/list.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
#mentor-resource-create(hidden).no-sidebar
sib-link(class="backlink", next="list") Back to the resources list
include resources/create.pug
#mentor-resource-edit(hidden).no-sidebar
sib-link(class="backlink", next="list") Back to the resources list
include resources/edit.pug
#mentor-resource-validate(hidden).no-sidebar
sib-link(class="backlink", next="list") Back to the resources list
include resources/validate.pug
\ No newline at end of file
sib-widget(name='resource-format-name')
template
div
p ${value.name}
div.resources__newresource
sib-link(next='mentor-resource-create').plus-button
div.icon-plus
div Post a new Resource
#circles
sib-display#circles-list(
data-src=`${sdn}/resources/`,
fields='content(title, description), format, info(author, publication_year, language.name), steps',
widget-format='resource-format-name',
multiple-format,
widget-steps='resource-format-name',
multiple-steps,
next='edit'
)
\ 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