Skip to main content

Templatetags to add Zurb Foundation support to Django Forms

Project description

Django Foundation Formtags

https://travis-ci.org/chrisdev/django-foundation-formtags.svg?branch=master Updates

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_formtags',
)

In the template load foundation tags by:

{% load foundation_formtags %}

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.

History

0.0.7 (2016-09-25)

  • Make Compatible with Django 1.10

  • Minimum version is now Django 1.8. For earlier versions of Django use 0.0.6

0.0.6 (2016-08-05)

Fix for checkbox rendering and New error class for Non field errors in Foundation 6

0.0.5 (2016-07-12)

  • 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

django-foundation-formtags-0.0.7.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

django_foundation_formtags-0.0.7-py2.py3-none-any.whl (9.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file django-foundation-formtags-0.0.7.tar.gz.

File metadata

File hashes

Hashes for django-foundation-formtags-0.0.7.tar.gz
Algorithm Hash digest
SHA256 47f47523800d6f585b133c651e5f1719e82ebeb92bd42cbeb8a107343b824d1a
MD5 3b19ce8b0e65be3f8ef9153bfb88760f
BLAKE2b-256 f66174c17f8f87312e9ddb45246bcca7a76b11ec58a962af0a043e1b2087f345

See more details on using hashes here.

Provenance

File details

Details for the file django_foundation_formtags-0.0.7-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_foundation_formtags-0.0.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 769a553d7f8efd6930ba63815a083af304c713566b5f3ead6b7007472ff6b07b
MD5 327e2eb752bd0e68de67283d6676e48d
BLAKE2b-256 31190af04c0bacba2dd57451fc1df8d9267e3f26065512eee9a43b79baf039c5

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page