Merge branch 'development', bumped version.
This commit is contained in:
commit
7f60c3b418
4
README
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/ )
|
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 %}
|
{% load bootstrap %}
|
||||||
|
|
||||||
{{ form|bootstrap }}
|
{{ form|bootstrap }}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
from distutils.version import StrictVersion
|
from distutils.version import StrictVersion
|
||||||
|
|
||||||
|
|
||||||
VERSION = StrictVersion('0.1.0')
|
VERSION = StrictVersion('0.2.0')
|
||||||
|
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
{% load bootstrap %}
|
{% 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 %}">
|
<div class="clearfix{% if field.errors %} error{% endif %}">
|
||||||
{% if field|is_checkbox %}
|
{% if field|is_checkbox %}
|
||||||
<ul class="inputs-list">
|
<ul class="inputs-list">
|
||||||
@ -25,3 +31,4 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
|
4
setup.py
4
setup.py
@ -3,8 +3,8 @@ from bootstrapform.meta import VERSION
|
|||||||
|
|
||||||
|
|
||||||
setup(name='django-bootstrap-form',
|
setup(name='django-bootstrap-form',
|
||||||
author='Matt Austin', author_email='mail@mattaustin.me.uk',
|
author='tzangms', author_email='tzangms@gmail.com',
|
||||||
url='https://github.com/MattAustin/django-bootstrap-form',
|
url='https://github.com/tzangms/django-bootstrap-form',
|
||||||
version=str(VERSION),
|
version=str(VERSION),
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
include_package_data=True,
|
include_package_data=True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user