Overview
The horse management system allows you to register and manage two types of horses:- School Horses (ESCUELA): Owned by the school, available for all students
- Private Horses (PRIVADO): Owned by individual students
Registering a New Horse
Horses are registered through the Horses section (Caballos). This is a prerequisite when:- A student has their own horse
- A student wants to reserve a specific school horse
- Adding a new horse to the school’s inventory
Required Information
When registering a horse, you need to provide the following:The horse’s name
Type of horse:
ESCUELA: School-owned horse, available for all studentsPRIVADO: Privately-owned horse, belongs to a specific student
Availability status. Automatically set to available when created.
Code Example
The horse registration form is implemented inCaballoForm.tsx:
CaballoForm.tsx
~/workspace/source/src/components/forms/CaballoForm.tsx:17-21
Automatic Association
Once a horse is registered, it can be automatically associated with a student:Private Horse
Linked to the student as the owner
School Reservation
Linked to the student as a reserved horse
Managing Horse Availability
Availability Toggle
When editing an existing horse, you can toggle its availability:CaballoForm.tsx
~/workspace/source/src/components/forms/CaballoForm.tsx:90-99
Horse Display
Horses are displayed in both table and card views in the system:Table View
Columns displayed:- Name: Horse’s name
- Type: Badge indicating ESCUELA (School) or PRIVADO (Private)
- Availability: Badge showing available/unavailable status
- Actions: Edit and delete options
Card View
Each horse card shows:- Horse name as title
- Type (School/Private)
- Availability status with color-coded badge
~/workspace/source/src/pages/Caballos.tsx:233-285
Validation Rules
Name Validation
Name Validation
The horse name is required and must not be empty.
Type Selection
Type Selection
Must select either ESCUELA or PRIVADO. Defaults to ESCUELA.
Availability Default
Availability Default
New horses are automatically marked as available (true).
Next Steps
School vs Private Horses
Learn about the differences between school and private horses
Horse Availability
Understand how horse availability affects class scheduling