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.
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 theSave
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 enterswww.google.com
as the website instead ofhttps://www.google.com
(for example). The count is also dynamic in the event there were multiple errors returned.Closes #13 Closes #14