{% macro table(title, titleLeft, titleRight, object, dmin, dmax, unite, sbasid) %}
{% if object|length > 0 %}
{{ title }}
{{ titleLeft }} |
{{ titleRight }} |
{% for key, value in object %}
{% if value.id == "false" %}
{{ value.lib|e }} |
{% else %}
{% if sbasid == "true" %}
{{ value.lib|e }} |
{% else %}
{{ value.lib|e }} |
{% endif %}
{% endif %}
{{ unite == "true" ? value.nb | formatOctets : value.nb }} |
{% endfor %}
{{ dmin }} - {{ dmax }} |
{% endif %}
{% endmacro %}
{% macro top_ten_question(home_title, title_left, title_right, item, dmin, dmax)%}
{% if item|length > 0 %}
{% trans with {'%home_title%' : home_title} %}report:: Volumetrie des questions posees sur %home_title%{% endtrans %}
{{ title_left }} |
{{ title_right }} |
{% for key, value in item %}
{{ value.lib|e }} |
{{ value.nb }} |
{% endfor %}
{{ dmin }} - {{ dmax }} |
{%endif%}
{% endmacro %}
{% macro connexion_download(title, title_left, title_right, itemco, itemdl, dmin, dmax ) %}
{{ title }}
{{ title_left }} |
{{ title_right }} |
{{ itemco }} |
{{ itemdl }} |
{{ dmin }} - {{ dmax }} |
{% endmacro %}
{% macro table_activity( id, title, title_abscisse, item) %}
{% if item|length > 0 %}
{{ title }}
|
{% for key in item|keys %}
{{ key }} |
{% endfor %}
{% if title_abscisse|length > 0 %}
{{ title_abscisse }}
{% endif %}
|
{% for value in item %}
{{ value }} |
{% endfor %}
{% endif %}
{% endmacro %}