diff --git a/README.rst b/README.rst index 98cd911..4c15f69 100644 --- a/README.rst +++ b/README.rst @@ -26,11 +26,39 @@ A simple Django template tag to work with `Bootstrap + Form Title + {% csrf_token %} + {{ form|bootstrap }} +
+ +
+ + +You can also set class="form-vertical" on the form element. + +To use class="form-inline" on the form element, also change the "|boostrap" template tag to "|bootstrap_inline". + +It is also possible to create a horizontal form. The form class and template tag are both changed, and you will also need slightly different CSS around the submit button:: + +
+ Form Title + {% csrf_token %} + {{ form|bootstrap_horizontal }} +
+
+ +
+
+
Demo