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
56 lines
2.5 KiB
HTML
56 lines
2.5 KiB
HTML
{% extends "management/base.html" %}
|
|
{% load i18n lucide %}
|
|
|
|
{% block heading %}{% trans "Positions" %}{% endblock heading %}
|
|
|
|
{% block actions %}
|
|
{% if is_club_admin %}
|
|
<a class="btn btn-primary gap-2" href="{% url 'management:position_create' %}">{% lucide "plus" size=16 %} {% trans "New position" %}</a>
|
|
{% endif %}
|
|
{% endblock actions %}
|
|
|
|
{% block panel %}
|
|
<div class="card overflow-hidden">
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>{% trans "Ordering" %}</th>
|
|
<th>{% trans "Name" %}</th>
|
|
<th>{% trans "Short name" %}</th>
|
|
<th>{% trans "Staff position" %}</th>
|
|
<th>{% trans "Management position" %}</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for position in positions %}
|
|
<tr>
|
|
<td class="font-mono text-muted">{{ position.ordering }}</td>
|
|
<td class="font-semibold text-ink">{{ position.name }}</td>
|
|
<td class="font-mono text-muted">{{ position.short_name }}</td>
|
|
<td>
|
|
<span class="badge badge-sm {% if position.staff_position %}badge-success{% else %}badge-ghost{% endif %}">
|
|
{% if position.staff_position %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<span class="badge badge-sm {% if position.management_position %}badge-success{% else %}badge-ghost{% endif %}">
|
|
{% if position.management_position %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}
|
|
</span>
|
|
</td>
|
|
<td class="text-right">
|
|
{% if is_club_admin %}
|
|
<a class="btn btn-outline btn-sm gap-2" href="{% url 'management:position_update' position.pk %}">{% lucide "pencil" size=14 %} {% trans "Edit" %}</a>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="6" class="text-center text-muted">{% trans "No positions yet." %}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{% endblock panel %}
|