Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from MattAustin/master

0.2.0
  • Loading branch information...
commit 53ca3a4464d783c83d49e052bf500e5aabcafd1e 2 parents cca400f + 7f60c3b
@tzangms authored
View
4 README
@@ -2,8 +2,10 @@ Generate twitter-bootstrap form output for django form
A django template tag to work with twitter bootstrap ( http://twitter.github.com/bootstrap/ )
-usage:
+Installation:
+Add 'bootstrapform' to INSTALLED_APPS.
+Template usage:
{% load bootstrap %}
{{ form|bootstrap }}
View
2  bootstrapform/meta.py
@@ -1,5 +1,5 @@
from distutils.version import StrictVersion
-VERSION = StrictVersion('0.1.0')
+VERSION = StrictVersion('0.2.0')
View
11 bootstrapform/templates/bootstrapform/form.html
@@ -1,7 +1,13 @@
{% load bootstrap %}
-{% for field in form %}
- <div class="clearfix {% if field.errors %}error{% endif %}">
+{{ form.non_field_errors }}
+
+{% for field in form.hidden_fields %}
+ {{ field }}
+{% endfor %}
+
+{% for field in form.visible_fields %}
+ <div class="clearfix{% if field.errors %} error{% endif %}">
{% if field|is_checkbox %}
<ul class="inputs-list">
<li>
@@ -25,3 +31,4 @@
{% endif %}
</div>
{% endfor %}
+
View
4 setup.py
@@ -3,8 +3,8 @@
setup(name='django-bootstrap-form',
- author='Matt Austin', author_email='mail@mattaustin.me.uk',
- url='https://github.com/MattAustin/django-bootstrap-form',
+ author='tzangms', author_email='tzangms@gmail.com',
+ url='https://github.com/tzangms/django-bootstrap-form',
version=str(VERSION),
packages=find_packages(),
include_package_data=True,
Please sign in to comment.
Something went wrong with that request. Please try again.