{"id":15973694,"url":"https://github.com/c-bata/django-label-tag-attr","last_synced_at":"2025-04-04T16:21:19.052Z","repository":{"id":29484242,"uuid":"33021412","full_name":"c-bata/django-label-tag-attr","owner":"c-bata","description":"Add css classes and html tag attributes to django form's label.","archived":false,"fork":false,"pushed_at":"2015-08-07T15:18:29.000Z","size":216,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-12T14:48:43.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-bata.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-28T04:51:19.000Z","updated_at":"2018-03-29T05:27:41.000Z","dependencies_parsed_at":"2022-09-15T02:50:35.586Z","dependency_job_id":null,"html_url":"https://github.com/c-bata/django-label-tag-attr","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-label-tag-attr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-label-tag-attr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-label-tag-attr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-bata%2Fdjango-label-tag-attr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-bata","download_url":"https://codeload.github.com/c-bata/django-label-tag-attr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247208404,"owners_count":20901570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T21:06:28.657Z","updated_at":"2025-04-04T16:21:19.034Z","avatar_url":"https://github.com/c-bata.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=====================\ndjango-label-tag-attr\n=====================\n\n.. image:: https://travis-ci.org/c-bata/django-label-tag-attr.svg\n    :target: https://travis-ci.org/c-bata/django-label-tag-attr\n\n.. image:: https://badge.fury.io/py/django-label-tag-attr.svg\n    :target: http://badge.fury.io/py/django-label-tag-attr\n\nAdd css classes and html tag attributes to form's label in django templates.\nThis library can render a form label like `django-widget-tweaks \u003chttps://github.com/kmike/django-widget-tweaks\u003e`_\n\nThe license is MIT.\n\nInstallation\n============\n\n::\n\n    $ pip install django-label-tag-attr\n\nThen add 'label_tag_attr' to INSTALLED_APPS.\n\n\nUsage\n=====\n\nPrevious(Use django-widget-tweaks only)\n---------------------------------------\n\n.. code-block:: html\n\n    {% load widget_tweaks %}\n\n    \u003clabel id=\"{{ form.text.auto_id }}\" class=\"control-label\"\u003e{{ form.text.label }}\u003c/label\u003e\n    {% render_label form.text class=\"form-control\" %}\n\nUse django-label-tag-attr\n-------------------------\n\n``render_label`` template tag for customizing form's label by using an HTML-like syntax.\n\n.. code-block:: html\n\n    {% load label_tag_attr %}\n    {% load widget_tweaks %}\n\n    {% render_label form.text class=\"control-label\" %}\n    {% render_field form.text class=\"form-control\" %}\n\nResources\n=========\n\n* `Github \u003chttps://github.com/c-bata/django-label-tag-attr\u003e`_\n* `PyPI \u003chttps://pypi.python.org/pypi/django-label-tag-attr\u003e`_\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Fdjango-label-tag-attr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-bata%2Fdjango-label-tag-attr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-bata%2Fdjango-label-tag-attr/lists"}