Managing reservations
Last modified with commit 305c859 on
by Tjasa Simovic.
New reservation modal can be opened in two ways:
- The “+ Nova rezervacija” button at the top of the Kalendar zauzetosti page opens with vehicle and dates empty, to be filled in manually.
- Clicking an empty cell on the calendar pre-fills vehicle from the row and start date from the day clicked.
Form fields:
- Vehicle (Vozilo) - searchable dropdown, mandatory
- Period (Od / Do) - date fields, mandatory
- Name / company (Ime i prezime / tvrtka) - text field, mandatory
- Contact info (Email / Telefon) - text field, optional
Vehicle dropdown shows brand, model and registration plate together, for example “Seat Leon FR ST-789-CC”. Archived vehicles are not shown.
Period defines the reservation period.
If the vehicle is not available in the selected period, we show error message “Vozilo nije dostupno u odabranom razdoblju.”
Clicking “Spremi rezervaciju” saves the reservation, which then appears as a new bar on the calendar for that vehicle and date range.
User can edit existing reservations. Same modal window as for new reservation opens, with the title “Rezervacija” and pre-filled fields.
User can delete reservation. Modal window for confirmation appears.