From 496a105f6cf674ff137ab67b25fea28670490c33 Mon Sep 17 00:00:00 2001 From: Alice <alice.poggioli@hotmail.fr> Date: Mon, 16 Sep 2019 13:20:22 +0200 Subject: [PATCH] Feature: Refreshement after profile edition. --- src/includes/entrepreneur/profile/edit.pug | 6 ++++-- src/includes/mentor/profile/edit.pug | 6 ++++-- src/scripts/coopstarter.js | 5 +++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/includes/entrepreneur/profile/edit.pug b/src/includes/entrepreneur/profile/edit.pug index 843aff7c..fc5da4bc 100644 --- a/src/includes/entrepreneur/profile/edit.pug +++ b/src/includes/entrepreneur/profile/edit.pug @@ -2,7 +2,7 @@ include ../../components/widgets h2.title_create Edit your account -sib-form.block_log.block_creat_count( +sib-form#entrepreneur_profile_edition.block_log.block_creat_count( bind-user fields="info(last_name, first_name, username, email, entrepreneur_profile.organisation)" range-entrepreneur_profile.organisation=`${endpoints.organisations}` @@ -25,4 +25,6 @@ sib-form.block_log.block_creat_count( submit-button="Save modifications" next='entrepreneur-resource-list' -) \ No newline at end of file +) + +sib-link(class="backlink", next="entrepreneur-resource-list") Back to the dashboard \ No newline at end of file diff --git a/src/includes/mentor/profile/edit.pug b/src/includes/mentor/profile/edit.pug index 773da3ff..1cdcc94f 100644 --- a/src/includes/mentor/profile/edit.pug +++ b/src/includes/mentor/profile/edit.pug @@ -2,7 +2,7 @@ include ../../components/widgets h2.title_create Edit your account -sib-form.block_log.block_creat_count( +sib-form#mentor_profile_edition.block_log.block_creat_count( bind-user fields="account_information(last_name, first_name, mentor_profile.organisation,\ mentor_profile.phone, mentor_profile.languages, mentor_profile.fields),\ @@ -59,4 +59,6 @@ sib-form.block_log.block_creat_count( submit-button="Save modifications" next='mentor-dashboard' -) \ No newline at end of file +) + +sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard \ No newline at end of file diff --git a/src/scripts/coopstarter.js b/src/scripts/coopstarter.js index 76f69067..cccba750 100644 --- a/src/scripts/coopstarter.js +++ b/src/scripts/coopstarter.js @@ -77,6 +77,11 @@ jQuery(document).ready(function($) { refreshList("mentor_profile_creation", "mentor_info"); refreshList("mentor_profile_creation", "mentor_complementary"); refreshList("mentor_profile_creation", "mentor_contact"); + refreshList("entrepreneur_profile_edition", "entrepreneur_info"); + refreshList("entrepreneur_profile_edition", "entrepreneur_contact"); + refreshList("mentor_profile_edition", "mentor_info"); + refreshList("mentor_profile_edition", "mentor_complementary"); + refreshList("mentor_profile_edition", "mentor_contact"); const logoutButtons = document.getElementsByClassName("logout-button"); for (var i = 0; i < logoutButtons.length; i++) { -- GitLab