LeStarch / repair-cafe-app

A second revision of the repair-cafe app using Aurelia!
3 stars 0 forks source link

Add Error Feedback #13

Open LeStarch opened 10 months ago

LeStarch commented 10 months ago

We need to add error feedback to the form that attendees use to add tickets see (https://lestarch.github.io/repair-cafe-app). Specifically, if a required field is omitted or an email address is not of the form (something@something.something).

This is typically done by adding a hidden div for each input that uses a alert-danger bootstrap class. This should contain a v-show attribute to render it only when there is an error. The error data should be bound to a custom validation function which sets a solid error.

Something similar is done to report success: https://github.com/LeStarch/repair-cafe-app/blob/4fbbffb44450f028339c7e3277ad4c64a605996f/src/views/repairs/update.template.js#L47-L49