Skip to main content

Django library to alter css classes and html attributes.

Project description

[![Build Status](https://travis-ci.org/c-bata/django-label-tag-attr.svg?branch=master)](https://travis-ci.org/c-bata/django-label-tag-attr)

More easy to alter css classes and html attributes. This library can render a form label like django-widget-tweaks

The license is MIT.

Installation

$ pip install django-widget-tweaks

Then add ‘label_tag_attr’ to INSTALLED_APPS.

Usage

Use django-label-tag-attr

render_field template tag for customizing form fields by using an HTML-like syntax.

{% load label_tag_attr %}
{% load widget_tweaks %}

{% render_label form.text class="control-label" %}
{% render_field form.text class="form-control" %}

Resources

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-label-tag-attr, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django_label_tag_attr-1.0.0-py3-none-any.whl (3.5 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size django-label-tag-attr-1.0.0.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page