from datetime import datetime, timedelta
from django import template
+from django.conf import settings
from django.utils.html import format_html, format_html_join
from django.utils.timesince import timesince
from django.utils.timezone import now
def get_params_as_hidden(context, *params):
return format_html_join('\n', u'<input type="hidden" name="{}" value="{}">',
((param, v) for param in params for v in context['request'].GET.getlist(param, [])))
+
+
+@register.inclusion_tag('qcg/tags/bootstrap_checkbox.html')
+def bootstrap_checkbox(field, label_class=settings.BOOTSTRAP3['horizontal_label_class'],
+ field_class=settings.BOOTSTRAP3['horizontal_field_class']):
+ return {'field': field, 'label_class': label_class, 'field_class': field_class}