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!

Add css classes and html tag attributes to django form's label.

Project Description

Add css classes and html tag attributes to form’s label in django templates. This library can render a form label like django-widget-tweaks

The license is MIT.

Installation

$ pip install django-label-tag-attr

Then add ‘label_tag_attr’ to INSTALLED_APPS.

Usage

Previous(Use django-widget-tweaks only)

{% load widget_tweaks %}

<label id="{{ form.text.auto_id }}" class="control-label">{{ form.text.label }}</label>
{% render_label form.text class="form-control" %}

Use django-label-tag-attr

render_label template tag for customizing form’s label 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

CHANGES

1.0.0 (2015-03-29)

Initial release

1.0.2 (2015-05-09)

  • Support django1.8 and python2.7.
  • Bug fixed.
Release History

Release History

This version
History Node

1.0.2

History Node

1.0.1

History Node

1.0.0

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_label_tag_attr-1.0.2-py3-none-any.whl (3.6 kB) Copy SHA256 Checksum SHA256 3.4 Wheel May 9, 2015
django-label-tag-attr-1.0.2.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source May 9, 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