File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,29 @@ def bootstrap_field(*args, **kwargs):
404
404
405
405
:default: ``'col-md-9'``. Can be changed in :doc:`settings`
406
406
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
+
407
430
**Usage**::
408
431
409
432
{% bootstrap_field field %}
You can’t perform that action at this time.
0 commit comments