distro_tracker.html

Various helpers to build better HTML.

distro_tracker.html.templatetags.bootstrap

Template tags to inject bootstrap-specific content on various elements.

distro_tracker.html.templatetags.bootstrap.bootstrap(element)[source]

Apply normal bootstrap formatting to a form.

distro_tracker.html.templatetags.bootstrap.bootstrap_inline(element)[source]

Apply inline bootstrap formatting to a form.

distro_tracker.html.templatetags.bootstrap.bootstrap_horizontal(element, label_cols=None)[source]

Apply horizontal bootstrap formatting to a form.

distro_tracker.html.templatetags.bootstrap.add_input_classes(field)[source]

Add bootstrap classes to a field.

distro_tracker.html.templatetags.bootstrap.render(element, markup_classes)[source]

Render various elements with our custom templates.

distro_tracker.html.templatetags.bootstrap.is_checkbox(field)[source]

Return True if the field is a Checkbox, False otherwise.

distro_tracker.html.templatetags.bootstrap.is_multiple_checkbox(field)[source]

Return True if the field is a MultipleCheckbox, False otherwise.

distro_tracker.html.templatetags.bootstrap.is_radio(field)[source]

Return True if the field is a radio selector, False otherwise.

distro_tracker.html.templatetags.bootstrap.is_file(field)[source]

Return True if the field is a file selector, False otherwise.