mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
refactor: je suis une merde
This commit is contained in:
@ -42,7 +42,7 @@ const AffectationClasseForm = ({ eleve, onSubmit, classes }) => {
|
||||
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={`classe-${classe.id}`} className="ml-2 block text-sm text-gray-900 flex items-center">
|
||||
{classe.nom_ambiance}
|
||||
{classe.atmosphere_name}
|
||||
</label>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@ -125,11 +125,11 @@ const ClassForm = ({ onSubmit, isNew, teachers }) => {
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<InputTextIcon
|
||||
name="nom_ambiance"
|
||||
name="atmosphere_name"
|
||||
type="text"
|
||||
IconItem={Users}
|
||||
placeholder="Nom de l'ambiance"
|
||||
value={formData.nom_ambiance}
|
||||
value={formData.atmosphere_name}
|
||||
onChange={handleChange}
|
||||
className="w-full"
|
||||
/>
|
||||
|
||||
@ -151,7 +151,7 @@ const ClassesSection = ({ classes, teachers, handleCreate, handleEdit, handleDel
|
||||
<Users className="w-8 h-8 mr-2" />
|
||||
{editingClass ? (
|
||||
<>
|
||||
{editingClass.nom_ambiance} - {editingClass.age_range[0]} à {editingClass.age_range[1]} ans
|
||||
{editingClass.atmosphere_name} - {editingClass.age_range[0]} à {editingClass.age_range[1]} ans
|
||||
</>
|
||||
) : ''}
|
||||
</div>
|
||||
|
||||
@ -7,7 +7,7 @@ const ClassesList = ({ classes, onClassSelect, selectedClassId }) => {
|
||||
const currentSchoolYearStart = currentMonth >= 8 ? currentYear : currentYear - 1;
|
||||
|
||||
const handleClassClick = (classe) => {
|
||||
console.log(`Classe sélectionnée: ${classe.nom_ambiance}, Année scolaire: ${classe.school_year}`);
|
||||
console.log(`Classe sélectionnée: ${classe.atmosphere_name}, Année scolaire: ${classe.school_year}`);
|
||||
onClassSelect(classe);
|
||||
};
|
||||
|
||||
@ -44,7 +44,7 @@ const ClassesList = ({ classes, onClassSelect, selectedClassId }) => {
|
||||
onClick={() => handleClassClick(classe)}
|
||||
style={{ maxWidth: '400px' }}
|
||||
>
|
||||
<div className="flex-1 text-sm font-medium">{classe.nom_ambiance}</div>
|
||||
<div className="flex-1 text-sm font-medium">{classe.atmosphere_name}</div>
|
||||
<div className="flex-1 text-sm font-medium">{classe.school_year}</div>
|
||||
</div>
|
||||
))}
|
||||
@ -62,7 +62,7 @@ const ClassesList = ({ classes, onClassSelect, selectedClassId }) => {
|
||||
onClick={() => handleClassClick(classe)}
|
||||
style={{ maxWidth: '400px' }}
|
||||
>
|
||||
<div className="flex-1 text-sm font-medium">{classe.nom_ambiance}</div>
|
||||
<div className="flex-1 text-sm font-medium">{classe.atmosphere_name}</div>
|
||||
<div className="flex-1 text-sm font-medium">{classe.school_year}</div>
|
||||
</div>
|
||||
))}
|
||||
|
||||
@ -125,7 +125,7 @@ const ScheduleManagement = ({ handleUpdatePlanning, classes }) => {
|
||||
setActiveTab={handleClassSelect}
|
||||
tabs={categorizedClasses['Actives'].map(classe => ({
|
||||
id: classe.id,
|
||||
title: classe.nom_ambiance,
|
||||
title: classe.atmosphere_name,
|
||||
icon: Users
|
||||
}))}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user