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
43 lines
1.9 KiB
HTML
43 lines
1.9 KiB
HTML
{% extends "management/base.html" %}
|
|
{% load lucide ui i18n %}
|
|
|
|
{% block heading %}{% trans "Add family" %}{% endblock heading %}
|
|
|
|
{% block panel %}
|
|
<div class="card card-body">
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
|
|
{% for error in form.non_field_errors %}
|
|
<div class="alert alert-error my-2">
|
|
<span>{{ error }}</span>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
<h2 class="card-title">{% lucide "user" size=18 %} {% trans "Parent / guardian" %}</h2>
|
|
<p class="text-sm text-muted">{% trans "Gets a login -- they set a password via the reset link if this is a new email." %}</p>
|
|
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
|
|
{% form_field form.parent_first_name %}
|
|
{% form_field form.parent_last_name %}
|
|
{% form_field form.parent_email %}
|
|
{% form_field form.parent_is_member %}
|
|
</div>
|
|
|
|
<div class="my-2 h-px bg-rule"></div>
|
|
|
|
<h2 class="card-title">{% lucide "baby" size=18 %} {% trans "Child" %}</h2>
|
|
<p class="text-sm text-muted">{% trans "No login of their own -- the parent above manages things for them." %}</p>
|
|
<div class="grid grid-cols-1 gap-4 md:grid-cols-2">
|
|
{% form_field form.child_first_name %}
|
|
{% form_field form.child_last_name %}
|
|
{% form_field form.child_date_of_birth %}
|
|
</div>
|
|
|
|
<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 "save" size=16 %} {% trans "Save" %}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock panel %}
|