Large uncommitted body of work accumulated across sessions on this branch -- committing as a checkpoint so it's tracked and future worktree-isolated agents see the real codebase instead of a stale ancestor commit. Covers the management app's dedicated Tailwind theme and templates, the club onboarding requirement/signup workflow (club/services/onboarding.py, requirement/status models, sign-up dashboard), fee/status auto-activation decoupling, referee management, and the new events calendar grid service layer. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ECGMEwrc2k4D8VQuwjstj9
41 lines
1.8 KiB
HTML
41 lines
1.8 KiB
HTML
{% extends "management/base.html" %}
|
|
{% load lucide ui i18n %}
|
|
|
|
{% block heading %}{% trans "Mass upload members" %}{% endblock heading %}
|
|
|
|
{% block actions %}
|
|
<a class="btn btn-outline gap-2" href="{% url 'management:member_import_template' %}">{% lucide "download" size=16 %} {% trans "Download template" %}</a>
|
|
{% endblock actions %}
|
|
|
|
{% block panel %}
|
|
<div class="card card-body">
|
|
<p class="text-sm text-muted">
|
|
{% blocktrans %}Fill in the downloaded template — one row per member — then upload it
|
|
here. Nothing is created yet: you'll see exactly what will be added
|
|
before anything is saved.{% endblocktrans %}
|
|
</p>
|
|
<p class="text-sm text-muted">
|
|
{% blocktrans %}To register a family, give matching rows the same <code>family_group</code> value (any label works, e.g. a surname) and set each row's <code>family_role</code>. A parent/guardian row with an email gets a login; a child row doesn't — grant one later from their member page if they need it.{% endblocktrans %}
|
|
</p>
|
|
|
|
<form method="post" enctype="multipart/form-data">
|
|
{% csrf_token %}
|
|
|
|
{% for error in form.non_field_errors %}
|
|
<div class="alert alert-error my-2">
|
|
<span>{{ error }}</span>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% for field in form %}
|
|
{% form_field field %}
|
|
{% endfor %}
|
|
|
|
<div class="mt-2 flex items-center gap-2 pt-2">
|
|
<a class="btn btn-outline gap-2" href="{% url 'management:member_list' %}">{% lucide "arrow-left" size=16 %} {% trans "Cancel" %}</a>
|
|
<button class="btn btn-primary gap-2" type="submit">{% lucide "upload" size=16 %} {% trans "Upload and preview" %}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock panel %}
|