rcpch / national-paediatric-diabetes-audit

A django application to audit the care of children and young people with diabetes in England and Wales.
0 stars 1 forks source link

Change design of Visit form to load errors into form #81

Closed dc2007git closed 1 month ago

dc2007git commented 1 month ago

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