Skip to main content

A simple Django form template tag to work with Materializecss

Project description

Materializecss for Django Form

A simple Django template tag to work with Materializecss

Install

pip install django-materializecss-form

on pypi

Add to INSTALLED_APPS:

INSTALLED_APPS = (
     'materializecssform',
     ...
     )

Usage

Use it like this, simple.

{% load materializecss %}

All the form

{{ form|materializecss }}

Individual field

{{ form.|materializecss }}

Custom size (default is ‘s12’)

{{ form|materializecss:’m6’ }}

Demo

Basic form

Basic form

DatePicker

DatePicker

Help

Widget

  • TextInput

  • Textarea

  • Select

  • Filefield

  • DateField

TODO

  • Multiple select

Inspired by

django-bootstrap-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

django-materializecss-form-1.0.1.tar.gz (4.1 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