{% for p_id, p_name in pillars.items() %}
{{ p_id }} - {{ p_name }}
{% for c_pillar, c_id, c_title, c_desc, c_choices in criteria %}
{% if c_pillar == p_id %}
{% set current_val = scores_map[c_id].value if scores_map and c_id in scores_map else -1 %}
{% set current_justif = scores_map[c_id].justification if scores_map and c_id in scores_map else '' %}
{% set current_source = scores_map[c_id].source if scores_map and c_id in scores_map else '' %}
{% endif %}
{% endfor %}
{% endfor %}