This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Django Materialize Form

Project Description

A simple Django library to render your form in Material Design

Installation

pip install django-materialize-form

Usage

  • Add “materializeform” to your INSTALLED_APPS.

  • At the top of your django templates load our templatetags

    {% load materialize %}
    

Then to render your form

<form action='.' method='post'>
    {% csrf_token %}
    {{ form|materialize }}
    <button type='submit' class="btn blue">Submit</button>
</form>

You can also set column class for each fields on the form

<form action='.' method='post'>
    {% csrf_token %}
    <div class="row">
    {{ form.email|materialize:"s12" }}
    </div>

    <div class="row">
    {{ form.first_name|materialize:"s6" }}
    {{ form.last_name|materialize:"s6" }}
    </div>

    <button type='submit' class="btn blue">Submit</button>
</form>

If you have ‘select’ menu in your form

Then please include,

<script>
  $(function(){
    $(document).ready(function() {
      $('select.select').material_select();
      $('select.multiselect').show();
    });
  });
</script>
Release History

Release History

This version
History Node

0.1.1

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-materialize-form-0.1.1.zip (6.1 kB) Copy SHA256 Checksum SHA256 Source Jun 24, 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