Materializecss support for Django projects
Project description
# django-materialize-forms
Django tamplatetags for materialize css
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>
Django tamplatetags for materialize css
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>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-materialize-forms-0.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe2fb7f36e194ec09f9f3a38ee5ab51fb7fdb4a8b2cb54a778ab79edc42c72eb |
|
MD5 | 9bee73a300617956be021ecf3eaa592c |
|
BLAKE2b-256 | cd547ae138b0e451ca4d2c7c67942f6db57cab17ee60dc297485e87879b386b1 |