Merge branch 'development', bumped version.

This commit is contained in:
Matt Austin 2011-09-14 13:52:52 +08:00
commit 7f60c3b418
4 changed files with 15 additions and 6 deletions

4
README
View File

@ -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 File

@ -1,5 +1,5 @@
from distutils.version import StrictVersion
VERSION = StrictVersion('0.1.0')
VERSION = StrictVersion('0.2.0')

View File

@ -1,6 +1,12 @@
{% load bootstrap %}
{% for field in form %}
{{ 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">
@ -25,3 +31,4 @@
{% endif %}
</div>
{% endfor %}

View File

@ -3,8 +3,8 @@ from bootstrapform.meta import VERSION
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,