{ "info": { "author": "Charlie DeTar", "author_email": "cfd@media.mit.edu", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP :: Dynamic Content" ], "description": "django-bootstrap-form-horizontal\n################################\n\nThis is set of form templates that implement a bootstrap \"horizontal\" style for\nDjango forms. Handles all default field types, including a nice\n`Pikaday `_ wrapper for date time fields. \n\nInstallation::\n\n pip install django-bootstrap-form-horizontal\n\nAdd to ``INSTALLED_APPS``::\n\n INSTALLED_APPS = (\n ...\n \"bootstrap_form_horizontal\",\n ...\n )\n\nUsage::\n\n {% include \"bootstrap_form_horizontal.html\" with form=myform %}\n\nThe template accepts the following context:\n\n - ``form``: The form to render.\n - ``submit``: The text for a submit button with class ``btn btn-primary``. If not specified, no submit button is rendered.\n - ``wrap``: If not 0, will wrap form with ``
{% csrf_token %} ...
``. Default: ``True`` If you specify ``wrap=0``, the form will be rendered without wrapping, and you must provide your own ``class='form-horizontal'`` wrapper.\n - ``label_class``: The grid class(es) to use on label elements. Default: ``col-sm-4``.\n - ``field_class``: The grid class(es) to use on field elements. Default: ``col-sm-8``.\n\nTo render properly, you must include various css/js. For convenience, vendored\nbootstrap is included here -- though you probably are already loading it in\nyour project if you're interested in this app::\n\n \n \n \n\n \n \n \n \n\nExamples\n--------\n\nWrap with form, and include submit button::\n\n {% include \"bootstrap_form_horizontal.html\" with form=myform submit=\"Send it in\" %}\n\nDo your own form wrapping::\n\n
{% csrf_token %}\n {% include \"bootstrap_form_horizontal.html\" with form=myform wrap=0 %}\n \n
\n\nChange the responsive column classes::\n\n {% include \"bootstrap_form_horizontal.html\" with label_class='col-sm-2 col-xs-4' field_class='col-xs-10 col-sm-8' %}\n\nRolling your own form template?\n - ``_bootstrap_form_horizontal_field.html``: renders a single label/field pair. Expects ``field`` as context; also accepts ``label_class`` and ``field_class`` as above.\n - ``_bootstrap_form_horizontal_non_field_errors.html``: Displays non-field errors wrapped in bootstrap error classes. Expects ``form`` as context; accepts ``label_class`` and ``field_class``.\n\nSource\n------\n\nFile issues, download, etc. at https://github.com/yourcelf/django-bootstrap-form-horizontal.git.", "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/yourcelf/django-bootstrap-form-horizontal", "keywords": null, "license": "BSD License", "maintainer": null, "maintainer_email": null, "name": "django-bootstrap-form-horizontal", "package_url": "https://pypi.org/project/django-bootstrap-form-horizontal/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-bootstrap-form-horizontal/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/yourcelf/django-bootstrap-form-horizontal" }, "release_url": "https://pypi.org/project/django-bootstrap-form-horizontal/0.0.4/", "requires_dist": null, "requires_python": null, "summary": "Templates for bootstrap3 style horizontal forms in Django", "version": "0.0.4" }, "last_serial": 1330507, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "9517411510e0b33527e5b67c44579de8", "sha256": "b36560aa3ca5c9947d59dd2fb4e7a0909940f699c3d13b55218126abec8bd061" }, "downloads": -1, "filename": "django-bootstrap-form-horizontal-0.0.2.tar.gz", "has_sig": false, "md5_digest": "9517411510e0b33527e5b67c44579de8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 250345, "upload_time": "2014-12-04T00:19:54", "url": "https://files.pythonhosted.org/packages/9e/d6/1c2672ac8e302ec5820a089e39a20a218c0f5ab8a8f9b176ce0a247b0993/django-bootstrap-form-horizontal-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "96c65a7430c6d6ff653687ac88b80aab", "sha256": "9067b2571194b049432c77908c19b6a2708b346016dda46909b71d7024d6d486" }, "downloads": -1, "filename": "django-bootstrap-form-horizontal-0.0.3.tar.gz", "has_sig": false, "md5_digest": "96c65a7430c6d6ff653687ac88b80aab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 251075, "upload_time": "2014-12-04T00:31:39", "url": "https://files.pythonhosted.org/packages/f8/dc/504eda380b90794e27f0718896a9d42f86ed1c2b6b69debda7a5cdaaab4e/django-bootstrap-form-horizontal-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "809eafa58963a0be89ebf90abe63b619", "sha256": "8430d61cc4532d6998327d902e495bd2bf414d1433bb1de500c19dc568fdb98c" }, "downloads": -1, "filename": "django-bootstrap-form-horizontal-0.0.4.tar.gz", "has_sig": false, "md5_digest": "809eafa58963a0be89ebf90abe63b619", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 251196, "upload_time": "2014-12-04T00:39:10", "url": "https://files.pythonhosted.org/packages/3e/46/ae45f1b820be3d8c40ad6e6ff8598cf05af49f2196183428d7508c257f02/django-bootstrap-form-horizontal-0.0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "809eafa58963a0be89ebf90abe63b619", "sha256": "8430d61cc4532d6998327d902e495bd2bf414d1433bb1de500c19dc568fdb98c" }, "downloads": -1, "filename": "django-bootstrap-form-horizontal-0.0.4.tar.gz", "has_sig": false, "md5_digest": "809eafa58963a0be89ebf90abe63b619", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 251196, "upload_time": "2014-12-04T00:39:10", "url": "https://files.pythonhosted.org/packages/3e/46/ae45f1b820be3d8c40ad6e6ff8598cf05af49f2196183428d7508c257f02/django-bootstrap-form-horizontal-0.0.4.tar.gz" } ] }