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

Adding draft of the user account page

parent 66ed6c11
No related branches found
No related tags found
No related merge requests found
......@@ -58,3 +58,8 @@ sib-widget(name='cs-section_introduction')
div
h2.title_form ${label}
p Informations will appear on your profile to inform entrepreneurs about your skills and activities. We will also use those information to address specific resources for validation.
sib-widget(name='cs-account-picture')
template
figure.avatar
img(name="${name}", src="\${value || '/images/alien.jpg'}", alt="Coopstarter")
sib-widget(name='resource-format-name')
template
div
p ${value.name}
p: a Watch a video presentation
h2 Search for a resource
......
sib-widget(name='account-user-avatar')
template
figure.avatar
img(name="${name}", src="\${value || '/images/alien.jpg'}", alt="Coopstarter")
.container
.flex.flex_espace.flex_item_center
//a(href='/') Mentorship program
......@@ -23,11 +18,11 @@ sib-widget(name='account-user-avatar')
)
input.ico_droite.ico_search
sib-link(next='user-account')
sib-link(next='mentor-account')
sib-display(
bind-user
fields='account.picture',
widget-account.picture='account-user-avatar'
widget-account.picture='cs-account-picture'
)
//button.button_base.margin_bord_ecran(role='log out' onclick="document.querySelector('sib-auth').logout();") Logout
\ No newline at end of file
sib-router(default-route='mentor-resource-list')
sib-route(name='mentor-resource-list')
sib-route(name='mentor-account', id-prefix=`${endpoints.users}`, use-id)
sib-ac-checker(permission="acl:Write")
sib-route(name='mentor-resource-create')
sib-ac-checker(permission="acl:Write" bind-resources)
......
......@@ -36,3 +36,6 @@ section#home
#mentor-database
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
include ../entrepreneur/dashboard.pug
#mentor-account(hidden).no-sidebar.container
include profile.pug
include ../components/widgets
div.container_min
h2.title_lead_avenir My Account
div.block_list
div.button__actions
div.resources__newresource
sib-link(next='mentor-resource-create')
div
div.button_base.ico_gauche.ico_plus Post a new Resource
div.dashboard__database
sib-link(next='mentor-database')
div.button_base.ico_gauche.ico_database Browse database
div.dashboard__database
sib-link(next='mentor-resource-list')
div.button_base.ico_gauche.ico_search Back to dashboard
div.profile_information
sib-display(
bind-user
fields='account.picture, name, mentor_profile.headline, mentor_profile.city, mentor_profile.country, registered_on'
widget-account.picture='cs-account-picture'
widget-name='cs-display-property'
widget-mentor_profile.headline='cs-display-property'
widget-mentor_profile.city='cs-display-property'
widget-mentor_profile.country='cs-display-property'
widget-mentor_profile.registered_on='cs-display-property'
)
sib-display(
fields=""
nested-field="resources"
counter-template="<p>${counter} resource(s) uploaded here</p>"
bind-user
)
sib-display(
bind-user
fields='biography_label, mentor_profile.biography, skills_label, mentor_profile.skills'
widget-biography_label='cs-display-label'
widget-skills_label='cs-display-label'
label-skills_label='Skills:'
label-biography_label='Activities:'
widget-mentor_profile.skills='cs-display-property'
widget-mentor_profile.biography='cs-display-property'
)
sib-display(
bind-user
fields='email, mentor_profile.phone, mentor_profile.linkedin, mentor_profile.twitter'
widget-email='cs-display-resource-property'
widget-mentor_profile.phone='cs-display-resource-property'
widget-mentor_profile.linkedin='cs-display-link'
widget-mentor_profile.twitter='cs-display-link'
label-mentor_profile.twitter='Twitter'
label-mentor_profile.linkedin='Linkedin'
)
\ 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