Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinax/django-forms-bootstrap
Bootstrap filter and templates for use with Django forms
https://github.com/pinax/django-forms-bootstrap
Last synced: 3 months ago
JSON representation
Bootstrap filter and templates for use with Django forms
- Host: GitHub
- URL: https://github.com/pinax/django-forms-bootstrap
- Owner: pinax
- Created: 2012-05-03T05:03:55.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2018-07-05T08:15:06.000Z (over 6 years ago)
- Last Synced: 2024-05-22T13:32:30.930Z (6 months ago)
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 174
- Watchers: 18
- Forks: 49
- Open Issues: 13
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
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: ::
My Form
{% csrf_token %}
{{ form|as_bootstrap }}
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.