Skip to content

Commit

Permalink
Merge pull request #305 from johnfraney/patch-1
Browse files Browse the repository at this point in the history
Add addon_before/addon_after icon example
  • Loading branch information
Dylan Verheul committed Oct 25, 2016
2 parents 8ed8703 + 76968aa commit c376478
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions bootstrap3/templatetags/bootstrap3.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,16 @@ def bootstrap_field(*args, **kwargs):
:default: ``'col-md-9'``. Can be changed in :doc:`settings`
addon_before
Text that should be prepended to the form field. See the `Bootstrap docs <http://getbootstrap.com/components/#input-groups-basic>`_
for an example.
Text that should be prepended to the form field. Can also be an icon, e.g.
``'<span class="glyphicon glyphicon-calendar"></span>'``
See the `Bootstrap docs <http://getbootstrap.com/components/#input-groups-basic>` for more examples.
addon_after
Text that should be appended to the form field. See the `Bootstrap docs <http://getbootstrap.com/components/#input-groups-basic>`_
for an example.
Text that should be appended to the form field. Can also be an icon, e.g.
``'<span class="glyphicon glyphicon-calendar"></span>'``
See the `Bootstrap docs <http://getbootstrap.com/components/#input-groups-basic>` for more examples.
error_css_class
CSS class used when the field has an error
Expand Down

0 comments on commit c376478

Please sign in to comment.