-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Clojure Web Development Essentials
By :
Our pointy-haired marketing wizard (me) has decided that our hipstr application requires the ability to add a new artist and album (with a release date). The form should be validated, ensuring that all of the data is appropriate, before sending it off to the database. If, for whatever reason, the inserts into the database fail, then nothing should be changed. Also, if there are any validation errors with the form, we want to show an appropriate message to the user. Finally, I want to be able to use this form anywhere in the site with minimal modifications and maximum code reuse. (Say whaaaaaaat?!)
Let's brainstorm what this magical and revolutionary piece of functionality should look like. Based on what currently exists, the following idea should suffice:

This seems pretty doable, and it satisfies all of our requirements. First things first though: Let's create the HTML for the form.
Change the font size
Change margin width
Change background colour