Skip to content

Commit 509c6dd

Browse files
committed
Extra bootstrap_field arguments
Add tag arguments that were missing
1 parent d8ce3ad commit 509c6dd

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

bootstrap3/templatetags/bootstrap3.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,29 @@ def bootstrap_field(*args, **kwargs):
404404
405405
:default: ``'col-md-9'``. Can be changed in :doc:`settings`
406406
407+
addon_before
408+
Text that should be prepended to the form field. See the `Bootstrap docs <http://getbootstrap.com/components/#input-groups-basic>`_
409+
for an example.
410+
411+
addon_after
412+
Text that should be appended to the form field. See the `Bootstrap docs <http://getbootstrap.com/components/#input-groups-basic>`_
413+
for an example.
414+
415+
error_css_class
416+
CSS class used when the field has an error
417+
418+
:default: ``'has-error'``. Can be changed :doc:`settings`
419+
420+
required_css_class
421+
CSS class used on the ``div.form-group`` to indicate a field is required
422+
423+
:default: ``''``. Can be changed :doc:`settings`
424+
425+
bound_css_class
426+
CSS class used when the field is bound
427+
428+
:default: ``'has-success'``. Can be changed :doc:`settings`
429+
407430
**Usage**::
408431
409432
{% bootstrap_field field %}

0 commit comments

Comments
 (0)