Activities tracking (dual-timestamp activities)
Last modified with commit 305c859 on
by Tjasa Simovic.
Dual-timestamp activities are used for activities where start and end time are both needed.
Example:
- Test drive
Starting the activity:
- Promotor clicks “Pokreni aktivnost” on Test drive on the invitee profile.
- A modal window opens with registration plate, start date and time, and comment.
- Registration plate is selected from vehicles assigned to the event.
- Start date and time are pre-filled with current date and time and can be changed by the promotor.
- Comment is optional.
- Promotor clicks “Spremi” to confirm.
- Activity on invitee profile is marked as started and the button changes to “Završi aktivnost”.
If the selected vehicle is currently assigned to another invitee, notification appears:
“Ovo vozilo ima aktivnost u tijeku s korisnikom [ime korisnika]. Ako dodijelite ovo vozilo novom pozvaniku, ta aktivnost će automatski biti završena.”
If the promotor confirms, the other invitee’s test drive is automatically marked as finished, end time is set to now, and the new test drive starts for the new invitee.
Ending the activity:
- Promotor clicks “Završi aktivnost” on the invitee profile.
- A modal window opens with registration plate, end date and time, and comment.
- Registration plate is pre-filled and read-only.
- End date and time are pre-filled with current date and time and can be changed by the promotor.
- Comment is optional.
- Promotor clicks “Spremi” to confirm.
- Activity is marked as completed and added to the activity log.
Activity log shows:
- Registration plate
- Start time
- End time
- Comment
An unlimited number of test drives can be tracked per invitee.
Activity information cannot be edited after saving.