-
Notifications
You must be signed in to change notification settings - Fork 681
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
157 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
======= | ||
Credits | ||
Authors | ||
======= | ||
|
||
Development Lead | ||
---------------- | ||
|
||
* Dylan Verheul <dylan.verheul@gmail.com> | ||
* Dylan Verheul <dylan@dyve.net> | ||
|
||
Contributors | ||
------------ | ||
|
||
Allard Stijnman <a.g.stijnman@gmail.com> | ||
Austin Whittier <austin.whitt@gmail.com> | ||
Caio Ariede <caio.ariede@gmail.com> | ||
Fabio C. Barrionuevo da Luz <bnafta@gmail.com> | ||
Jay Pipes <jaypipes@gmail.com> | ||
Jonas Hagstedt <hagstedt@gmail.com> | ||
Jordan Starcher <jstarcher@gmail.com> | ||
Juan Carlos <juancarlospaco@gmail.com> | ||
Markus Holtermann <info@markusholtermann.eu> | ||
Nick S <nsmith448@gmail.com> | ||
Owais Lone <loneowais@gmail.com> | ||
Richard Hajdu <tuskone16@gmail.com> | ||
pmav99 <pmav99@users.noreply.github.com> | ||
* Allard Stijnman <a.g.stijnman@gmail.com> | ||
* Austin Whittier <austin.whitt@gmail.com> | ||
* Caio Ariede <caio.ariede@gmail.com> | ||
* Fabio C. Barrionuevo da Luz <bnafta@gmail.com> | ||
* Jay Pipes <jaypipes@gmail.com> | ||
* Jonas Hagstedt <hagstedt@gmail.com> | ||
* Jordan Starcher <jstarcher@gmail.com> | ||
* Juan Carlos <juancarlospaco@gmail.com> | ||
* Markus Holtermann <info@markusholtermann.eu> | ||
* Nick S <nsmith448@gmail.com> | ||
* Owais Lone <loneowais@gmail.com> | ||
* Richard Hajdu <tuskone16@gmail.com> | ||
* pmav99 <pmav99@users.noreply.github.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.. code:: django | ||
{# Load the tag library #} | ||
{% load bootstrap3 %} | ||
{# Load CSS and JavaScript #} | ||
{% bootstrap_css %} | ||
{% bootstrap_javascript %} | ||
{# Display django.contrib.messages as Bootstrap alerts #} | ||
{% bootstrap_messages %} | ||
{# Display a form #} | ||
<form action="/url/to/submit/" method="post" class="form"> | ||
{% csrf_token %} | ||
{% bootstrap_form form %} | ||
{% buttons %} | ||
<button type="submit" class="btn btn-primary"> | ||
{% bootstrap_icon "star" %} Submit | ||
</button> | ||
{% endbuttons %} | ||
</form> | ||
{# Read the documentation for more information #} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
========== | ||
Quickstart | ||
========== | ||
|
||
After :doc:`installation`, you can use ``django-bootstrap3`` in your templates.: | ||
|
||
Load the ``bootstrap3`` library and use the ``bootstrap_*`` tags: | ||
|
||
|
||
Example template | ||
---------------- | ||
|
||
.. include:: example_template.rst | ||
|
||
|
||
Template tags and filters | ||
------------------------- | ||
|
||
Refer to :doc:`templatetags` for more information. | ||
|
||
|
||
Settings | ||
-------- | ||
|
||
You can set defaults for ``django-bootstrap3`` in your settings file. Refer to :doc:`settings` for more information. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
======== | ||
Settings | ||
======== | ||
|
||
The django-bootstrap3 has some pre-configured settings. | ||
|
||
They can be modified by adding a dict variable called ``BOOTSTRAP3`` in your ``settings.py`` and customizing the values you want; | ||
|
||
The ``BOOTSTRAP3`` dict variable is configured by default to the following values: | ||
|
||
|
||
.. code:: django | ||
# Default settings | ||
BOOTSTRAP3_DEFAULTS = { | ||
'jquery_url': '//code.jquery.com/jquery.min.js', | ||
'base_url': '//netdna.bootstrapcdn.com/bootstrap/3.1.1/', | ||
'css_url': None, | ||
'theme_url': None, | ||
'javascript_url': None, | ||
'javascript_in_head': False, | ||
'include_jquery': False, | ||
'horizontal_label_class': 'col-md-2', | ||
'horizontal_field_class': 'col-md-4', | ||
'set_required': True, | ||
'form_required_class': '', | ||
'form_error_class': '', | ||
'form_renderers': { | ||
'default': 'bootstrap3.renderers.FormRenderer', | ||
}, | ||
'field_renderers': { | ||
'default': 'bootstrap3.renderers.FieldRenderer', | ||
'inline': 'bootstrap3.renderers.InlineFieldRenderer', | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.