{% block head %}{% endblock %} {% block title %}CRM{% endblock %} · Van Emous CRM {% if g.user %} {% endif %} {% block styles %}{% endblock %} {% block body %} {% set ep = request.endpoint or '' %}
{% set sq = request.args.get('q', '') if ep == 'search' else '' %} {% macro search_form(id, sq) %} {% endmacro %}
{{ search_form('q-top', sq) }}
{% if unread %}{{ unread }}{% endif %}
{% with msgs = get_flashed_messages(with_categories=true) %} {% for cat, m in msgs %}
{{ m }}
{% endfor %} {% endwith %} {% block content %}{% endblock %}
{% endblock %} {% block scripts %}{% endblock %}