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.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.6.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_foundation_formtags-0.0.6-py2.py3-none-any.whl (13.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for django-foundation-formtags-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3368280b119069738ac3c0add9ded958c60b7168b80bded87048b7ca87e28bbf
MD5 e71126abfae417ada2c36e7b2f8041be
BLAKE2b-256 abcf660b7cac4495b25c878127665661cfdc4a6b2e3bf66f5fcecc4864a01730

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_foundation_formtags-0.0.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e07cc6a4d05b78c8bc19358434e2103b59445b35c7decad6f05888c10f6feee7
MD5 dce856212d4d7e635589b22cad6077a6
BLAKE2b-256 274d1a0719f6bd21a3cbdd203332ab693941228fbde086465ce3ea0994b1ac26

See more details on using hashes here.

Supported by

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