diff --git a/frontend/app/components/InternshipEditor.vue b/frontend/app/components/InternshipEditor.vue index 256b86a..29654cb 100644 --- a/frontend/app/components/InternshipEditor.vue +++ b/frontend/app/components/InternshipEditor.vue @@ -90,11 +90,22 @@ function triggerSubmit() { year_of_study: form.value.year_of_study, semester: form.value.semester === "Zimný" ? "WINTER" : "SUMMER", position_description: form.value.description - } + }; props.submit(new_internship); } +function companyListProps(company: CompanyData) { + return { + title: company.name, + subtitle: `IČO: ${company.ico}, Zodpovedný: ${company.contact.name}, ${!company.hiring ? "ne" : ""}prijímajú nových študentov` + }; +} + +function yearOfStudyValueHandler(item: { title: string, subtitle: string }) { + return parseInt(item.title) || 0; +} + const { data, error } = await useSanctumFetch('/api/companies/simple'); @@ -105,16 +116,25 @@ const { data, error } = await useSanctumFetch('/api/companies/sim + :item-value="yearOfStudyValueHandler" :rules="[rules.required]"> - + - + + + + + + + + + @@ -130,4 +150,8 @@ form { width: 80%; margin: 0 auto; } + +.alert { + margin-bottom: 10px; +} diff --git a/frontend/app/pages/dashboard/student/internship/create.vue b/frontend/app/pages/dashboard/student/internship/create.vue index c0a5a4e..8aca6dd 100644 --- a/frontend/app/pages/dashboard/student/internship/create.vue +++ b/frontend/app/pages/dashboard/student/internship/create.vue @@ -1,5 +1,5 @@ @@ -33,4 +59,8 @@ const user = useSanctumUser(); padding-right: 10px; padding-bottom: 10px; } + +.alert { + margin-bottom: 10px; +} \ No newline at end of file