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

First true draft of the app architecture

parent 4077c196
No related branches found
No related tags found
1 merge request!1Feature/adding resource create first
//TODO: Dashboard is the Mentor Dashboard, only
//accessible when logged-in, so should be protected
//by sid-oidc.
\ No newline at end of file
// 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
header#header(role='banner')
include ../templates/header.pug
section#home
h1 Mentorship program
......
h2 I am an 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
\ No newline at end of file
// Dashboard for entrepreneur, containing the search engine
// Access to all resources
// Capabilities to request a resource
// Like and comment
header#header(role='banner')
include ../templates/header.pug
h2 I am a mentor
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
......@@ -9,4 +9,6 @@ sib-router(default-route="list", use-hash)
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)
\ No newline at end of file
sib-route(id-prefix=`${endpoints.resources}`, name='edit', use-id)
sib-route(name="mentor")
sib-route(name="entrepreneur")
\ No newline at end of file
sib-router
sib-route(name='mentor-login')
sib-route(name='entrepreneur-login')
h2 Welcome to our international index of resources for cooperative mentors and entrepreneurs
sib-link(next='mentor-login')
div I am a mentor
sib-link(next='entrepreneur-login')
div I am an entrepreneur
#mentor-login(hidden).no-sidebar
//- sib-link(class="backlink", next="list") Back to the list
include mentor/login.pug
#entrepreneur-login(hidden).no-sidebar
//- sib-link(class="backlink", next="list") Back to the list
include entrepreneur/login.pug
\ No newline at end of file
......@@ -20,7 +20,7 @@ sib-widget(name='account-user-name')
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(
......
......@@ -2,8 +2,5 @@ doctype html
html
include includes/head.pug
body
header#header(role='banner')
include includes/header.pug
main
include includes/home.pug
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