{% load lucide %} {% comment %} The club table, shared by the dashboard and the clubs list so the two cannot drift apart. Health, not vanity: a member total says nothing you can act on, while "no coach", "nothing scheduled", "€ owed" and "no admins" each name something somebody has to go and fix. Every column is annotated by clubs_with_health() in a single query. Expects: clubs (from clubs_with_health), and optionally empty_message. {% endcomment %}
{% for club in clubs %} {% empty %} {% endfor %}
Club Members Admins Teams Events Plan Dues
{% if club.logo %} {{ club.name }} {% else %}
{{ club.initials }}
{% endif %}
{{ club.name }}
{{ club.slug }}.rosterchief.app
{% if club.is_archived %} {% lucide "archive" size=14 %} archived {% else %} {% if not club.has_season %} {% lucide "calendar-x" size=14 %} no seasons {% endif %} {% if not club.upcoming_events %} {% lucide "moon-star" size=14 %}dormant {% endif %} {% endif %}
{{ club.active_members }}
{% if not club.admin_count %} {% lucide "triangle-alert" size=16 %} {% endif %} {{ club.admin_count }}
{{ club.team_count }} {{ club.upcoming_events }} {% if club.tier_name %} {{ club.tier_name|lower }} {% else %} n/a {% endif %}
{% if not club.dues_owed %} {% if club.tier_name %} paid {% else %} n/a {% endif %} {% else %} €{{ club.dues_owed|floatformat:2 }} {% if club.dues_grace_until < today %} overdue {% elif club.dues_period_end < today %} grace {% endif %} {% endif %}
{% lucide "pencil" size=14 %} Edit
{{ empty_message|default:"No clubs yet." }}