From ab8e97cb0b61fcf7c9c7bcd6c3de77acfdf08f92 Mon Sep 17 00:00:00 2001 From: Alice <alice.poggioli@hotmail.fr> Date: Wed, 4 Sep 2019 18:16:57 +0200 Subject: [PATCH] feature: Resource request creation in entrepreneur dashboard. --- src/includes/entrepreneur/dashboard.pug | 8 +++- src/includes/entrepreneur/requests/create.pug | 45 ++++++++++++++++++- 2 files changed, 50 insertions(+), 3 deletions(-) diff --git a/src/includes/entrepreneur/dashboard.pug b/src/includes/entrepreneur/dashboard.pug index 442c9cbe..69b824c5 100644 --- a/src/includes/entrepreneur/dashboard.pug +++ b/src/includes/entrepreneur/dashboard.pug @@ -26,9 +26,15 @@ section#home sib-router sib-route(name='entrepreneur-request-create') - + sib-route(name='entrepreneur-request-validation') + dialog#entrepreneur-request-create.no-sidebar.container include ./requests/create.pug + dialog#entrepreneur-request-validation.no-sidebar.container + p You request has been submitted + p.flex + sib-link(next='entrepreneur-resource-list', class='button_base') Ok + #entrepreneur-account(hidden) h2 account diff --git a/src/includes/entrepreneur/requests/create.pug b/src/includes/entrepreneur/requests/create.pug index e036b4d3..2692e978 100644 --- a/src/includes/entrepreneur/requests/create.pug +++ b/src/includes/entrepreneur/requests/create.pug @@ -1,3 +1,44 @@ -p That's work +h2 Request a ressource + +p You can't find a resource you are looking for ? You need resources to acquire certain skills or progress in your cooperative developement ? It can be a book, a document model, a tutorial, anything you need, make a request to our mentors so they know how to help you. + + sib-form#resource-creation-form( + data-src=`${endpoints.requests}` + fields="mandatory_information(header_mandatory, name, description, country, language),\ + complementary_information(header_complementary, field, organisation, skills)" + + widget-header_mandatory='cs-section_header' + widget-header_complementary='cs-section_header' + + range-language=`${endpoints.languages}` + range-field=`${endpoints.fields}` + range-organisation=`${endpoints.organisations}` + + label-header_mandatory='Mandatory information' + label-header_complementary='Complementary information' + + label-name='Title*' + label-description='Description' + label-language='Language*' + label-country='Country*' + label-field='Field*' + label-organisation='Organisation' + label-skills='What do you need to learn with this resource ?' + + multiple-field='sib-multiple-select' + widget-field='sib-form-auto-completion' + + multiple-language='sib-multiple-select' + widget-language='sib-form-auto-completion' + + widget-description='sib-form-textarea' + widget-skills='sib-form-textarea' + widget-organisation='sib-form-auto-completion' + + submit-button='Send request' + next="entrepreneur-request-validation" + ) + + 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 -- GitLab