scipost.templatetags.bootstrap module

scipost.templatetags.bootstrap.bootstrap(element, args='2, 10', extra_classes='')[source]

Pass arguments to tag by separating them using a comma “,”.

Arguments: – 1. Column width for label – 2. Column width for input – 3. Additional argument ‘sm’ or ‘lg’ for form groups.

scipost.templatetags.bootstrap.bootstrap_inline(element, args='2, 10')[source]
scipost.templatetags.bootstrap.bootstrap_grouped(element, args='2, 10')[source]
scipost.templatetags.bootstrap.add_input_classes(field, extra_classes='')[source]
scipost.templatetags.bootstrap.add_css_class(field, extra_class)[source]

Add additional CSS classes to a field in the template.

scipost.templatetags.bootstrap.render(element, markup_classes)[source]
scipost.templatetags.bootstrap.is_autocomplete(field)[source]
scipost.templatetags.bootstrap.is_checkbox(field)[source]
scipost.templatetags.bootstrap.is_multiple_checkbox(field)[source]
scipost.templatetags.bootstrap.is_radio(field)[source]
scipost.templatetags.bootstrap.is_file(field)[source]