Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

A form widget to style file inputs in a foundation fashion.

Project Description

This module provides a form widget to style file inputs in a foundation fashion.

Installation

Install with pip:

pip install django-foundation-filefield-widget

Add foundation_filefield_widget app to your INSTALLED_APPS

INSTALLED_APPS = (
    ...
    'foundation_filefield_widget',
)

Use the widget in your forms :

from django import forms
from foundation_filefield_widget.widgets import FoundationFileInput, FoundationImageInput

class MyForm(forms.Form):
    my_file = forms.FileField(widget=FoundationFileInput)
    my_image = forms.FileField(widget=FoundationImageInput)

Don’t forget to include the media part of your form in your templates.

If you want to easily define forms you should look into crispy-forms And if you want to define forms styled with Foundation you should also check crispy-forms-foundation

Release History

Release History

This version
History Node

0.0.4

History Node

0.0.3

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-foundation-filefield-widget-0.0.4.tar.gz (10.5 kB) Copy SHA256 Checksum SHA256 Source Aug 10, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting