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
61 lines
2.4 KiB
HTML
61 lines
2.4 KiB
HTML
{% extends "management/base.html" %}
|
|
{% load i18n lucide static %}
|
|
|
|
{% block heading %}{% trans "Add multiple members" %}{% endblock heading %}
|
|
|
|
{% block topbar_context %}
|
|
<span class="font-mono text-[13px] text-muted">{{ group.name }}</span>
|
|
{% endblock topbar_context %}
|
|
|
|
{% block panel %}
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
{{ formset.management_form }}
|
|
|
|
<div class="card card-body">
|
|
{% for error in formset.non_form_errors %}
|
|
<div class="alert alert-error my-2">
|
|
<span>{{ error }}</span>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
{% comment %}
|
|
The member picker's dropdown (searchable-select.js) is position: fixed,
|
|
computed from the input's own screen position rather than document flow,
|
|
so no ancestor scroll wrapper is needed to keep it from being clipped.
|
|
{% endcomment %}
|
|
<table class="table w-full">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans "Member" %}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="bulk-add-rows" data-prefix="{{ formset.prefix }}">
|
|
{% for form in formset %}
|
|
{% include "management/_group_bulk_add_row.html" with form=form %}
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<template id="bulk-add-row-template">
|
|
{% include "management/_group_bulk_add_row.html" with form=formset.empty_form %}
|
|
</template>
|
|
|
|
<div class="mt-2 flex flex-wrap items-center gap-2">
|
|
<button class="btn btn-outline btn-sm gap-2" type="button" id="add-row">{% lucide "plus" size=14 %} {% trans "Add another row" %}</button>
|
|
<button class="btn btn-primary btn-sm gap-2" type="submit">{% lucide "users" size=14 %} {% trans "Add to group" %}</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
<a class="btn btn-outline gap-2" href="{% url 'management:group_detail' group.pk %}">{% lucide "arrow-left" size=16 %} {% trans "Back" %}</a>
|
|
</div>
|
|
</form>
|
|
{% endblock panel %}
|
|
|
|
{% block extra_body %}
|
|
<script src="{% static 'js/searchable-select.js' %}"></script>
|
|
<script src="{% static 'js/bulk-add-rows.js' %}"></script>
|
|
{% endblock extra_body %}
|