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.

Files for django-materializecss-form, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size django-materializecss-form-1.0.1.tar.gz (4.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page