Editing existing BTC školovanje
Figma Component: https://www.figma.com/design/NWu7ssnTfTJHFNDy13CnUt/Aplikacija-Vento---UI?node-id=3554-14452
GitHub Issue: #232
Last modified with commit 7a580a0 on
by Aljaž.
The "Uredi BTC školovanje" form (Aktivni and Nadolazeći only). Same fields as Adding new BTC školovanje, prefilled. The Modul 4 end date can't be moved into the past. Candidates who already have data cannot be removed. Saving returns the user to the BTC školovanje list with a success toast.
The user edits a školovanje either from the actions menu on the BTC školovanje list (“Uredi školovanje”) or with the “UREDI ŠKOLOVANJE” button on the BTC školovanje detail page.
Only školovanje records with status Aktivni or Nadolazeći can be edited.
The form has the same fields and validation as Adding new BTC školovanje, prefilled with the current data, with these differences:
- Page title is “Uredi BTC školovanje”
- The CTA button saves the changes
Rules
- The Modul 4 end date cannot be moved into the past (before today). An edit therefore can’t make the školovanje Prošli.
- A candidate who already has any data (e.g. attendance) cannot be removed. The “–” button is not available for that candidate.
- Adding a candidate adds them to every module’s attendance table (Dan 1 and Dan 2).
Saving
When the školovanje is saved, the user is taken to the BTC školovanje list and a success toast notification is shown.