Skip to main content

Reusable Django app for display zurb foundation forms

Project description

# django-foundation-form

Reusable Django app for display [zurb foundation forms](http://foundation.zurb.com/)

## Installation
Install with pip: `pip install foundationform`

Add `'foundationform',` to INSTALLED_APPS

## Usage

Simple form:

```html
{% load foundation %}

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

Inline labels:

```html
{% load foundation %}

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

Render form fields:
```html
{% 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](http://tox.testrun.org/) and run `tox` from the source checkout

Project details


Release history Release notifications

This version
History Node

0.2

History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
foundationform-0.2.tar.gz (4.8 kB) Copy SHA256 hash SHA256 Source None Feb 16, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page