django-forms-bootstrap


Namedjango-forms-bootstrap JSON
Version 3.1.0 PyPI version JSON
download
home_pagehttp://github.com/pinax/django-forms-bootstrap
Summarya simple form filter for using Django forms with Bootstrap
upload_time2017-04-17 14:27:18
maintainerNone
docs_urlNone
authorLuke Hatcher
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            Django Forms Bootstrap
======================

.. image:: http://slack.pinaxproject.com/badge.svg
   :target: http://slack.pinaxproject.com/

.. image:: https://img.shields.io/travis/pinax/django-forms-bootstrap.svg
    :target: https://travis-ci.org/pinax/django-forms-bootstrap

.. image:: https://img.shields.io/coveralls/pinax/django-forms-bootstrap.svg
    :target: https://coveralls.io/r/pinax/django-forms-bootstrap

.. image:: https://img.shields.io/pypi/dm/django-forms-bootstrap.svg
    :target:  https://pypi.python.org/pypi/django-forms-bootstrap/

.. image:: https://img.shields.io/pypi/v/django-forms-bootstrap.svg
    :target:  https://pypi.python.org/pypi/django-forms-bootstrap/

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target:  https://pypi.python.org/pypi/django-forms-bootstrap/


Pinax
------
Pinax is an open-source platform built on the Django Web Framework. It is an ecosystem of reusable Django apps, themes, and starter project templates. 
This collection can be found at http://pinaxproject.com.


django-forms-bootstrap
-----------------------

``django-forms-bootstrap`` is a simple bootstrap filter for Django forms. Extracted from the
bootstrap theme for Pinax.


Getting Started
-----------

Include ``django-forms-bootstrap`` in your requirements file and
``django_forms_bootstrap`` in your ``INSTALLED APPS``.

Make sure your template loader finders includes app directories.

To style forms, add the following to the top of your template ::
    
    {% load bootstrap_tags %}

and include your form using something like the following markup: ::
    
    <form>
        <legend>My Form</legend>
        {% csrf_token %}
        {{ form|as_bootstrap }}
        <div class="form-actions">
          <a href="#back" class="btn">Go back</a>
          <button type="submit" class="btn btn-primary">Save changes</button>
        </div>
    </form>


Specifying Form Layouts
-----------------------

Bootstrap includes styles for three types of forms. To change the display of
your form, add one of the following class attributes to your form tag and
use the appropriate template filter:

================   ======================================   ========================================
    Class          Template filter                                Description
================   ======================================   ========================================
.form-vertical     ``{{ form|as_bootstrap }}``              Labels over controls (default)
.form-horizontal   ``{{ form|as_bootstrap_horizontal }}``   Labels on same line as controls
.form-inline       ``{{ form|as_bootstrap_inline }}``       Compact style with inline-block controls
================   ======================================   ========================================


Documentation
--------------

The ``django-forms-bootstrap`` documentation is currently under construction. If you would like to help us write documentation, please join our Pinax Project Slack team and let us know! The Pinax documentation is available at http://pinaxproject.com/pinax/.


Contribute
----------------

See this blog post http://blog.pinaxproject.com/2016/02/26/recap-february-pinax-hangout/ including a video, or our How to Contribute (http://pinaxproject.com/pinax/how_to_contribute/) section for an overview on how contributing to Pinax works. For concrete contribution ideas, please see our Ways to Contribute/What We Need Help With (http://pinaxproject.com/pinax/ways_to_contribute/) section.

In case of any questions we recommend you join our Pinax Slack team (http://slack.pinaxproject.com) and ping us there instead of creating an issue on GitHub. Creating issues on GitHub is of course also valid but we are usually able to help you faster if you ping us in Slack.

We also highly recommend reading our Open Source and Self-Care blog post (http://blog.pinaxproject.com/2016/01/19/open-source-and-self-care/).  


License & Attribution
---------------------

Django Forms Bootstrap is released under the MIT license. It does not include
any styles or scripts from the Bootstrap project.


Code of Conduct
----------------

In order to foster a kind, inclusive, and harassment-free community, the Pinax Project has a code of conduct, which can be found here  http://pinaxproject.com/pinax/code_of_conduct/. 
We ask you to treat everyone as a smart human programmer that shares an interest in Python, Django, and Pinax with you.



Pinax Project Blog and Twitter
-------------------------------

For updates and news regarding the Pinax Project, please follow us on Twitter at @pinaxproject and check out our blog http://blog.pinaxproject.com.
            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/pinax/django-forms-bootstrap",
    "name": "django-forms-bootstrap",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Luke Hatcher",
    "author_email": "luke@lukehatcher.com",
    "download_url": "https://files.pythonhosted.org/packages/c2/14/e80f3fefad1e5ec0a7031e6810b0e75b18914250b697a584dd0b8f6c3935/django-forms-bootstrap-3.1.0.tar.gz",
    "platform": "UNKNOWN",
    "description": "Django Forms Bootstrap\n======================\n\n.. image:: http://slack.pinaxproject.com/badge.svg\n   :target: http://slack.pinaxproject.com/\n\n.. image:: https://img.shields.io/travis/pinax/django-forms-bootstrap.svg\n    :target: https://travis-ci.org/pinax/django-forms-bootstrap\n\n.. image:: https://img.shields.io/coveralls/pinax/django-forms-bootstrap.svg\n    :target: https://coveralls.io/r/pinax/django-forms-bootstrap\n\n.. image:: https://img.shields.io/pypi/dm/django-forms-bootstrap.svg\n    :target:  https://pypi.python.org/pypi/django-forms-bootstrap/\n\n.. image:: https://img.shields.io/pypi/v/django-forms-bootstrap.svg\n    :target:  https://pypi.python.org/pypi/django-forms-bootstrap/\n\n.. image:: https://img.shields.io/badge/license-MIT-blue.svg\n    :target:  https://pypi.python.org/pypi/django-forms-bootstrap/\n\n\nPinax\n------\nPinax is an open-source platform built on the Django Web Framework. It is an ecosystem of reusable Django apps, themes, and starter project templates. \nThis collection can be found at http://pinaxproject.com.\n\n\ndjango-forms-bootstrap\n-----------------------\n\n``django-forms-bootstrap`` is a simple bootstrap filter for Django forms. Extracted from the\nbootstrap theme for Pinax.\n\n\nGetting Started\n-----------\n\nInclude ``django-forms-bootstrap`` in your requirements file and\n``django_forms_bootstrap`` in your ``INSTALLED APPS``.\n\nMake sure your template loader finders includes app directories.\n\nTo style forms, add the following to the top of your template ::\n    \n    {% load bootstrap_tags %}\n\nand include your form using something like the following markup: ::\n    \n    <form>\n        <legend>My Form</legend>\n        {% csrf_token %}\n        {{ form|as_bootstrap }}\n        <div class=\"form-actions\">\n          <a href=\"#back\" class=\"btn\">Go back</a>\n          <button type=\"submit\" class=\"btn btn-primary\">Save changes</button>\n        </div>\n    </form>\n\n\nSpecifying Form Layouts\n-----------------------\n\nBootstrap includes styles for three types of forms. To change the display of\nyour form, add one of the following class attributes to your form tag and\nuse the appropriate template filter:\n\n================   ======================================   ========================================\n    Class          Template filter                                Description\n================   ======================================   ========================================\n.form-vertical     ``{{ form|as_bootstrap }}``              Labels over controls (default)\n.form-horizontal   ``{{ form|as_bootstrap_horizontal }}``   Labels on same line as controls\n.form-inline       ``{{ form|as_bootstrap_inline }}``       Compact style with inline-block controls\n================   ======================================   ========================================\n\n\nDocumentation\n--------------\n\nThe ``django-forms-bootstrap`` documentation is currently under construction. If you would like to help us write documentation, please join our Pinax Project Slack team and let us know! The Pinax documentation is available at http://pinaxproject.com/pinax/.\n\n\nContribute\n----------------\n\nSee this blog post http://blog.pinaxproject.com/2016/02/26/recap-february-pinax-hangout/ including a video, or our How to Contribute (http://pinaxproject.com/pinax/how_to_contribute/) section for an overview on how contributing to Pinax works. For concrete contribution ideas, please see our Ways to Contribute/What We Need Help With (http://pinaxproject.com/pinax/ways_to_contribute/) section.\n\nIn case of any questions we recommend you join our Pinax Slack team (http://slack.pinaxproject.com) and ping us there instead of creating an issue on GitHub. Creating issues on GitHub is of course also valid but we are usually able to help you faster if you ping us in Slack.\n\nWe also highly recommend reading our Open Source and Self-Care blog post (http://blog.pinaxproject.com/2016/01/19/open-source-and-self-care/).  \n\n\nLicense & Attribution\n---------------------\n\nDjango Forms Bootstrap is released under the MIT license. It does not include\nany styles or scripts from the Bootstrap project.\n\n\nCode of Conduct\n----------------\n\nIn order to foster a kind, inclusive, and harassment-free community, the Pinax Project has a code of conduct, which can be found here  http://pinaxproject.com/pinax/code_of_conduct/. \nWe ask you to treat everyone as a smart human programmer that shares an interest in Python, Django, and Pinax with you.\n\n\n\nPinax Project Blog and Twitter\n-------------------------------\n\nFor updates and news regarding the Pinax Project, please follow us on Twitter at @pinaxproject and check out our blog http://blog.pinaxproject.com.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "a simple form filter for using Django forms with Bootstrap",
    "version": "3.1.0",
    "project_urls": {
        "Download": "UNKNOWN",
        "Homepage": "http://github.com/pinax/django-forms-bootstrap"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f2bd6bff32d77e093ed7a5804591b8a4dd46f1ccd621129fdcad84afc6d8be30",
                "md5": "401b9410043064a79204182e3326ac96",
                "sha256": "50d69baf6c6f262f6ae3651096b52c31552cb75d37493f0c917ce2c16d13f0d9"
            },
            "downloads": -1,
            "filename": "django_forms_bootstrap-3.1.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "401b9410043064a79204182e3326ac96",
            "packagetype": "bdist_wheel",
            "python_version": "3.5",
            "requires_python": null,
            "size": 9541,
            "upload_time": "2017-04-17T14:27:20",
            "upload_time_iso_8601": "2017-04-17T14:27:20.443532Z",
            "url": "https://files.pythonhosted.org/packages/f2/bd/6bff32d77e093ed7a5804591b8a4dd46f1ccd621129fdcad84afc6d8be30/django_forms_bootstrap-3.1.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c214e80f3fefad1e5ec0a7031e6810b0e75b18914250b697a584dd0b8f6c3935",
                "md5": "038a0d1533a7682c0754047f14b6a1a3",
                "sha256": "ffc6d2b9fba03e2366884e82f613daf1284702e9346746e0e9de299db8138d6f"
            },
            "downloads": -1,
            "filename": "django-forms-bootstrap-3.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "038a0d1533a7682c0754047f14b6a1a3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 6270,
            "upload_time": "2017-04-17T14:27:18",
            "upload_time_iso_8601": "2017-04-17T14:27:18.438525Z",
            "url": "https://files.pythonhosted.org/packages/c2/14/e80f3fefad1e5ec0a7031e6810b0e75b18914250b697a584dd0b8f6c3935/django-forms-bootstrap-3.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2017-04-17 14:27:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pinax",
    "github_project": "django-forms-bootstrap",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "django-forms-bootstrap"
}
        
Elapsed time: 0.17524s