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
30 lines
1.4 KiB
HTML
30 lines
1.4 KiB
HTML
{% load i18n lucide %}
|
|
|
|
{% comment %}
|
|
A daisyUI native <dialog> confirmation modal for a destructive POST action with no
|
|
fields of its own. Included with `modal_id`, `title`, `body`, `action_url`, and
|
|
optional `submit_label` (default "Confirm"), `submit_icon` (default "trash-2"). The
|
|
submit button sits outside the form tag (linked via the `form` attribute), same as
|
|
`_modal_form.html`, so it can share the `modal-action` row with the dialog-closing
|
|
Cancel button without nesting one <form> inside another.
|
|
{% endcomment %}
|
|
{% trans "Confirm" as default_submit_label %}
|
|
<dialog id="{{ modal_id }}" class="modal">
|
|
<div class="modal-box">
|
|
<h3 class="text-lg font-bold">{{ title }}</h3>
|
|
<p class="py-2 text-sm opacity-70">{{ body }}</p>
|
|
<form method="post" action="{{ action_url }}" id="{{ modal_id }}-form">
|
|
{% csrf_token %}
|
|
</form>
|
|
<div class="modal-action">
|
|
<form method="dialog">
|
|
<button class="btn btn-outline gap-2">{% lucide "x" size=16 %} {% trans "Cancel" %}</button>
|
|
</form>
|
|
<button class="btn btn-error gap-2" type="submit" form="{{ modal_id }}-form">{% lucide submit_icon|default:"trash-2" size=16 %} {{ submit_label|default:default_submit_label }}</button>
|
|
</div>
|
|
</div>
|
|
<form method="dialog" class="modal-backdrop">
|
|
<button>close</button>
|
|
</form>
|
|
</dialog>
|