Skip to content

baseofficial/django-materializecss-form

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

materialize-css-form

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

DatePicker

Help

Widget

  • TextInput
  • Textarea
  • Select
  • Filefield
  • DateField

TODO

  • Multiple select

Inspired by

django-bootstrap-form

About

Materializecss for Django Form

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 62.1%
  • Python 37.9%