diff --git a/backend/api/models/MentorProfile.py b/backend/api/models/MentorProfile.py index 510141c01..82a88200a 100644 --- a/backend/api/models/MentorProfile.py +++ b/backend/api/models/MentorProfile.py @@ -33,6 +33,7 @@ class MentorProfile(Document, Mixin): pair_partner = DictField(required=False) preferred_language = StringField(required=False, default="en-US") roomName = StringField(required=False) + organization = StringField(required=False) def __repr__(self): return f""" state.options); + const [partnerOptions, setPartnerOptions] = useState([]); + + useEffect(() => { + async function getPartners() { + const partenr_data = await fetchPartners(undefined, null); + var temp_partner_options = []; + partenr_data.map((item) => { + temp_partner_options.push({ + value: item._id.$oid, + label: item.organization, + }); + return true; + }); + temp_partner_options.push({ + value: null, + label: t("commonApplication.no-affiliation"), + }); + setPartnerOptions(temp_partner_options); + setloading(false); + } + getPartners(); + }, []); const onFinish = async (values) => { setloading(true); @@ -37,6 +59,8 @@ function MentorApplication({ email, role, onSubmitFailure, onSubmitSuccess }) { pastLiveLocation: values.previousLocations, date_submitted: new Date(), specializations: values.specializations, + organization: values.organization, + partner: values.partner, role, }; const res = await createApplication(data); @@ -375,6 +399,24 @@ function MentorApplication({ email, role, onSubmitFailure, onSubmitSuccess }) { tokenSeparators={[","]} /> + + + {t("commonProfile.education")}