{ "info": { "author": "Ryan Castner", "author_email": "castner.rr@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.8", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5" ], "description": "=============================\ncrispy-templates\n=============================\n\n.. image:: https://badge.fury.io/py/crispy-templates.png\n :target: https://badge.fury.io/py/crispy-templates\n\nA collection of useful templates for customizing crispy forms layouts.\n\nDocumentation\n-------------\n\nThe full documentation is at https://crispy-templates.readthedocs.io.\n\nQuickstart\n----------\n\ncrispy-templates depends on [crispy-forms](https://github.com/django-crispy-forms/django-crispy-forms#django-crispy-forms), make sure that you have properly installed crispy forms first.\n\nInstall crispy-templates::\n\n pip install crispy-templates\n\nAdd it to your `INSTALLED_APPS`:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'crispy_templates.apps.CrispyTemplatesConfig',\n ...\n )\n\nDefine your layout template in the `crispy_forms.helper.FormHelper` object:\n\n.. code-block:: python\n from crispy_forms.helper import FormHelper\n from crispy_forms.layout import Field, Layout\n\n class BookForm(forms.ModelForm):\n def __init__(self, *args, **kwargs):\n super(BookForm, self).__init__(*args, **kwargs)\n self.helper = FormHelper()\n self.helper.template_pack = \"bootstrap3\"\n self.helper.layout = Layout(\n Field('publication_status', template=\"crispy_templates/layouts/radio_btngroup_field.html\"),\n )\n\nAdd the javascript by running `python manage.py collectstatic` and then including it in your template:\n\n.. code-block:: python\n\n {% static 'crispy_templates/js/crispy_templates.js' %}\n\nPreferably add it to the footer of your page so as to not delay the page load.\n **Note** - Currently only supports the `bootstrap3` template pack that comes with `crispy_forms`.\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------\n\n0.2.0 (2017-01-17)\n++++++++++++++++++\n\n* Fixed method of rendering field so form would pull out the data\n* Refactored how the project templates were structured and how to include the new template override\n* Updated documentation\n\n0.1.0 (2017-01-14)\n++++++++++++++++++\n\n* First release on PyPI.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/audiolion/crispy-templates", "keywords": "crispy-templates", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "crispy-templates", "package_url": "https://pypi.org/project/crispy-templates/", "platform": "", "project_url": "https://pypi.org/project/crispy-templates/", "project_urls": { "Homepage": "https://github.com/audiolion/crispy-templates" }, "release_url": "https://pypi.org/project/crispy-templates/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "A collection of useful templates for customizing crispy forms layouts.", "version": "0.2.0" }, "last_serial": 2580445, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "7441f265c03eb1889451896afd5f453f", "sha256": "14797c3918e037e338ff3e2ed5a98d907a8f2130bcfd16ae359456da86acbe95" }, "downloads": -1, "filename": "crispy-templates-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7441f265c03eb1889451896afd5f453f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5751, "upload_time": "2017-01-14T15:49:38", "url": "https://files.pythonhosted.org/packages/a0/2d/7dd07c379dac4344aa4f46ea02d5d2009c388566f414163c7b065393558e/crispy-templates-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "c9c6c0d1d958431f2550a9237bf1473d", "sha256": "0a95cd84e8e91d8c8f7ba7600578caf6e3f28df3d800860524b0fd191085822c" }, "downloads": -1, "filename": "crispy-templates-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c9c6c0d1d958431f2550a9237bf1473d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5968, "upload_time": "2017-01-17T19:06:23", "url": "https://files.pythonhosted.org/packages/f9/4a/fe746465e06b31c451f5628be23167c9904fa1b706688c60097d7b4b04f1/crispy-templates-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c9c6c0d1d958431f2550a9237bf1473d", "sha256": "0a95cd84e8e91d8c8f7ba7600578caf6e3f28df3d800860524b0fd191085822c" }, "downloads": -1, "filename": "crispy-templates-0.2.0.tar.gz", "has_sig": false, "md5_digest": "c9c6c0d1d958431f2550a9237bf1473d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5968, "upload_time": "2017-01-17T19:06:23", "url": "https://files.pythonhosted.org/packages/f9/4a/fe746465e06b31c451f5628be23167c9904fa1b706688c60097d7b4b04f1/crispy-templates-0.2.0.tar.gz" } ] }