mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
fix: Correction de la désactivation des spécialités lorsqu'on
sélectionne un enseignant [#2]
This commit is contained in:
@ -22,7 +22,6 @@ const ClassForm = ({ classe, onSubmit, isNew, specialities, teachers }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleSliderChange = (value) => {
|
const handleSliderChange = (value) => {
|
||||||
console.log('update value : ', value)
|
|
||||||
setFormData(prevFormData => ({
|
setFormData(prevFormData => ({
|
||||||
...prevFormData,
|
...prevFormData,
|
||||||
tranche_age: value
|
tranche_age: value
|
||||||
@ -161,7 +160,7 @@ const ClassForm = ({ classe, onSubmit, isNew, specialities, teachers }) => {
|
|||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
className="form-radio h-3 w-3 text-emerald-600 focus:ring-emerald-500 hover:ring-emerald-400 checked:bg-emerald-600 checked:h-3 checked:w-3"
|
className="form-radio h-3 w-3 text-emerald-600 focus:ring-emerald-500 hover:ring-emerald-400 checked:bg-emerald-600 checked:h-3 checked:w-3"
|
||||||
/>
|
/>
|
||||||
<label htmlFor={`speciality-${teacher.id}`} className="ml-2 block text-sm text-gray-900 flex items-center">
|
<label htmlFor={`teacher-${teacher.id}`} className="ml-2 block text-sm text-gray-900 flex items-center">
|
||||||
{teacher.nom} {teacher.prenom}
|
{teacher.nom} {teacher.prenom}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user