{%- macro nav_link(endpoint, text, target_blank=False, period_dependant=True, dropdown=True) -%} {%- if request.endpoint.split(".")[1] == endpoint.split(".")[1] %} {%- set active = " active" %} {%- elif endpoint.split(".")[1][:-1] in request.endpoint.split(".")[1] %} {%- set active = " active" %} {%- else %} {%- set active = "" %} {%- endif %} {%- if dropdown %} {{ text }} {%- else %} {%- endif %} {%- endmacro -%} {%- macro common_form(form, target, submit_caption, file=False) -%}
{% for field in form %} {% if field.name == "csrf_token" -%} {{ field() }} {% elif field.type == "BooleanField" -%}
{{ field(class="form-check-input") }} {{ field.label(class="form-check-label") }}
{%- else -%}
{{ field.label() }} {{ field(class="form-control") }}
{% endif -%} {% endfor %}
{%- endmacro -%} {%- macro nav_dropdown_item(name, items) -%} {%- endmacro -%} {%- macro accordion_item(heading, content, meta_name, data_parent, collapsed=True) -%}

{%- endmacro -%}