PrimeRevenue/tent — pull request #69 by niallfallon (2012-11-12 14:15:34+00:00)
Title: Feature/custom widget validation

Allows validators to be written and assigned to widget views.
e.g. {{Tent.MyView validators="thisyear,weekday"}}

Error messages will be displayed in the message panel for validations that are invalid.
Clicking error messages will move focus to the offending field.

Validators may be applied as warnings
e.g. {{Tent.MyView warnings="thisyear,weekday"}}

In this case, they will display warning messages when invalid.
Fields with warnings are highlighted with a warning color.
Clicking warnings will move focus to the offending field.

Warnings may have a severity level
{{Tent.MyView warnings="weekday" warningseverity="high"}}
If 'high' then the user may be prompted before continuing with unresolved warnings.

Prompts will occur only when the submit button has the 'warn' flag set to true.
{{view Tent.Button label="Submit" validate=true warn=true}}

Warning messages can be closed by clicking on the 'x' button. This will disable the warning for that widget, so no further prompts will be triggered for that warning.