{ "info": { "author": "Ali Zaidi", "author_email": "alixedi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "=============================\ndjango_reform\n=============================\n\n.. image:: https://badge.fury.io/py/django_reform.png\n :target: http://badge.fury.io/py/django_reform\n \n.. image:: https://travis-ci.org/alixedi/django_reform.png?branch=master\n :target: https://travis-ci.org/alixedi/django_reform\n\n.. image:: https://pypip.in/d/django_reform/badge.png\n :target: https://crate.io/packages/django_reform?version=latest\n\n\nControl of widgets in templates sans BS.\n\nInstallation\n------------\n\nWe are at the cheeseshop: ::\n\n\tpip install django_reform\n\nUsage\n-----\n\nTo use django_reform in a project:\n\n1. Include it in INSTALLED_APPS in your settings file.\n\n2. Render your forms like so: ::\n\t\n\t{% load reform %}\n\t{{ reform form }}\n\n3. Open reform/templates/reform/field.html - by default rendering HTML5 input types. Go ahead and tweak: ::\n\n\t{% load widget_tweaks reform %}\n\t{% with field_type=field|get_form_field_type %}\n\t {% if field_type == 'DateField' %}\n\t {% render_field field type=\"date\" %}\n\t {% elif field_type == 'EmailField' %}\n\t {% render_field field type=\"email\" %}\n\t {% elif field_type == 'URLField' %}\n\t {% render_field field type=\"url\" %}\n\t {% else %}\n\t {{ field }}\n\t {% endif %}\n\t{% endwith %}\n\n4. Advanced usage - controlling which fields to include, order of the fields as well as number of columns in which the form is rendered. The code below will render a form with the given fields, bootstrap vertical layout, no float and using 3-columns: ::\n\n\t{% reform form 'email, number, url, time' 'vertical,false,3' %}\n\nSans BS as promised :)\n\n\n\n\nHistory\n-------\n\n0.1.0 (2013-11-25)\n++++++++++++++++++\n\n* First release on PyPI.\n\n0.1.1 (2013-11-25)\n++++++++++++++++++\n\n* Basic documentation.\n\n0.2.0 (2013-12-8)\n++++++++++++++++++\n\n* Added replacement for bootstrap_toolkit's as_bootstrap template filter. The reform template tag passed the original template context to the form templates enabling checks for instance for permissions etc.\n\n0.2.1 (2013-12-8)\n++++++++++++++++++\n\n* Added bootstrp CDN.\n\n0.3.0 (2013-12-10)\n++++++++++++++++++\n\n* Added bootstrp for field inclusions and orderings as well a multi-column layouts.", "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/alixedi/django_reform", "keywords": "django_reform", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django_reform", "package_url": "https://pypi.org/project/django_reform/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django_reform/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/alixedi/django_reform" }, "release_url": "https://pypi.org/project/django_reform/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Control of widgets in templates sans BS.", "version": "0.3.0" }, "last_serial": 940711, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bac6dfc2d41c0f536706d3726ed35162", "sha256": "d658e22f2f51673988c38f137788b53227b32cfb491dc81cdc4f62dec7852f45" }, "downloads": -1, "filename": "django_reform-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bac6dfc2d41c0f536706d3726ed35162", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5460, "upload_time": "2013-11-25T16:20:20", "url": "https://files.pythonhosted.org/packages/a3/19/df04c16c6a8bb59421224bb33eb47d8423eaf4c74160bc30dd69a1dff4d7/django_reform-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "cf7e33bd46f8ded8f60f50541a676423", "sha256": "ef3c23dea5249e1058cbe98a358635a0d334d6ed973f27912d446fb60df17ed6" }, "downloads": -1, "filename": "django_reform-0.1.1.tar.gz", "has_sig": false, "md5_digest": "cf7e33bd46f8ded8f60f50541a676423", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5519, "upload_time": "2013-11-25T16:24:00", "url": "https://files.pythonhosted.org/packages/36/7f/683240f68e63ef3f7cfa823afdccb9487d53fceb2feb5d9ae12137857435/django_reform-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "6e76674ff93a8719460afd28a0a65c93", "sha256": "3c7962c3c7b336fbb0bc49e5849d50bd2a7cf9b29793e99bcb04f4c8ceacf086" }, "downloads": -1, "filename": "django_reform-0.2.0.tar.gz", "has_sig": false, "md5_digest": "6e76674ff93a8719460afd28a0a65c93", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6115, "upload_time": "2013-12-08T17:19:06", "url": "https://files.pythonhosted.org/packages/e7/61/d80c7bf2d9cfa9b81b0ce9454909cbb52d3891e221f9516ab61f15e0076c/django_reform-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "929885b994e98b919f818b40b6c4c0cc", "sha256": "3678da97d1f996daf5957beb259ca9e289c99021c9a779abe1e87684e48447b4" }, "downloads": -1, "filename": "django_reform-0.2.1.tar.gz", "has_sig": false, "md5_digest": "929885b994e98b919f818b40b6c4c0cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6137, "upload_time": "2013-12-08T17:29:11", "url": "https://files.pythonhosted.org/packages/f5/b9/2427d4425118c5c0b556b4d6b84b20db76806da4d919b7a533d937477fdd/django_reform-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "670e1b5123c68529109d35d875b41b57", "sha256": "634213cef58274f18e2c03886a550b9ba94f6e8d10aed06174ef98aa09232718" }, "downloads": -1, "filename": "django_reform-0.3.0.tar.gz", "has_sig": false, "md5_digest": "670e1b5123c68529109d35d875b41b57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6693, "upload_time": "2013-12-10T08:52:33", "url": "https://files.pythonhosted.org/packages/81/8d/a63f36e585abedf3b7a865b8578099eccd03f3c6a7712a175bf0cca5a4fc/django_reform-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "670e1b5123c68529109d35d875b41b57", "sha256": "634213cef58274f18e2c03886a550b9ba94f6e8d10aed06174ef98aa09232718" }, "downloads": -1, "filename": "django_reform-0.3.0.tar.gz", "has_sig": false, "md5_digest": "670e1b5123c68529109d35d875b41b57", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6693, "upload_time": "2013-12-10T08:52:33", "url": "https://files.pythonhosted.org/packages/81/8d/a63f36e585abedf3b7a865b8578099eccd03f3c6a7712a175bf0cca5a4fc/django_reform-0.3.0.tar.gz" } ] }