Add a wombat

Tags
Challenge
No

Make a form with validation to add a new wombat to the DB. The form looks like this to start:

MT form

Name is required. The others are optional. Weight must be a number, greater than 0. If there are errors, show the form again, with error messages, and the data the user entered. For example:

Errors

If the data is OK, add the wombat to the DB, and show it, with a link back to the add form.

Output

You can try my solution. The actual save is disabled on mine, but yours should work.

Submit the URL of your solution, and a zip of your files. The usual coding standards apply.

Where referenced