Merge branch 'main' into Onboarding-Reworko
Some checks failed
Continuous Deployment / Update Deployment (push) Failing after 1m10s
Some checks failed
Continuous Deployment / Update Deployment (push) Failing after 1m10s
This commit is contained in:
@@ -18,10 +18,12 @@ import FieldSet from '../ui/field/FieldSet.vue'
|
||||
import FieldLegend from '../ui/field/FieldLegend.vue'
|
||||
import FieldDescription from '../ui/field/FieldDescription.vue'
|
||||
import Checkbox from '../ui/checkbox/Checkbox.vue'
|
||||
import { configure } from 'vee-validate'
|
||||
|
||||
|
||||
const { handleSubmit, resetForm, errors, values, setFieldValue } = useForm({
|
||||
validationSchema: toTypedSchema(trainingReportSchema),
|
||||
validateOnMount: false,
|
||||
initialValues: {
|
||||
course_id: null,
|
||||
event_date: "",
|
||||
@@ -129,8 +131,17 @@ onMounted(async () => {
|
||||
|
||||
<VeeFieldArray name="attendees" v-slot="{ fields, push, remove }">
|
||||
<FieldSet class="gap-4">
|
||||
<FieldLegend class="scroll-m-20 text-lg tracking-tight">Attendees</FieldLegend>
|
||||
<FieldDescription>Add members who attended this session.</FieldDescription>
|
||||
<div class="flex flex-col gap-2">
|
||||
<FieldLegend class="scroll-m-20 text-lg tracking-tight mb-0">Attendees</FieldLegend>
|
||||
<FieldDescription class="mb-0">Add members who attended this session.</FieldDescription>
|
||||
<div class="h-4">
|
||||
<div class="text-red-500 text-sm"
|
||||
v-if="errors.attendees && typeof errors.attendees === 'string'">
|
||||
{{ errors.attendees }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<FieldGroup class="gap-4">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user