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

Some fixes

parent ee5d47ef
No related branches found
No related tags found
No related merge requests found
......@@ -5,12 +5,13 @@ sib-form#mentor_profile_edition.block_log.block_creat_count(
fields="account_information(last_name, first_name, mentorProfile.organisation,\
mentorProfile.phone, mentorProfile.languages, mentorProfile.fields),\
about_you(header_about_you, account.picture, mentorProfile.headline, mentorProfile.city, mentorProfile.country,\
mentorProfile.biography, mentorProfile.skills, resources),\
mentorProfile.biography, mentorProfile.skills),\
social_media(header_social_media, mentorProfile.linkedin, mentorProfile.twitter), username"
range-mentorProfile.fields=`${endpoints.fields}`
range-mentorProfile.organisation=`${endpoints.organisations}`
range-mentorProfile.languages=`${endpoints.languages}`
range-mentorProfile.country=`${endpoints.countries}`
label-header_about_you=`${data.AboutYou}`
label-header_social_media=`${data.AboutYou}`
......@@ -37,7 +38,9 @@ sib-form#mentor_profile_edition.block_log.block_creat_count(
widget-mentorProfile.skills="sib-form-textarea"
widget-mentorProfile.biography="sib-form-textarea"
widget-username="sib-form-hidden"
widget-resources="hidden-widget"
class-mentorProfile.country='form-label is-dark'
widget-mentorProfile.country='sib-form-auto-completion'
class-mentorProfile.organisation='form-label is-dark'
widget-mentorProfile.organisation='sib-form-auto-completion'
......
......@@ -93,7 +93,9 @@ function refreshList(formId, listId) {
let form = document.getElementById(formId);
form.addEventListener("save", event => {
let list = document.getElementById(listId);
console.log(list, list.component);
list.dataset.src = list.dataset.src;
list.component.resource.clearCache();
});
}
......@@ -582,13 +584,15 @@ jQuery(document).ready(function($) {
//Retrieve the current user
let userAccountDataSrc = document.getElementById("user-account-picture");
//Add the current user as reviewer.
linkDatasetToField(userAccountDataSrc, "validation-form", "reviewer");
linkDatasetToField(userAccountDataSrc, "improvement-dialog-form", "reviewer");
linkDatasetToField(userAccountDataSrc, "refusal-dialog-form", "reviewer");
linkDatasetToField(userAccountDataSrc, "change_status_request", "reviewer");
// linkDatasetToField(userAccountDataSrc, "add-like", "sender");
// linkDatasetToField(userAccountDataSrc, "add-dislike", "sender");
if (userAccountDataSrc) {
//Add the current user as reviewer.
linkDatasetToField(userAccountDataSrc, "validation-form", "reviewer");
linkDatasetToField(userAccountDataSrc, "improvement-dialog-form", "reviewer");
linkDatasetToField(userAccountDataSrc, "refusal-dialog-form", "reviewer");
linkDatasetToField(userAccountDataSrc, "change_status_request", "reviewer");
// linkDatasetToField(userAccountDataSrc, "add-like", "sender");
// linkDatasetToField(userAccountDataSrc, "add-dislike", "sender");
}
//On form submission, we sometime have to refresh a list.
refreshList("resource-creation-form", "resources-history");
......
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