{% 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 %}
| Club | Members | Admins | Teams | Events | Plan | Dues | Plan end | ||
|---|---|---|---|---|---|---|---|---|---|
|
{% if club.logo %}
{{ club.initials }}
{{ 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 %} - {% endif %} |
{% if not club.dues_owed %}
{% if club.tier_name %}
{% comment %}
Not owing and on a plan. covered_until is the settled period's end — the day
grace would start if nothing renews — shown on its own row under the badge,
for a paid period AND a waived one (both cover the club, they just differ in
how). No covered period at all (only cancelled dues, say) shows a dash.
{% endcomment %}
{% if club.covered_status == "waived" %}
waived
{% elif club.covered_until %}
paid
{% else %}
-
{% endif %}
{% else %}
-
{% endif %}
{% else %}
€{{ club.dues_owed|floatformat:2 }}
{% if club.dues_grace_until < today %}
overdue
{% elif club.dues_period_end < today %}
grace
{% endif %}
{% endif %}
|
{{ club.covered_until|date:"j M Y"|default:"-" }} | {% lucide "pencil" size=14 %} Edit |
| {{ empty_message|default:"No clubs yet." }} | |||||||||