Kotti / deform_bootstrap

Bootstrap compatible templates for the deform form library. (Merged into deform 2.)
http://pypi.python.org/pypi/deform_bootstrap
34 stars 30 forks source link

Omit the `div.form-actions` tag from inline forms. #42

Closed thruflo closed 11 years ago

thruflo commented 11 years ago

To render an inline-form, it's current possible to pass in:

However, it's not currently possible to pass in a kwarg to stop rendering the div.form-actions container around your buttons, as per the markup recommended by the bootstrap "Inline Form" docs: http://twitter.github.com/bootstrap/base-css.html#forms

This patch fixes the issue by tal:omit-taging the div.form-actions element if field.bootstrap_form_style == 'form-inline'.

dnouri commented 11 years ago

Thanks