mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
feat: Ajout des payementPlans dans le formulaire / ajout de la photo
This commit is contained in:
@ -51,6 +51,8 @@ export default function StudentInfoForm({
|
||||
level: data?.student?.level || '',
|
||||
registration_payment: data?.registration_payment || '',
|
||||
tuition_payment: data?.tuition_payment || '',
|
||||
registration_payment_plan: data?.registration_payment_plan || '',
|
||||
tuition_payment_plan: data?.tuition_payment_plan || '',
|
||||
totalRegistrationFees: data?.totalRegistrationFees,
|
||||
totalTuitionFees: data?.totalTuitionFees,
|
||||
});
|
||||
@ -96,7 +98,8 @@ export default function StudentInfoForm({
|
||||
(!formData.attending_physician ||
|
||||
formData.attending_physician.trim() === '')) ||
|
||||
(field === 'level' &&
|
||||
(!formData.level || String(formData.level).trim() === ''))
|
||||
(!formData.level || String(formData.level).trim() === '')) ||
|
||||
(field === 'photo' && !formData.photo)
|
||||
) {
|
||||
return 'Champs requis';
|
||||
}
|
||||
@ -230,6 +233,9 @@ export default function StudentInfoForm({
|
||||
<FileUpload
|
||||
selectionMessage="Sélectionnez une photo à uploader"
|
||||
onFileSelect={(file) => handlePhotoUpload(file)}
|
||||
existingFile={formData.photo}
|
||||
required
|
||||
errorMsg={getError('photo') || getLocalError('photo')}
|
||||
/>
|
||||
</div>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user