Change design of Visit form to load errors into form #81
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Before this PR, a user would have to go to a patient, and view all visits, in order to see which parts of the Visit form they have submitted have errors / aren't validated. These parts of the form, which we have named 'categories', would be highlighted in red if they had errors. However, when the user clicks on the form, they would have to memorise which parts of the form had errors as this information was not sustained in anyway on the next page by error messages or anything similar.
This PR introduces a colour-coordination to this problem. Any part of the form that has not had information filled into it will appear as dark blue, any part of the form where there are no errors (and the form is valid) will be pink, and any category part of the form where there are errors will show up as red.
This PR also incorporates a couple of minor bug fixes, such as removing rounded corners from the accordion in line with RCPCH styling.
Closes #77