A large batch of club-management features built up over one session: - Club dashboard banner warning admins 1 month before billing ends - Full Events/EventSeries CRUD (recurrence builder, occurrence lifecycle, per-team permissions), with match->game rename and game-specific fields (score, competition, live status, external game ID) - Django-admin competition dropdown, gated per-club by feature flag - Auto-import of RBIHF fixtures (scrape -> diff -> preview -> confirm), with location/opponent dropdowns suggested from existing club data - Feature-flag-gated Shop/Forms nav sections, reusing the same flag machinery for the RBIHF import button - Team roster now scoped to members active this season or next, sorted and grouped by position - Club sport type (ice hockey / other), shown in the control panel's club subtitle - Per-season team photo upload from the team page - New public read-only API (Django Ninja) at /api/v1/: news, team rosters, upcoming/live/per-team games, and sponsors -- auto-documented via Swagger UI, CORS-enabled for a club's own external website - Club sponsors: admin-only CRUD (logo, URL, active date window) plus a date-windowed, optionally randomized API endpoint - Assorted fixes: NullBooleanField dropdown rendering, cross-club event validation timing, searchable-select chip placement, btn-neutral -> default button style sweep, calendar-month chart windows Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01R1gj3J1QPfP38XWpnpbFpy
42 lines
1.8 KiB
HTML
42 lines
1.8 KiB
HTML
{% extends "controlpanel/base.html" %}
|
|
{% load lucide %}
|
|
|
|
{% block heading %}{% if show_archived %}Archived clubs{% else %}Clubs{% endif %}{% endblock heading %}
|
|
|
|
{% block actions %}
|
|
{% if show_archived %}
|
|
<a class="btn btn-outline" href="{% url 'controlpanel:club_list' %}">{% lucide "archive-x" size=16 %} Hide archived clubs</a>
|
|
{% else %}
|
|
<a class="btn btn-outline" href="{% url 'controlpanel:club_list' %}?archived=1">{% lucide "archive" size=16 %} Show archived clubs</a>
|
|
{% endif %}
|
|
<a class="btn btn-primary gap-2" href="{% url 'controlpanel:club_create' %}">{% lucide "plus" size=16 %} New club</a>
|
|
{% endblock actions %}
|
|
|
|
{% block panel %}
|
|
<form method="get" class="mb-4 flex gap-2">
|
|
{% if show_archived %}<input type="hidden" name="archived" value="1">{% endif %}
|
|
<label class="input">
|
|
<span class="opacity-50">{% lucide "search" size=16 %}</span>
|
|
<input type="search"
|
|
name="q"
|
|
value="{{ search }}"
|
|
placeholder="Search clubs…"
|
|
class="input input-bordered w-full max-w-xs">
|
|
</label>
|
|
|
|
<button class="btn btn-outline gap-2" type="submit">{% lucide "search" size=16 %} Search</button>
|
|
{% if search %}
|
|
<a class="btn btn-primary gap-2" href="{% url "controlpanel:club_list" %}">{% lucide "x" size=16 %} Clear filter</a>
|
|
{% endif %}
|
|
</form>
|
|
<div class="card bg-base-100 shadow">
|
|
<div class="card-body">
|
|
{% if show_archived %}
|
|
{% include "controlpanel/_club_health_table.html" with empty_message="No archived clubs." %}
|
|
{% else %}
|
|
{% include "controlpanel/_club_health_table.html" %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endblock panel %}
|