Overview
Classes can be created from two locations in the system:- Classes Section - Full manual configuration
- Calendar (Day View) - Quick creation with pre-filled data
Method 1: Creating from Classes Section
Navigate to the Classes section and click “Nueva Clase” (New Class).Required Information
Type of class:
EQUITACION: Regular riding lessonADIESTRAMIENTO: Horse trainingEQUINOTERAPIA: Equine-assisted therapyMONTA: Free riding (automatically assigns placeholder student)
Student ID (except for MONTA classes)
Instructor ID
Horse ID
Class date in format: YYYY-MM-DD
Start time in format: HH:mm (24-hour)
Duration in minutes: 30 or 60
Optional notes about the class
Method 2: Creating from Calendar
In Calendar Day View, click on an empty cell to create a class quickly.Pre-filled Data
When creating from the calendar:- Day: Automatically set from selected date
- Hour: Automatically set from clicked time slot
- Horse: Automatically set from clicked column
ClaseForm.tsx
~/workspace/source/src/components/forms/ClaseForm.tsx:121-137
Creating from the calendar significantly speeds up the scheduling process by pre-filling time and horse information.
Specialty-Specific Behavior
MONTA Classes
MONTA (free riding) classes have special handling:ClaseForm.tsx
~/workspace/source/src/components/forms/ClaseForm.tsx:166-168
From the README:
Si la especialidad es MONTA: se asigna automáticamente el alumno comodín (ID 1)See:
~/workspace/source/README.md:124
Student Selection by Specialty
ClaseForm.tsx
~/workspace/source/src/components/forms/ClaseForm.tsx:98-103
Automatic Horse Assignment
When a student is selected, the system automatically pre-selects their default horse:ClaseForm.tsx
~/workspace/source/src/components/forms/ClaseForm.tsx:140-152
Private Horse
Automatically selected if student has a private horse
Reserved School Horse
Automatically selected if student has reserved a school horse
Class State
All new classes are automatically created with thePROGRAMADA (scheduled) state:
ClaseForm.tsx
~/workspace/source/src/components/forms/ClaseForm.tsx:86
The initial state cannot be changed during creation. It can be updated after the class is created.
Duration Options
Classes can be scheduled for two durations:~/workspace/source/src/components/forms/ClaseForm.tsx:407-408
Visual Representation
From the README:Clases de 30 minutos:See:Clases de 60 minutos:
- Ocupan una sola franja horaria
- Ejemplo: Clase a las 10:00 ocupa solo la celda 10:00
- Ocupan DOS franjas horarias consecutivas
- Ejemplo: Clase a las 10:00 ocupa celdas 10:00 y 10:30
~/workspace/source/README.md:265-272
Form Example
Complete form structure:ClaseForm.tsx
~/workspace/source/src/components/forms/ClaseForm.tsx:268-474
Validation on Submit
Before creating a class, the system validates:
See the Validations guide for detailed validation rules.
Next Steps
Class Types
Learn about different class specialties
Class States
Understand class state transitions
Trial Classes
Create trial classes for prospective students
Validations
Review validation rules and constraints