Major refactor of Planning Tool component. Primarily focused on setting up the state vars needed in the main PlanningTool wrapper and the first 2 pages of forms.
[x] Preps for having some sort of user info to get the right info to fill out the form (since the unit is required for this component)
[x] Pre-populates exercise-info page when there is a previously saved Unit exercise filled out
[x] Checks all fields are filled in prior to allowing navigation to next page
[x] Page 2 allows user to add a new row for more aircraft, then keeps the total for personnel added up
[x] When clicking Save button, adds the info for each type of aircraft to the DB
TODO:
[ ] Determine how user info will be passed down
[ ] Bring in the locations from the DB instead of the fixture
[ ] Styling of the forms seems to be all over the place
[ ] Pages 3-5 to get the airfare, lodging and meals
P.s. Sorry for the large number of diffs - there were a lot of connected parts as the state vars flow from the main page through the remaining pages.
Major refactor of Planning Tool component. Primarily focused on setting up the state vars needed in the main
PlanningTool
wrapper and the first 2 pages of forms.unit
is required for this component)exercise-info
page when there is a previously saved Unit exercise filled outSave
button, adds the info for each type of aircraft to the DBTODO:
P.s. Sorry for the large number of diffs - there were a lot of connected parts as the state vars flow from the main page through the remaining pages.