Skip to content
Snippets Groups Projects
Commit b539c047 authored by Alice Poggioli's avatar Alice Poggioli
Browse files

Bug: Refresh the user data on validation of the form creation profile.

parent b7daa15a
No related branches found
No related tags found
1 merge request!36Feature/entrepreneur dashboard
...@@ -10,7 +10,7 @@ figure.logo.img_log ...@@ -10,7 +10,7 @@ figure.logo.img_log
h2.title_create Complete your entrepreneur account h2.title_create Complete your entrepreneur account
sib-form.block_log.block_creat_count( sib-form#entrepreneur_profile_creation.block_log.block_creat_count(
bind-user bind-user
fields="last_name, first_name, entrepreneur_profile.organisation, username" fields="last_name, first_name, entrepreneur_profile.organisation, username"
......
...@@ -23,7 +23,7 @@ div.block_list.flex ...@@ -23,7 +23,7 @@ div.block_list.flex
sib-link(next='entrepreneur-account-edit') sib-link(next='entrepreneur-account-edit')
button.button_edit Edit button.button_edit Edit
sib-display( sib-display#entrepreneur_info(
bind-user bind-user
fields='name, entrepreneur_profile.organisation.name, registered_on' fields='name, entrepreneur_profile.organisation.name, registered_on'
widget-name='cs-display-property' widget-name='cs-display-property'
...@@ -31,7 +31,7 @@ div.block_list.flex ...@@ -31,7 +31,7 @@ div.block_list.flex
widget-entrepreneur_profile.registered_on='cs-display-property' widget-entrepreneur_profile.registered_on='cs-display-property'
) )
sib-display( sib-display#entrepreneur_contact(
bind-user bind-user
fields='email' fields='email'
label-email='Email:' label-email='Email:'
......
...@@ -10,7 +10,7 @@ figure.logo.img_log ...@@ -10,7 +10,7 @@ figure.logo.img_log
h2.title_create Complete your mentor account h2.title_create Complete your mentor account
sib-form.block_log.block_creat_count( sib-form#mentor_profile_creation.block_log.block_creat_count(
bind-user bind-user
fields="account_information(last_name, first_name, mentor_profile.organisation,\ fields="account_information(last_name, first_name, mentor_profile.organisation,\
mentor_profile.phone, mentor_profile.languages, mentor_profile.fields),\ mentor_profile.phone, mentor_profile.languages, mentor_profile.fields),\
......
...@@ -27,7 +27,7 @@ div.block_list.flex ...@@ -27,7 +27,7 @@ div.block_list.flex
sib-link(next='mentor-account-edit') sib-link(next='mentor-account-edit')
button.button_edit Edit button.button_edit Edit
sib-display( sib-display#mentor_info(
bind-user bind-user
fields='account.picture, name, mentor_profile.headline, mentor_profile.city, mentor_profile.country, registered_on' fields='account.picture, name, mentor_profile.headline, mentor_profile.city, mentor_profile.country, registered_on'
widget-account.picture='cs-profile-picture' widget-account.picture='cs-profile-picture'
...@@ -45,7 +45,7 @@ div.block_list.flex ...@@ -45,7 +45,7 @@ div.block_list.flex
bind-user bind-user
) )
sib-display( sib-display#mentor_complementary(
bind-user bind-user
fields='biography_label, mentor_profile.biography, skills_label, mentor_profile.skills' fields='biography_label, mentor_profile.biography, skills_label, mentor_profile.skills'
widget-biography_label='cs-display-label' widget-biography_label='cs-display-label'
...@@ -56,7 +56,7 @@ div.block_list.flex ...@@ -56,7 +56,7 @@ div.block_list.flex
widget-mentor_profile.biography='cs-display-property' widget-mentor_profile.biography='cs-display-property'
) )
sib-display( sib-display#mentor_contact(
bind-user bind-user
fields='email, mentor_profile.phone, mentor_profile.linkedin, mentor_profile.twitter' fields='email, mentor_profile.phone, mentor_profile.linkedin, mentor_profile.twitter'
label-email='Email:' label-email='Email:'
......
...@@ -49,6 +49,11 @@ jQuery(document).ready(function($) { ...@@ -49,6 +49,11 @@ jQuery(document).ready(function($) {
refreshList("validation-form", "pending-resources"); refreshList("validation-form", "pending-resources");
refreshList("refusal-dialog-form", "pending-resources"); refreshList("refusal-dialog-form", "pending-resources");
refreshList("improvement-dialog-form", "pending-resources"); refreshList("improvement-dialog-form", "pending-resources");
refreshList("entrepreneur_profile_creation", "entrepreneur_info");
refreshList("entrepreneur_profile_creation", "entrepreneur_contact");
refreshList("mentor_profile_creation", "mentor_info");
refreshList("mentor_profile_creation", "mentor_complementary");
refreshList("mentor_profile_creation", "mentor_contact");
const logoutButtons = document.getElementsByClassName("logout-button"); const logoutButtons = document.getElementsByClassName("logout-button");
for (var i = 0; i < logoutButtons.length; i++) { for (var i = 0; i < logoutButtons.length; i++) {
......
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