Templatetags to add Zurb Foundation support to Django Forms
Project description
Django template tags to work with Zurb Foundation forms
Getting Started
Create a virtualenv:
$ virtualenv my-env
At the command line:
$ pip install django-foundation-formtags
Usage
To start use django-foundation-forms in a project you must include in your settings:
INSTALLED_APPS = ( 'foundation_tags', )
In the template load foundation tags by:
{% load foundation_tags %}
To use the django-form-foundation filter:
<form class="form" action="{{ url }}" method="POST"> {% csrf_token %} {{ form|as_foundation }} </form>
To use the django-form-foundation field tags:
<form class="form" action="{{ url }}" method="POST"> {% csrf_token %} {% render_field form.name %} {% render_field form.subject %} {% render_field form.message %} </form>
Contributing
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
Free software: BSD license
Documentation: https://django-foundation-formtags.readthedocs.org.
History
0.1.0 (2015-01-11)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-foundation-formtags-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 719a5dffb1e18f20cffa1ecf3f274e5cf91a71e73f97a237e77ae0d89851e4c5 |
|
MD5 | 4c2f5c220dc6a600681ab1d3c0d88c78 |
|
BLAKE2b-256 | 07a21baa4fdb7d6ce6a925607c0ca37bcc92ce02a90aebbf0340511bad2a9864 |