concrete5/concrete5 — pull request #587 by JohntheFish (2012-07-18 08:51:59+00:00)
Title: Selectively enable/disable data continuity/prersistence and selectively ...

...enable/disable id output. Defaults to compatibility with previous form helper.

Facility to turn of id attributes for better validation and avoiding dom errors from duplicate ids.
Enable/disable ID output (default enabled)
enableIdOutput()
disableIdOutput()

Facility to turn off data continuity/prersistence for more flexible use in dialogs and single pages.
Enable/disable data continuity/prersistence etc (default enabled)
enableFormContinuity()
disableFormContinuity()

To facilitate further expansion, method inputType() is now public.

The new code is simple but verbose as it just wraps much of the existing code in tests for these conditions rather than be too clever and add to already tortuous logic.