mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
feat: Ajout de la fratrie / Gestion des index de fratrie / Gestion des
required
This commit is contained in:
@ -82,18 +82,18 @@ export default function PaymentMethodSelector({
|
||||
label="Mode de Paiement"
|
||||
placeHolder="Sélectionner un mode de paiement"
|
||||
selected={formData.registration_payment}
|
||||
callback={(e) => onChange('registration_payment', e.target.value)}
|
||||
callback={(e) =>
|
||||
onChange('registration_payment', parseInt(e.target.value, 10))
|
||||
}
|
||||
choices={registrationPaymentModes.map((mode) => ({
|
||||
value: mode.mode,
|
||||
label:
|
||||
paymentModesOptions.find((option) => option.id === mode.mode)
|
||||
?.name || 'Mode inconnu',
|
||||
}))}
|
||||
errorMsg={getError('registration_payment')}
|
||||
errorLocalMsg={getLocalError('registration_payment')}
|
||||
required
|
||||
errorMsg={
|
||||
getError('registration_payment') ||
|
||||
getLocalError('registration_payment')
|
||||
}
|
||||
/>
|
||||
|
||||
<RadioList
|
||||
@ -143,17 +143,18 @@ export default function PaymentMethodSelector({
|
||||
label="Mode de Paiement"
|
||||
placeHolder="Sélectionner un mode de paiement"
|
||||
selected={formData.tuition_payment}
|
||||
callback={(e) => onChange('tuition_payment', e.target.value)}
|
||||
callback={(e) =>
|
||||
onChange('tuition_payment', parseInt(e.target.value, 10))
|
||||
}
|
||||
choices={tuitionPaymentModes.map((mode) => ({
|
||||
value: mode.mode,
|
||||
label:
|
||||
paymentModesOptions.find((option) => option.id === mode.mode)
|
||||
?.name || 'Mode inconnu',
|
||||
}))}
|
||||
errorMsg={getError('tuition_payment')}
|
||||
errorLocalMsg={getLocalError('tuition_payment')}
|
||||
required
|
||||
errorMsg={
|
||||
getError('tuition_payment') || getLocalError('tuition_payment')
|
||||
}
|
||||
/>
|
||||
|
||||
<RadioList
|
||||
@ -167,7 +168,10 @@ export default function PaymentMethodSelector({
|
||||
label: option.name,
|
||||
}))}
|
||||
formData={formData}
|
||||
handleChange={(e) => onChange('tuition_payment_plan', e.target.value)}
|
||||
handleChange={(e) => {
|
||||
const value = parseInt(e.target.value, 10);
|
||||
onChange('tuition_payment_plan', value); // Convertir la valeur en entier
|
||||
}}
|
||||
fieldName="tuition_payment_plan"
|
||||
className="mt-4"
|
||||
errorMsg={
|
||||
|
||||
Reference in New Issue
Block a user