diff --git a/src/includes/entrepreneur/resources/detail.pug b/src/includes/entrepreneur/resources/detail.pug index 3ea3fbcb81c6a4db3a4d74600a97c71dab907e47..ba3e1c9d223a433902670d0b9cc83a0cf8acfac9 100644 --- a/src/includes/entrepreneur/resources/detail.pug +++ b/src/includes/entrepreneur/resources/detail.pug @@ -16,13 +16,13 @@ content(preview_image, iframe_link),\ description, review.reviewer.account.picture, review.reviewer,\ copyright, specifications(\ - header_specifications, author, country.name, language.name,\ + header_specifications, resource_author, country.name, language.name,\ publication_year, fields, sharing)', widget-submitter='cs-display-entrepreneur-link' class-name="title_form" class-steps="steps" - widget-author='cs-display-resource-property', + widget-resource_author='cs-display-resource-property', widget-country.name='cs-display-resource-property', widget-submitter.mentorProfile.organisation.name='cs-display-resource-property' class-submitter="resource-author" @@ -68,7 +68,7 @@ name-uri='original-link' label-country.name=`${data.Country}` label-submitter.mentorProfile.organisation.name=`${data.Organisation}` - label-author=`${data.Author}` + label-resource_author=`${data.Author}` label-submitter=`${data.ResourcePostedBy}: ` label-review.reviewer=`${data.ResourceValidatedBy}: ` action-broken='resource-report-broken-link-entrepreneur' diff --git a/src/includes/entrepreneur/resources/list.pug b/src/includes/entrepreneur/resources/list.pug index 5a5358b3bc1170b706e5950624fd7ab560f81227..dc6daa3b3e140759db12a59ab240154def75d9bd 100644 --- a/src/includes/entrepreneur/resources/list.pug +++ b/src/includes/entrepreneur/resources/list.pug @@ -121,7 +121,7 @@ container.block_list sib-display.resource_by_step( data-src=`${endpoints.step1}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -149,7 +149,7 @@ container.block_list widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -178,7 +178,7 @@ container.block_list sib-display.resource_by_step( data-src=`${endpoints.step2}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -206,7 +206,7 @@ container.block_list widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -233,7 +233,7 @@ container.block_list sib-display.resource_by_step( data-src=`${endpoints.step3}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -260,7 +260,7 @@ container.block_list widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -289,7 +289,7 @@ container.block_list sib-display.resource_by_step( data-src=`${endpoints.step4}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -317,7 +317,7 @@ container.block_list widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -345,7 +345,7 @@ container.block_list sib-display.resource_by_step( data-src=`${endpoints.step5}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -373,7 +373,7 @@ container.block_list widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -401,7 +401,7 @@ container.block_list sib-display.resource_by_step( data-src=`${endpoints.step6}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -429,7 +429,7 @@ container.block_list widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' diff --git a/src/includes/mentor/resources/confirmation-deletion.pug b/src/includes/mentor/resources/confirmation-deletion.pug index 17d7e94ab6ba982ffe6d5b44a7200088f330e656..1665b198fe4814e50d42e9a85b1194fbab712611 100644 --- a/src/includes/mentor/resources/confirmation-deletion.pug +++ b/src/includes/mentor/resources/confirmation-deletion.pug @@ -1,5 +1,5 @@ .block_log.block_creat_count.no_shadow - sib-link(class="backlink", next="mentor-resource-list") + sib-link(class="backlink", next="mentor-dashboard") .like p i.fas.fa-times diff --git a/src/includes/mentor/resources/create.pug b/src/includes/mentor/resources/create.pug index bf4d702c79484c007ee80961bf6e2f7d5fc9213d..4cee7fdfd4a46efbe920d56775a6e752fa7153c1 100644 --- a/src/includes/mentor/resources/create.pug +++ b/src/includes/mentor/resources/create.pug @@ -6,7 +6,7 @@ p.p_entete=`${data.ThankYouEnrichingDatabase}` sib-form#resource_creation_form( data-src=`${endpoints.resources}` fields="mandatory_information(header_mandatory, name, country, language, uri,\ - format, fields, author, publication_year, skills),\ + format, fields, resource_author, publication_year, skills),\ complementary_information(header_complementary, description, iframe_link,\ preview_image),classification(header_classification, target, type, steps),\ access(header_access, sharing),related_section(header_related, related)" @@ -39,7 +39,7 @@ p.p_entete=`${data.ThankYouEnrichingDatabase}` label-uri=`${data.LocationWeblinkReq}` label-format=`${data.FormatReq}` label-fields=`${data.FieldRequired}` - label-author=`${data.AuthorReq}` + label-resource_author=`${data.AuthorReq}` label-publication_year=`${data.DatePublication}` label-skills=`${data.SkillReq}` label-description=`${data.Description}` diff --git a/src/includes/mentor/resources/database.pug b/src/includes/mentor/resources/database.pug index 4e69ee403aabefc014d39c2c440133878afac3ea..6d627dcf495c5101cbbf74bd8a1fa814f7adbd01 100644 --- a/src/includes/mentor/resources/database.pug +++ b/src/includes/mentor/resources/database.pug @@ -113,7 +113,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step1}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -141,7 +141,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -169,7 +169,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step2}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -197,7 +197,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -226,7 +226,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step3}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -254,7 +254,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -283,7 +283,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step4}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -311,7 +311,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -339,7 +339,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step5}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -367,7 +367,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -395,7 +395,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step6}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -423,7 +423,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' diff --git a/src/includes/mentor/resources/detail.pug b/src/includes/mentor/resources/detail.pug index 3b41adca093ce474e28b03301c9c071f1fb9254d..558df02ce796ac412c7470ed3094a62b951e5eb2 100644 --- a/src/includes/mentor/resources/detail.pug +++ b/src/includes/mentor/resources/detail.pug @@ -7,13 +7,13 @@ sib-display#detail-mentor( content(preview_image, iframe_link),\ description, review.reviewer.account.picture, review.reviewer,\ copyright, specifications(\ - header_specifications, author, country.name, language.name,\ + header_specifications, resource_author, country.name, language.name,\ publication_year, fields, sharing)', widget-submitter='cs-display-mentor-link', class-name="title_form" class-steps="steps" - widget-author='cs-display-resource-property', + widget-resource_author='cs-display-resource-property', widget-country.name='cs-display-resource-property', widget-submitter.mentorProfile.organisation.name='cs-display-resource-property' class-submitter="resource-author" @@ -59,7 +59,7 @@ sib-display#detail-mentor( name-uri='original-link' label-country.name=`${data.Country} : ` label-submitter.mentorProfile.organisation.name=`${data.Organisation} : ` - label-author=`${data.Author} : ` + label-resource_author=`${data.Author} : ` label-submitter=`${data.ResourcePostedBy}: ` label-review.reviewer=`${data.ResourceValidatedBy}: ` action-broken='resource-report-broken-link-mentor' diff --git a/src/includes/mentor/resources/edit.pug b/src/includes/mentor/resources/edit.pug index f4c592033993eb8582f95e3a4e52867f6af23238..48bfbc4a2964eed5c6145c5dbf149f43b0b3247e 100644 --- a/src/includes/mentor/resources/edit.pug +++ b/src/includes/mentor/resources/edit.pug @@ -7,7 +7,7 @@ p.p_entete=`${data.ThankYouEnrichingDatabase}` bind-resources partial fields="mandatory_information(header_mandatory, name, country, language, uri,\ - format, fields, author, publication_year, skills),\ + format, fields, resource_author, publication_year, skills),\ complementary_information(header_complementary, description, iframe_link,\ preview_image),classification(header_classification, target, type, steps),\ access(header_access, sharing),related_section(header_related, related)" @@ -41,7 +41,7 @@ p.p_entete=`${data.ThankYouEnrichingDatabase}` label-uri=`${data.LocationWeblinkReq}` label-format=`${data.FormatReq}` label-fields=`${data.FieldRequired}` - label-author=`${data.AuthorReq}` + label-resource_author=`${data.AuthorReq}` label-publication_year=`${data.DatePublication}` label-skills=`${data.SkillReq}` label-description=`${data.Description}` diff --git a/src/includes/mentor/resources/list.pug b/src/includes/mentor/resources/list.pug index ff2f6cf65f3d89b368d4d06c8e34f0432d6437d5..a92c8227e5df565919212c1cf9b30eb16111f8cf 100644 --- a/src/includes/mentor/resources/list.pug +++ b/src/includes/mentor/resources/list.pug @@ -46,13 +46,13 @@ div.block_list sib-display#pending_resources( loader-id="loader-review-mentor" data-src=`${endpoints.resources}pending/` - fields='content(name, info(author, publication_year)), validate', + fields='content(name, info(resource_author, publication_year)), validate', widget-publication_year='cs-display-resource-property' label-publication_year='Posted on:' - widget-author='cs-display-resource-property' - label-author='Author:' + widget-resource_author='cs-display-resource-property' + label-resource_author='Author:' action-validate='mentor-resource-validate' label-validate='Check ->' diff --git a/src/includes/mentor/resources/validate.pug b/src/includes/mentor/resources/validate.pug index 76e3c71f94c46d121c60bf2cf08149f4c074bc1a..5bfa5461e1525fb3959516d7e76cd77b7a34562e 100644 --- a/src/includes/mentor/resources/validate.pug +++ b/src/includes/mentor/resources/validate.pug @@ -21,13 +21,13 @@ sib-router submitter.mentorProfile.organisation.name, skills, uri, broken),\ content(preview_image),\ description, copyright, specifications(\ - header_specifications, author, country.name, language.name,\ + header_specifications, resource_author, country.name, language.name,\ publication_year, fields, sharing)', widget-submitter='cs-display-mentor-link', class-name="title_form" class-steps="steps" - widget-author='cs-display-resource-property', + widget-resource_author='cs-display-resource-property', widget-country.name='cs-display-resource-property', widget-submitter.mentorProfile.organisation.name='cs-display-resource-property' class-submitter="resource-author" @@ -69,7 +69,7 @@ sib-router name-uri='original-link' label-country.name=`${data.Country}` label-submitter.mentorProfile.organisation.name=`${data.Organisation}` - label-author=`${data.Author}` + label-resource_author=`${data.Author}` label-submitter=`${data.ResourcePostedBy}: ` action-broken='resource-report-broken-link-mentor' ) diff --git a/src/includes/public/resources/detail.pug b/src/includes/public/resources/detail.pug index 5673177a75557b585a9e6c72196cc07140da72c9..0185a28ad33f103045bb7f6c8a2e12df06921045 100644 --- a/src/includes/public/resources/detail.pug +++ b/src/includes/public/resources/detail.pug @@ -17,13 +17,13 @@ content(preview_image, iframe_link),\ description, review.reviewer.account.picture, review.reviewer,\ copyright, specifications(\ - header_specifications, author, country.name, language.name,\ + header_specifications, resource_author, country.name, language.name,\ publication_year, fields, sharing)', widget-submitter='cs-display-user-link', class-name="title_form" class-steps="steps" - widget-author='cs-display-resource-property', + widget-resource_author='cs-display-resource-property', widget-country.name='cs-display-resource-property', widget-submitter.mentorProfile.organisation.name='cs-display-resource-property' class-submitter="resource-author" @@ -69,7 +69,7 @@ name-uri='original-link' label-country.name=`${data.Country}` label-submitter.mentorProfile.organisation.name=`${data.Organisation}` - label-author=`${data.Author}` + label-resource_author=`${data.Author}` label-submitter=`${data.ResourcePostedBy}: ` label-review.reviewer=`${data.ResourceValidatedBy}: ` action-broken='resource-report-broken-link-public' diff --git a/src/includes/public/resources/list.pug b/src/includes/public/resources/list.pug index 0b3f488802a40b789ea780b069cacb7500d042fe..4a8b77c1d8a127a9d572f41b6f226480564f856f 100644 --- a/src/includes/public/resources/list.pug +++ b/src/includes/public/resources/list.pug @@ -106,7 +106,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step1}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -134,7 +134,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -163,7 +163,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step2}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -191,7 +191,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -221,7 +221,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step3}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -249,7 +249,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -278,7 +278,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step4}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -306,7 +306,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -335,7 +335,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step5}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -363,7 +363,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' @@ -391,7 +391,7 @@ container.block_list.flex.flex_espace sib-display.resource_by_step( data-src=`${endpoints.step6}`, - fields='name, author, format.name, publication_year, description, country, language, fields', + fields='name, resource_author, format.name, publication_year, description, country, language, fields', search-fields='search_for_a_resource(name), more_criterias_hidden(format, publication_year, country, language, fields, type)', search-range-format=`${endpoints.formats}` search-range-language=`${endpoints.languages}` @@ -419,7 +419,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="hidden-widget" + widget-resource_author="hidden-widget" widget-format.name='cs-display-resource-property' label-format.name='' label-language='' diff --git a/src/scripts/coopstarter.js b/src/scripts/coopstarter.js index 5ed9c83a5523b9736387108067a407b04fd7358d..aa7655f2989676e6a25c5affe2b9a563c607588f 100644 --- a/src/scripts/coopstarter.js +++ b/src/scripts/coopstarter.js @@ -665,7 +665,7 @@ function listenToInputChangeOnResourceCreation(originalForm) { let submitInput = originalForm.querySelectorAll('input[type=submit]')[0]; if (originalForm.querySelectorAll('input[name="name"]')[0].value != "" && originalForm.querySelectorAll('input[name="uri"]')[0].value != "" && - originalForm.querySelectorAll('input[name="author"]')[0].value != "" && + originalForm.querySelectorAll('input[name="resource_author"]')[0].value != "" && originalForm.querySelectorAll('textarea[name="skills"]')[0].value != "" && originalForm.querySelectorAll('select[name="fields"]')[0].value != "" && originalForm.querySelectorAll('select[name="target"]')[0].value != "" && @@ -914,12 +914,15 @@ jQuery(document).ready(function($) { //Refresh data list on delete resources const deleteButton = document.querySelectorAll("sib-delete"); for (var i = 0; i < deleteButton.length; i++) { - deleteButton[i].addEventListener("resourceDeleted", e => { + deleteButton[i].addEventListener("resourceDeleted", async(e) => { const historyList = document.getElementById("resources_history"); + let listProxy = await historyList.component.resource; + historyList.dataset.src = historyList.dataset.src; - + // Refresh du cache sur la liste + listProxy.clearCache(); let confirm_suppress = document.getElementById("confirm_suppress"); - confirm_suppress.setAttribute("hidden", "hidden"); + confirm_suppress.setAttribute("hidden", "hidden"); //If we supress from the detail resource view, we close this view. let mentor_resource_detail = document.getElementById( "mentor-resource-detail" @@ -928,7 +931,7 @@ jQuery(document).ready(function($) { this.dispatchEvent( new CustomEvent("requestNavigation", { bubbles: true, - detail: { route: "actions" } + detail: { route: "mentor-dashboard" } }) ); }); diff --git a/src/styles/index.scss b/src/styles/index.scss index 1d4508babdd871dc1e1e1fc8a511a012f13f237f..a37ade7ae1bcbf5496f6b6fc9226b19747b61a88 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -2051,7 +2051,7 @@ XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX*/ margin-top: 2rem; } #mentor-account .block_list.flex, #entrepreneur-account .block_list.flex, #mentor-account-view .block_list.flex, -#entrepreneur-account-view .block_list.flex, #user-account-view .block_list.flex{ +#entrepreneur-account-view .block_list.flex, #user-account-view .block_list.flex, #mentor-resource-create .block_log { margin-bottom: 19rem; } #entrepreneur-request-create sib-set-default[name="complementary_information"] cs-section_header[name="header_complementary"] h2{