nswalters / AppTrakz-Client

React Client for AppTrakz application for documenting the job application process.
0 stars 0 forks source link

Nw enh/13 14/create form #60

Closed nswalters closed 3 years ago

nswalters commented 3 years ago

This PR creates the /create page which is the endpoint for the Company and Job creation forms. Also updated some styling on the companies/jobs/applications pages to match the format of the create page.

Additionally, I returned the fetch promise to the CreateForm page where I called them so that I could process error messages and show them. Those will now show up just below the Save buttons after the user submits data which is invalid and they will contain a reference to the incorrect field as well as the error message. Example shown below of when a user enters www.google.com as the website instead of https://www.google.com (for example). The count is also dynamic in the event there were multiple errors returned.

image

Closes #13 Closes #14