- add notes
This commit is contained in:
@@ -32,6 +32,7 @@ const form = useForm({
|
||||
mission: missionToString,
|
||||
rodo: null,
|
||||
position: null,
|
||||
notes: null,
|
||||
});
|
||||
|
||||
function createCV() {
|
||||
@@ -85,15 +86,23 @@ function createCV() {
|
||||
/>
|
||||
<Input
|
||||
id="position"
|
||||
label="Stanowisko"
|
||||
label="Stanowisko (opcjonalne)"
|
||||
placeholder="Stanowisko na jakie jest rekrutacja."
|
||||
v-model="form.position"
|
||||
:error="form.errors.position"
|
||||
/>
|
||||
<Input
|
||||
id="notes"
|
||||
type="textarea"
|
||||
label="Notatki (opcjonalne)"
|
||||
placeholder="Notatka dla administratora"
|
||||
v-model="form.notes"
|
||||
:error="form.errors.notes"
|
||||
/>
|
||||
<Input
|
||||
id="mission"
|
||||
type="textarea"
|
||||
label="Misja - wstęp"
|
||||
label="Misja - wstęp (opcjonalne)"
|
||||
placeholder="Krótki opis, list motywacyjny."
|
||||
v-model="form.mission"
|
||||
:error="form.errors.mission"
|
||||
@@ -101,7 +110,7 @@ function createCV() {
|
||||
<Input
|
||||
id="rodo"
|
||||
type="textarea"
|
||||
label="RODO"
|
||||
label="RODO (opcjonalne)"
|
||||
placeholder="Klauzula informacyjna RODO"
|
||||
v-model="form.rodo"
|
||||
:error="form.errors.rodo"
|
||||
|
@@ -39,6 +39,7 @@ const form = useForm({
|
||||
mission: missionToString,
|
||||
rodo: props.cv.rodo,
|
||||
position: props.cv.position,
|
||||
notes: props.cv.notes,
|
||||
});
|
||||
|
||||
function updateCV() {
|
||||
@@ -103,6 +104,14 @@ function updateCV() {
|
||||
v-model="form.position"
|
||||
:error="form.errors.position"
|
||||
/>
|
||||
<Input
|
||||
id="notes"
|
||||
type="textarea"
|
||||
label="Notatki (opcjonalne)"
|
||||
placeholder="Notatka dla administratora"
|
||||
v-model="form.notes"
|
||||
:error="form.errors.notes"
|
||||
/>
|
||||
<Input
|
||||
id="mission"
|
||||
type="textarea"
|
||||
|
@@ -1,5 +1,7 @@
|
||||
<script setup>
|
||||
defineProps({
|
||||
import { computed } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
cv: {
|
||||
type: Object,
|
||||
required: true,
|
||||
@@ -11,6 +13,10 @@ defineProps({
|
||||
});
|
||||
|
||||
const CV_URL = import.meta.env.VITE_CV_APP_URL;
|
||||
const cvNotes = computed(() => {
|
||||
const notes = props.cv.notes;
|
||||
return notes ? props.cv.notes.split("\n") : null;
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -75,6 +81,15 @@ const CV_URL = import.meta.env.VITE_CV_APP_URL;
|
||||
<div class="text-gray-500 pb-0.5">Lokalizacje</div>
|
||||
<p class="w-full min-w-full max-w-full px-2.5 py-2 border-b-2 rounded-md bg-white">{{ cv.locations.join(' / ') }}</p>
|
||||
</div>
|
||||
<div class="md:col-span-2">
|
||||
<div v-if="cvNotes" class="text-gray-500 pb-0.5">Notatki</div>
|
||||
<div class="w-full min-w-full max-w-full px-2.5 py-2 border-b-2 rounded-md bg-white">
|
||||
<p
|
||||
v-for="(noteLine, key) in cvNotes"
|
||||
:key="key"
|
||||
>{{ noteLine }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-4">
|
||||
|
Reference in New Issue
Block a user