diff --git a/src/includes/entrepreneur/profile/create.pug b/src/includes/entrepreneur/profile/create.pug index ce0cb42cab5e95efc21fe711136035d21d78934a..a76b9c9717ee9fbdc7fe9a7ee63e1cca662c7077 100644 --- a/src/includes/entrepreneur/profile/create.pug +++ b/src/includes/entrepreneur/profile/create.pug @@ -12,7 +12,7 @@ h2.title_create Complete your entrepreneur account sib-form#entrepreneur_profile_creation.block_log.block_creat_count( bind-user - fields="last_name, first_name, entrepreneur_profile.organisation, username" + fields="last_name, first_name, entrepreneur_profile.organisation, account.picture, username" range-entrepreneur_profile.organisation=`${endpoints.organisations}` @@ -25,6 +25,10 @@ sib-form#entrepreneur_profile_creation.block_log.block_creat_count( widget-entrepreneur_profile.organisation='sib-form-auto-completion' widget-username='sib-form-hidden' + + upload-url-account.picture=`${sdn}upload/` + widget-account.picture='sib-form-file' + class-account.picture='input_photo w_25' submit-button="COMPLETE YOUR ACCOUNT" next="entrepreneur-dashboard" diff --git a/src/includes/entrepreneur/profile/edit.pug b/src/includes/entrepreneur/profile/edit.pug index fc5da4bc0021d19f2d1d8a97ac4b200708c55d57..a783c83260e8f158e2cf99c71dc6e3640fc257b0 100644 --- a/src/includes/entrepreneur/profile/edit.pug +++ b/src/includes/entrepreneur/profile/edit.pug @@ -4,7 +4,7 @@ h2.title_create Edit your account sib-form#entrepreneur_profile_edition.block_log.block_creat_count( bind-user - fields="info(last_name, first_name, username, email, entrepreneur_profile.organisation)" + fields="info(last_name, first_name, username, email, entrepreneur_profile.organisation, account.picture)" range-entrepreneur_profile.organisation=`${endpoints.organisations}` label-first_name="Surname" @@ -23,6 +23,10 @@ sib-form#entrepreneur_profile_edition.block_log.block_creat_count( multiple-entrepreneur_profile.organisation='sib-multiple-select' widget-entrepreneur_profile.organisation='sib-form-auto-completion' + upload-url-account.picture=`${sdn}upload/` + widget-account.picture='sib-form-file' + class-account.picture='input_photo w_25' + submit-button="Save modifications" next='entrepreneur-resource-list' ) diff --git a/src/includes/mentor/dashboard.pug b/src/includes/mentor/dashboard.pug index 0b8f5e82c1c28a0a92f2e1fe5e8b0118ded9b690..d27b1086ffc92656efe1fc7fdea92a04c4dbe13d 100644 --- a/src/includes/mentor/dashboard.pug +++ b/src/includes/mentor/dashboard.pug @@ -22,7 +22,6 @@ section#home dialog#mentor-resource-detail.no-sidebar include resources/detail.pug - sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard dialog#mentor-resource-validate.no-sidebar.container include resources/validate.pug diff --git a/src/includes/mentor/profile/create.pug b/src/includes/mentor/profile/create.pug index 17f7c8f75f9c65492c761857cf429925ed7b42b0..d1bf6235698182dbffd04a069e3e9cd9f0190ef2 100644 --- a/src/includes/mentor/profile/create.pug +++ b/src/includes/mentor/profile/create.pug @@ -60,7 +60,7 @@ sib-form#mentor_profile_creation.block_log.block_creat_count( multiple-mentor_profile.fields='sib-multiple-select' widget-mentor_profile.fields='sib-form-auto-completion' - upload-url-account.picture=`${sdn}/upload/` + upload-url-account.picture=`${sdn}upload/` widget-account.picture='sib-form-file' class-account.picture='input_photo w_25' class-headline='w_75' diff --git a/src/includes/mentor/profile/edit.pug b/src/includes/mentor/profile/edit.pug index 1cdcc94f189ee19f68b087c647354c29d67480ca..556b71bb9b3b16609624e8cd86a40edd56d34076 100644 --- a/src/includes/mentor/profile/edit.pug +++ b/src/includes/mentor/profile/edit.pug @@ -52,13 +52,11 @@ sib-form#mentor_profile_edition.block_log.block_creat_count( multiple-mentor_profile.fields='sib-multiple-select' widget-mentor_profile.fields='sib-form-auto-completion' - upload-url-account.picture=`${sdn}/upload/` + upload-url-account.picture=`${sdn}upload/` widget-account.picture='sib-form-file' class-account.picture='input_photo w_25' class-headline='w_75' submit-button="Save modifications" - next='mentor-dashboard' + next='mentor-resource-list' ) - -sib-link(class="backlink", next="mentor-resource-list") Back to the dashboard \ No newline at end of file diff --git a/src/includes/mentor/resources/create.pug b/src/includes/mentor/resources/create.pug index 6c273acafcf2ed6679eaee50ce4849f7725907f0..bc9083862429f6cb1788c5fd9ce5c17dc4f691af 100644 --- a/src/includes/mentor/resources/create.pug +++ b/src/includes/mentor/resources/create.pug @@ -76,6 +76,10 @@ p.p_entete Thank you for enriching our database ! widget-skills='sib-form-textarea' widget-publication_year='sib-form-number' + upload-url-preview_image=`${sdn}upload/` + widget-preview_image='sib-form-file' + class-preview_image='input_photo w_25' + submit-button='Send for validation ->' next="resource-creation-confirmation" ) \ No newline at end of file diff --git a/src/includes/mentor/resources/detail.pug b/src/includes/mentor/resources/detail.pug index abd9c623d27565469c37912b85ae1081b0b39286..51fb1d906baf8e4c252016d1b14c29c8200d0295 100644 --- a/src/includes/mentor/resources/detail.pug +++ b/src/includes/mentor/resources/detail.pug @@ -9,20 +9,24 @@ dialog#confirm_suppress sib-link(class="backlink pull-right", next="mentor-resource-list") X .block_log.block_creat_count.no_shadow + sib-link(class="backlink", next="mentor-resource-list") + .like + p.backlink + i.fas.fa-times + sib-display( bind-resources, fields='name, steps, format, content(preview_image, tags),\ submitter_info(submitter.account.picture, submitter.name, \ submitter.mentor_profile.organisation.name, skills, uri, broken),\ - description, review.status, review.reviewer.account.picture, review.reviewer.name, copyright, specifications(\ + description, review.reviewer.account.picture, review.reviewer.name,\ + copyright, specifications(\ header_specifications, author, country, language.name,\ - publication_year, fields, sharing), \ - edit', + publication_year, fields, sharing)', widget-submitter.name='cs-display-resource-property', class-name="title_form" class-steps="steps" - widget-edit='sib-action', widget-author='cs-display-resource-property', widget-country='cs-display-resource-property', widget-submitter.mentor_profile.organisation.name='cs-display-resource-property' @@ -39,7 +43,7 @@ dialog#confirm_suppress widget-language.name='cs-display-resource-property' widget-submitter.account.picture='cs-account-picture' widget-broken='cs-broken-action' - widget-review.status='cs-resource-status' + widget-preview_image='cs-profile-picture' widget-review.reviewer.account.picture='cs-account-picture' widget-review.reviewer.name='cs-resource-reviewer' class-review.reviewer.name="validator_ressource" @@ -68,12 +72,9 @@ dialog#confirm_suppress label-uri='Link to resource' name-uri='original-link' label-country='Country:' - label-submitter.mentor_profile.organisation.name='Organisation:', - label-author='Author :', - label-submitter.name='Resource posted by:', - label-edit='Edit', - label-review='' - action-edit='mentor-resource-edit', + label-submitter.mentor_profile.organisation.name='Organisation:' + label-author='Author :' + label-submitter.name='Resource posted by:' action-broken='resource-report-broken-link' ) @@ -82,9 +83,7 @@ dialog#confirm_suppress <p class="backlink"><i class='far fa-thumbs-up'></i>18</p> <p class="backlink"><i class='far fa-thumbs-down'></i>3</p> </div> - <div class="like"> - <p class="backlink"><i class="fas fa-times"></i></p> - </div> + sib-display( bind-resources fields="" @@ -111,6 +110,8 @@ dialog#confirm_suppress id-suffix="conversations" ) + h2.title_lead_avenir Related resources + sib-display( bind-resources, nested-field="related" diff --git a/src/includes/mentor/resources/edit.pug b/src/includes/mentor/resources/edit.pug index 3243643d7f5c3a4fad2b0e1a7ab4e85adeb47005..66dc47a260a3e80336f0216fe750faaf95e785e7 100644 --- a/src/includes/mentor/resources/edit.pug +++ b/src/includes/mentor/resources/edit.pug @@ -76,6 +76,10 @@ p.p_entete Thank you for enriching our database ! widget-skills='sib-form-textarea' widget-publication_year='sib-form-number' + upload-url-preview_image=`${sdn}upload/` + widget-preview_image='sib-form-file' + class-preview_image='input_photo w_25' + submit-button='Send for validation ->' next="resource-creation-confirmation" ) \ No newline at end of file