Add bootstrap_inline filter
This commit is contained in:
@@ -10,6 +10,12 @@ def bootstrap(element):
|
||||
return render(element, markup_classes)
|
||||
|
||||
|
||||
@register.filter
|
||||
def bootstrap_inline(element):
|
||||
markup_classes = {'label': 'sr-only', 'value': '', 'single_value': ''}
|
||||
return render(element, markup_classes)
|
||||
|
||||
|
||||
@register.filter
|
||||
def bootstrap_horizontal(element, label_cols={}):
|
||||
if not label_cols:
|
||||
|
Reference in New Issue
Block a user