{ "info": { "author": "Humphrey Murray (Datalive Software)", "author_email": "hmurray@datalive.com.au", "bugtrack_url": null, "classifiers": [ "Framework :: Django", "Operating System :: OS Independent", "Programming Language :: Python" ], "description": "# Django Form Renderer\r\n\r\nProvides template filters that allow you to give you power to render forms however you want.\r\n\r\nHTML 5 input types are automatically used for field types that are appropriate.\r\n\r\nIf a field is required, the [required=\"required\"] is automatically added to the element.\r\n\r\nMore info at:\r\nhttps://github.com/humphrey/django_formrenderer\r\n\r\n## Installation\r\n\r\n`pip install django_formrenderer`\r\n\r\n\r\n## Examples\r\n\r\n### Simple HTML5 Example\r\n\r\n```HTML+Django/Jinja\r\n{% load renderform %}\r\n
\r\n```\r\n\r\n### Or use HTML 4 (but why would you?)\r\n\r\n```HTML+Django/Jinja\r\n{{ form|renderform_html4:\"formrenderer/default.html, name, email, phone\" }}\r\n```\r\n\r\n### Add a class name to a field\r\n\r\nAppend the field name with the class name. Eg. `my_field.class_name`\r\n\r\n```HTML+Django/Jinja\r\n{{ form|renderform:\"formrenderer/default.html, name.class_name\" }}\r\n```\r\n\r\n### Add an attribute\r\n\r\nAppend the field name with the attribute. Eg. `my_field[key=value]`\r\n\r\n```HTML+Django/Jinja\r\n{{ form|renderform:\"formrenderer/default.html, comments[rows=3]\" }}\r\n{{ form|renderform:\"formrenderer/default.html, comments[rows=3,disabled=disabled]\" }}\r\n```\r\n\r\n### Add class names and attributes\r\n\r\nAppend the field name with the class name. Eg. `my_field[key=value]`\r\n\r\n```HTML+Django/Jinja\r\n{{ form|renderform:\"formrenderer/default.html, comments.my_class[rows=3]\" }}\r\n```\r\n\r\n### Complicated Example\r\n\r\n```HTML+Django/Jinja\r\n{% load renderform %}\r\n\r\n```", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/humphrey/django_formrenderer", "keywords": "", "license": "UNKNOWN", "maintainer": "", "maintainer_email": "", "name": "django_formrenderer", "package_url": "https://pypi.org/project/django_formrenderer/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django_formrenderer/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/humphrey/django_formrenderer" }, "release_url": "https://pypi.org/project/django_formrenderer/2.0/", "requires_dist": null, "requires_python": null, "summary": "A reusable django app for customising form rendering from your template.", "version": "2.0" }, "last_serial": 808132, "releases": { "2.0": [ { "comment_text": "", "digests": { "md5": "2ee3f2c9f085519065b55b785310ce68", "sha256": "c107c79175e48aff1fa6a5ca012d979cfa12c53aa3afbd5c2a0762a2a32c2a51" }, "downloads": -1, "filename": "django_formrenderer-2.0.tar.gz", "has_sig": false, "md5_digest": "2ee3f2c9f085519065b55b785310ce68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3801, "upload_time": "2013-07-04T14:28:41", "url": "https://files.pythonhosted.org/packages/2d/37/26d53c365f3b66b4c0869e7dcbd3cc6a0e58c20bce41105f5a081182706a/django_formrenderer-2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2ee3f2c9f085519065b55b785310ce68", "sha256": "c107c79175e48aff1fa6a5ca012d979cfa12c53aa3afbd5c2a0762a2a32c2a51" }, "downloads": -1, "filename": "django_formrenderer-2.0.tar.gz", "has_sig": false, "md5_digest": "2ee3f2c9f085519065b55b785310ce68", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3801, "upload_time": "2013-07-04T14:28:41", "url": "https://files.pythonhosted.org/packages/2d/37/26d53c365f3b66b4c0869e7dcbd3cc6a0e58c20bce41105f5a081182706a/django_formrenderer-2.0.tar.gz" } ] }