implement a 2-step single page application, which contains some custom forms. Fields in this forms will consist of required passenger data.
In the application there will be two different steps, one for adding primary passengers data and other for adding secondary passengers (Family) data. Primary passenger is the leading one, we need a lot of data about him. Secondary passenger requires less, but should be able to include several passengers data at once.
Full Name
Age
Address (Country select + Street + Index/Zip)
Phone Number
Full Name
Age
Add one more passenger button / Remove passenger (only if there is several forms)
-
Steps should contain form/step validation (not supposed to submit empty forms or invalid email etc.)
-
Every step should have a navigation capability, which submits a form on every step (ability to move backwards and forwards f.e “back” / “next”)
-
The second step should have the ability to add and remove secondary passengers dynamically. Can be submitted with one passenger as with several passengers, all fields should be simply validated though (f.e. age should be a number).
-
After submitting the second step notify the user with success message.