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
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
foundationform-0.2.tar.gz
(4.8 kB
view details)
File details
Details for the file foundationform-0.2.tar.gz
.
File metadata
- Download URL: foundationform-0.2.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34848cd4d51927e4471afd80d3cf0f5c584a117a63f92154191e4aecb6d8427a |
|
MD5 | 69de8c1a29fb3388d2019489f090429d |
|
BLAKE2b-256 | e6b124ec101684697d0b1b30f4b04376b844ebc1f31579cb61237232cf9ccbe3 |