{% extends 'base.html' %} {% block content %}

Admin – Coach Votes

{# Define a shared palette once. Add more colors if you add more coaches. #} {% set palette = ['#2563eb', '#16a34a', '#7c3aed', '#dc2626', '#f59e0b'] %}
Color key: {% for c in coaches %} {{ c.name }} {% endfor %}
{% for a in awards %}
{{ a.name }}
{{ a.description }}
{% for c in coaches %} {% set pname = matrix[a.id][c.id] %} {% set color = palette[loop.index0 % palette|length] %} {% if pname %} {{ pname }} {% else %} {% endif %} {% endfor %}
{% endfor %}
{% endblock %}