Skip to content

zokis/django-materialize-forms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-materialize-forms

Django tamplatetags for materialize css

PyPI version

Installation

  1. Install using pip:

    pip install django-materialize-forms

  2. Add to INSTALLED_APPS:

    'materialize_forms',

Use in templates

{% load materialize %}

# Using a filter

<form action="/url/to/submit/" method="post">
    {% csrf_token %}
    {{ form.field_1|as_material:"s12" }}
    {{ form.field_2|as_material:"s12" }}
    {{ form.field_3|as_material:"s12" }}
    <div class="form-actions">
        <button type="submit" class="btn btn-primary">Submit</button>
    </div>
</form>

About

Django tamplatetags for materialize css

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages