TigorC / django-foundation-form

Reusable Django app for display zurb foundation forms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Reusable Django app for display zurb foundation forms

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%