Django FormHelper is a collection of templates and templatetags to ease the pain in building out web forms
Project description
Django FormHelper is a collection of templates and templatetags to ease the pain in building out web forms. It does this by breaking the form down into separate re-usable and customizable components. This allows you to only customize the parts you want, and let the rest happen automatically.
Usage
After installing django-formhelper, add formhelper to your INSTALLED_APPS in your settings.py.
In your template, you need to load formhelper:
... {% load formhelper %} ...
Formsets
For easy formset support, complete with javascript (similar to django-admin), simply include the formset template:
{% include "formhelper/includes/formset.html" %}
This assumes that your formset is in a context variable called “formset”. If not, you can use the “with” tag as described above.
Customizing
You may override any template within your own app’s template directory. Just make sure your app comes before the formhelper app in the INSTALLED_APPS setting.
The following is a list of templates available:
formhelper/includes/form.html
formhelper/includes/form_row.html
formhelper/includes/field.html
formhelper/includes/errorlist.html
formhelper/includes/errorlist.html
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
File details
Details for the file django-formhelper-0.2.tar.gz
.
File metadata
- Download URL: django-formhelper-0.2.tar.gz
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bbac7a525386aef206dacd33cc913af6fe239d2d68e723bc25fa790d8ad4d84 |
|
MD5 | 219be58a7c4c0e043e08f7c102650102 |
|
BLAKE2b-256 | 30d28b95db07a8afd528d95f03e660178c529eb6a53ea13e434ddfc41b22f862 |