Skip to main content

Reusable Django app for display kube forms

Project description

django-kube-form
================

Reusable Django app for display [kube forms](http://imperavi.com/kube/forms/ "kube forms")

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

Add `'kubeform',` to INSTALLED_APPS

## Usage

Simple column form:

```html
{% load kube %}

<h2>Form</h2>
<form method="POST">
{{ form|kubecolumn }}
<p>
<input type="submit" class="btn" value="Send">
</p>
</form>
```

Simple inline form:

```html
{% load kube %}

<h2>Form</h2>
<form method="POST">
{{ form|kubeinline }}
<input type="submit" class="btn" value="Send">
</form>
```

Width fields:
```html
{% load kube %}

<h2>Form</h2>
<form method="POST">
{{ form.title|kubewidth:"50" }}
<input type="submit" class="btn" value="Send">
</form>
```

Project details


Download files

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

Source Distribution

kubeform-0.1.2.tar.gz (1.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page