dyve/django-bootstrap-toolkit — Issue #9: should field_errors.html be included before field_help.html?
Author: devfeng
Created: 2012-02-11 22:11:14+00:00
State: open

With current implementation, in horizontal form, field error message is rendered after field help. By default the help message is block, thus it causes the error message to be rendered as a new line under the help info. What I want is to display the error message at the right of a field, and help message under the field.

The "inline" in template seems to controls help layout (inline or block), as well as error (opposite to help), however in either case the help is always rendered before error.

I know I can change the rendering order in template, but still I was wondering if there is a better way to take care of it automatically, for both cases. Say if help is block and error is inline, the field error message should then be rendered before help. On the other hand, if help is inline and error is block, then help is rendered first.

Now the "inline" is hard-coded in template based on form style. It would be great if there is a way to gain more control over it (but not too much complication).