{% macro render_field(field) %}
{{ field.label }} : {{ field()|safe }} {% if field.errors %} {% endif %}
{% endmacro %} {% macro render_logo(logo_form, titre=None) %} {% if titre %}

{{ titre }}


{% endif %}

{{ logo_form.form.description }} Image actuelle:

pas de logo chargé
{{ logo_form.form.dept_id() }} {{ logo_form.form.logo_id() }} Nom: {{ logo_form.form.logo.logoname }}
{# {{ logo_form.form.description }}
#} Format: {{ logo_form.logo.suffix }}
Taille en px: {{ logo_form.logo.size }}
{% if logo_form.logo.mm %} Taile en mm: {{ logo_form.logo.mm }}
{% endif %} Aspect ratio: {{ logo_form.logo.aspect_ratio }}

Usage: {{ logo_form.logo.get_usage() }}
{{ render_field(logo_form.upload) }} {% if logo_form.can_delete %} {{ render_field(logo_form.do_delete) }} {% endif %} {% endmacro %} {#{% block app_content %}#} {% if scodoc_dept %}

Logos du département {{ scodoc_dept }}

{% else %}

Configuration générale

{% endif %}
{{ form.hidden_tag() }} {% if not scodoc_dept %}
Les paramètres donnés ici s'appliquent à tout ScoDoc (tous les départements):
{{ render_field(form.bonus_sport_func_name)}} {% endif %}
{{ form.submit() }}
{#{% endblock %}#}