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

Merge branch 'feature/confirmation-page-after-profile-edit' into 'master'

Adding proper saved modifications on profile confirmation page

See merge request startinblox/applications/coop-starter/coopstarter-front!59
parents db0b3bdc 121b78ec
No related branches found
No related tags found
1 merge request!59Adding proper saved modifications on profile confirmation page
...@@ -2,4 +2,4 @@ sib-router(default-route='entrepreneur-resource-list') ...@@ -2,4 +2,4 @@ sib-router(default-route='entrepreneur-resource-list')
sib-route(name='entrepreneur-resource-list') sib-route(name='entrepreneur-resource-list')
sib-route(name='entrepreneur-account', id-prefix=`${endpoints.users}`, use-id) sib-route(name='entrepreneur-account', id-prefix=`${endpoints.users}`, use-id)
sib-route(name='entrepreneur-account-edit', id-prefix=`${endpoints.users}`, use-id) sib-route(name='entrepreneur-account-edit', id-prefix=`${endpoints.users}`, use-id)
sib-route(name='entrepreneur-account-edit-confirmation')
\ No newline at end of file \ No newline at end of file
...@@ -40,3 +40,6 @@ section#home ...@@ -40,3 +40,6 @@ section#home
#entrepreneur-account-edit(hidden).no-sidebar.container #entrepreneur-account-edit(hidden).no-sidebar.container
include profile/edit.pug include profile/edit.pug
#entrepreneur-account-edit-confirmation(hidden).no-sidebar.container
include profile/confirmation.pug
div.container_min
h2.title_lead.fd_bleu Edit your account
p.p_entete Your modifications have properly been saved.
div
div.flex
h3.button_base
sib-link(next='entrepreneur-resource-list') -> Back to the database
\ No newline at end of file
...@@ -11,7 +11,7 @@ sib-form#entrepreneur_profile_edition.block_log.block_creat_count( ...@@ -11,7 +11,7 @@ sib-form#entrepreneur_profile_edition.block_log.block_creat_count(
label-last_name="Name" label-last_name="Name"
label-username="Username" label-username="Username"
label-entrepreneur_profile.organisation="Organisation" label-entrepreneur_profile.organisation="Organisation"
label-account.picture="Profile picture"
widget-username="sib-form-hidden" widget-username="sib-form-hidden"
class-last_name='form-label is-dark input_big' class-last_name='form-label is-dark input_big'
...@@ -28,7 +28,7 @@ sib-form#entrepreneur_profile_edition.block_log.block_creat_count( ...@@ -28,7 +28,7 @@ sib-form#entrepreneur_profile_edition.block_log.block_creat_count(
class-account.picture='input_photo w_25' class-account.picture='input_photo w_25'
submit-button="Save modifications" submit-button="Save modifications"
next='entrepreneur-resource-list' next='entrepreneur-account-edit-confirmation'
) )
sib-link(class="backlink", next="entrepreneur-resource-list") Back to the dashboard sib-link(class="backlink", next="entrepreneur-resource-list") Back to the dashboard
\ No newline at end of file
...@@ -7,4 +7,5 @@ sib-router(default-route='mentor-resource-list') ...@@ -7,4 +7,5 @@ sib-router(default-route='mentor-resource-list')
sib-ac-checker(permission="acl:Write" bind-resources) sib-ac-checker(permission="acl:Write" bind-resources)
sib-route(id-prefix=`${endpoints.resources}`, name='mentor-resource-edit', use-id) sib-route(id-prefix=`${endpoints.resources}`, name='mentor-resource-edit', use-id)
sib-route(name='resource-creation-confirmation') sib-route(name='resource-creation-confirmation')
sib-route(name='mentor-database') sib-route(name='mentor-database')
\ No newline at end of file sib-route(name='mentor-account-edit-confirmation')
\ No newline at end of file
...@@ -49,3 +49,6 @@ section#home ...@@ -49,3 +49,6 @@ section#home
#mentor-account-edit(hidden).no-sidebar.container #mentor-account-edit(hidden).no-sidebar.container
include profile/edit.pug include profile/edit.pug
#mentor-account-edit-confirmation(hidden).no-sidebar.container
include profile/confirmation.pug
div.container_min
h2.title_lead.fd_bleu Edit your account
p.p_entete Your modifications have properly been saved.
div
div.flex
h3.button_base
sib-link(next='mentor-resource-list') -> Back to dashboard
\ No newline at end of file
...@@ -58,8 +58,8 @@ sib-form#mentor_profile_edition.block_log.block_creat_count( ...@@ -58,8 +58,8 @@ sib-form#mentor_profile_edition.block_log.block_creat_count(
class-headline='w_75' class-headline='w_75'
submit-button="Save modifications" submit-button="Save modifications"
next='mentor-resource-list' next="mentor-account-edit-confirmation"
) )
sib-link(class="backlink", next="mentor-account") Back to my account
sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard
sib-link(class="backlink", next="mentor-account") Back to the profile
...@@ -54,14 +54,16 @@ function refreshPagination() { ...@@ -54,14 +54,16 @@ function refreshPagination() {
var resources_containers = document.querySelectorAll( var resources_containers = document.querySelectorAll(
".resource_by_step sib-form+div" ".resource_by_step sib-form+div"
); );
for (let resources_container of resources_containers) { for (let resources_container of resources_containers) {
if ( if (
resources_container.childElementCount < 5 || resources_container.childElementCount < 5 || (
resources_container.nextSibling.querySelector("nav span span+span") resources_container.nextSibling &&
resources_container.nextSibling.querySelector("nav span span+span"))
.textContent == 1 .textContent == 1
) { ) {
resources_container.nextSibling.setAttribute("style", "display:none"); resources_container.nextSibling.setAttribute("style", "display:none");
} else { } else if (resources_container.nextSibling) {
resources_container.nextSibling.setAttribute("style", "display:block"); resources_container.nextSibling.setAttribute("style", "display:block");
} }
} }
......
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