{%- extends 'babase.j2' -%} {# -*- Base des pages ordinaires, dans départements -*- #} {% block styles %} {{super()}} {# #} {% endblock %} {% block title %} {% if title %}{{ title }} - ScoDoc{% else %}ScoDoc{% endif %} {% endblock %} {% block content %} {% block scodoc_sidebar %} {% include "sidebar.j2" %} {% endblock %}
{% include "flashed_messages.j2" %} {% if sco.formsemestre %} {% block formsemestre_header %} {% include "formsemestre_header.j2" %} {% endblock %} {% endif %}
{% block app_content %} {{ content | safe }} {% endblock %}
{% endblock %} {% block scripts %} {{ super() }} {% endblock %} {% macro render_field_errors(form, field_name) %} {% if form[field_name].errors %}
{% for error in form[field_name].errors %} {{ error }} {% endfor %}
{% endif %} {% endmacro %}