foundationform

Reusable Django app for display zurb foundation forms


License
Other
Install
pip install foundationform==0.2

Documentation

django-foundation-form

Reusable Django app for display zurb foundation forms

Installation

Install with pip: pip install foundationform

Add 'foundationform', to INSTALLED_APPS

Usage

Simple form:

{% load foundation %}

<h2>Form</h2>
<form method="POST">
    {{ form|foundation }}
    <button type="submit" class="small button">Submit</button>
</form>

Inline labels:

{% load foundation %}

<h2>Form</h2>
<form method="POST">
    {{ form|foundationinline }}
    <button type="submit" class="small button">Submit</button>
</form>

Render form fields:

{% load foundation %}

<h2>Form</h2>
<form method="POST">
    {{ form.title|foundation }}
    {{ form.text|foundationinline }}
    <button type="submit" class="small button">Submit</button>
</form>

Running the tests

Install tox and run tox from the source checkout