From bbe5408791ae5c39d2259e24725f3f327e82be66 Mon Sep 17 00:00:00 2001 From: Benoit Alessandroni <benoit@happy-dev.fr> Date: Wed, 17 Jul 2019 23:32:28 +0200 Subject: [PATCH] Adding proper resources creation confirmation screen --- src/includes/mentor/components/menu.pug | 4 +++- src/includes/mentor/dashboard.pug | 13 +++++++++---- src/includes/mentor/resources/confirmation.pug | 10 ++++++++++ src/includes/mentor/resources/detail.pug | 0 src/includes/mentor/resources/edit.pug | 2 +- 5 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 src/includes/mentor/resources/confirmation.pug create mode 100644 src/includes/mentor/resources/detail.pug diff --git a/src/includes/mentor/components/menu.pug b/src/includes/mentor/components/menu.pug index a27d8ace..c9fef295 100644 --- a/src/includes/mentor/components/menu.pug +++ b/src/includes/mentor/components/menu.pug @@ -9,4 +9,6 @@ sib-router(default-route='mentor-resource-list') div.menu-icon.icon-people div.divider sib-ac-checker(permission="acl:Write" bind-resources) - sib-route(id-prefix=`${endpoints.resources}`, name='mentor-resource-edit', use-id) \ No newline at end of file + sib-route(id-prefix=`${endpoints.resources}`, name='mentor-resource-edit', use-id) + sib-route(name='resource-creation-confirmation') + sib-route(name='mentor-resource-detail') \ No newline at end of file diff --git a/src/includes/mentor/dashboard.pug b/src/includes/mentor/dashboard.pug index ca4d4ce1..49eda912 100644 --- a/src/includes/mentor/dashboard.pug +++ b/src/includes/mentor/dashboard.pug @@ -11,8 +11,6 @@ header#header(role='banner') include ./components/header.pug section#home - h1 Mentorship program - #mentor-resource-list(hidden).no-sidebar include resources/list.pug @@ -21,9 +19,16 @@ section#home include resources/create.pug #mentor-resource-edit(hidden).no-sidebar - sib-link(class="backlink", next="mentor-resource-list") Back to the resources list + sib-link(class="backlink", next="mentor-resource-detail") Back to the resources list include resources/edit.pug #mentor-resource-validate(hidden).no-sidebar sib-link(class="backlink", next="mentor-resource-list") Back to the resources list - include resources/validate.pug \ No newline at end of file + include resources/validate.pug + + #resource-creation-confirmation(hidden).no-sidebar + include resources/confirmation.pug + + #mentor-resource-detail(hidden).no-sidebar + sib-link(class="backlink", next="mentor-resource-list") Back to the resources list + include resources/detail.pug \ No newline at end of file diff --git a/src/includes/mentor/resources/confirmation.pug b/src/includes/mentor/resources/confirmation.pug new file mode 100644 index 00000000..9ec0d78a --- /dev/null +++ b/src/includes/mentor/resources/confirmation.pug @@ -0,0 +1,10 @@ +h2 Post a resource + +p Thank you for enriching our database ! + +p Once one of your pair, a fellow mentor, validate your resource, it will be published online and we will send you a notification. + +sib-link(next="resource-validation-process") What is the validation process ? + +h3 + sib-link(next='mentor-resource-list') -> Back to dashboard \ No newline at end of file diff --git a/src/includes/mentor/resources/detail.pug b/src/includes/mentor/resources/detail.pug new file mode 100644 index 00000000..e69de29b diff --git a/src/includes/mentor/resources/edit.pug b/src/includes/mentor/resources/edit.pug index 650b1851..b67217cb 100644 --- a/src/includes/mentor/resources/edit.pug +++ b/src/includes/mentor/resources/edit.pug @@ -76,5 +76,5 @@ sib-form( widget-publication_year='sib-form-number' submit-button='Send for validation ->' - next="mentor-resource-list" + next="resource-creation-confirmation" ) \ No newline at end of file -- GitLab