{% for lecon in lecons[module.id] %}
{# {% if lecon.active == true and (lecon.testfinal == false or (lecon.testfinal == true and module.modulecomplete == true)) %}#}
{% if lecon.active == true %}
{% set keyInfoSupp = formation.id ~ '_' ~ module.id ~ '_' ~ lecon.id %}
{% set bgClass="bg-success" %}
{% if (completude[keyInfoSupp] == 0) %}
{% set bgClass="bg-secondary" %}
{% elseif (completude[keyInfoSupp] < 20) %}
{% set bgClass="bg-danger" %}
{% elseif (completude[keyInfoSupp] < 70) %}
{% set bgClass="bg-warning" %}
{% endif %}
{% endif %}
{% endfor %}