Skip to content

openlibhums/django-foundation-form

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django Foundation Forms

Reusable Django app for display zurb foundation forms

Updated to support Django 1.11.

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 52.5%
  • HTML 47.5%