dotCMS/dotCMS — pull request #1045 by oswaldogallango (2012-08-31 16:35:39+00:00)
Title: #1038

This branch include the following changes:
- Included custom error messages per field.
- Included custom fields rendering and validation.
- Fixed javascript bug when you click next and previous buttons:
* Error 1.- Clicking "Next" takes users from one tab to the bottom of the next one forcing them to scroll up to keep filling the form.
* Error 2.- If user misses one required field and press "Next" button, it will go to the top of the screen. User has to scroll down the screen to find what they miss.
* Error 3.- Required condition for custom fields is not validated.

These are the files modified:
src\com\dotmarketing\viewtools\SubmitContentWebAPI.java
src\com\dotmarketing\cms\content\submit\action\SubmitContentAction.java
src\com\dotmarketing\cms\content\submit\util\SubmitContentUtil.java
dotCMS\html\js\content\content_form_macro.js
dotCMS\WEB-INF\velocity\static\content\custom_field_render.vtl
dotCMS\WEB-INF\velocity\static\content\content_form_macro.vtl
dotCMS\dotCMS\WEB-INF\toolbox.xml