{% extends base_template %} {% from "macros/box.html" import m_box_content with context %} {% from "forum/_macros.html" import forum_menu %} {%- macro m_field(field, horizontal=False, label_width=2, field_width=8) %} {%- set is_hidden = field.is_hidden or field.type in ('CSRFTokenField', 'HiddenField') %} {%- set with_label = kwargs.pop('with_label', not is_hidden) %} {%- set placeholder = '' %} {%- if not with_label %} {%- set placeholder = field.label.text %} {%- endif %} {%- set css_class = kwargs.pop('class_', '') %} {%- set standard_field = field.type not in ('CSRFTokenField',) %} {%- if standard_field and field.type not in ('BooleanField',) %} {%- set css_class = 'form-control ' + css_class %} {%- endif %} {%- if field.flags.required %} {%- set css_class = css_class + ' required' %} {%- endif %} {%- if is_hidden %} {{ field(**kwargs) }} {%- else %}