{% load i18n lucide %} {% comment %} The two-level sidebar (design_handoff_rosterchief_platform/README.md, D1/D2): seven top-level sections -- Overview/Members/Teams/Calendar/News/Finance/Settings -- each except News expanding into sub-items while it (or a sub-item) is active. `nav`/ `nav_section` come from management.context_processors.active_nav_section. Admin-only sub-items are hidden here for plain staff -- the views are gated regardless (ClubAdminRequiredMixin), this is just so the nav never shows a link they can't follow. Same reasoning as the old flat nav this replaces. {% endcomment %} {% lucide "layout-dashboard" size=17 %} {% trans "Overview" %}
{% lucide "users" size=17 %} {% trans "Members" %} {% if nav_section == 'members' %}
{% trans "All members" %} {% if is_club_admin %} {# Sign-up is admin only (finance-adjacent -- fee status feeds it) even though parent claims/households/groups below open up to MEMBER_ADMIN too. #} {% trans "Sign-up" %} {% endif %} {% if can_manage_members %} {# Membership dues/fee tracking (management:membership_list) lives under Finance, not here -- see that section below. #} {% endif %} {% trans "Households" %} {% if can_manage_members %} {% trans "Groups" %} {% comment %} Placeholder -- nothing else is built yet (see ARCHITECTURE.md §5.8 and management.views.EvaluationsComingSoonView). Gated on forms_enabled, same as Forms below: the design (ARCHITECTURE.md §5.8) reuses formbuilder underneath, so a club without that flag shouldn't see it either. {% endcomment %} {% if forms_enabled %} {% trans "Evaluations" %} {% trans "Soon" %} {% endif %} {% endif %}
{% endif %}
{% lucide "shirt" size=17 %} {% trans "Teams" %} {% if nav_section == 'teams' %}
{% trans "All teams" %} {% trans "Referees" %}
{% endif %}
{% lucide "calendar" size=17 %} {% trans "Calendar" %} {% if nav_section == 'calendar' %}
{% trans "Events" %} {% if has_management_position %} {% trans "Locations" %} {% trans "Opponents" %} {% endif %} {% if is_club_admin or can_manage_members %} {% trans "Referee management" %} {% if games_missing_referees_count %}{{ games_missing_referees_count }}{% endif %} {% endif %}
{% endif %}
{% lucide "newspaper" size=17 %} {% trans "News" %} {% if is_club_admin %}
{% lucide "wallet" size=17 %} {% trans "Finance" %} {% if nav_section == 'finance' %}
{% trans "Dues & billing" %} {% trans "Sponsors" %} {% if shop_enabled %} {% trans "Products" %} {% trans "Orders" %} {% trans "Discounts" %} {% trans "Invoices" %} {% endif %}
{% endif %}
{% endif %} {% if is_club_admin or can_manage_members %}
{# MEMBER_ADMIN has no Club identity access, so their landing click on "Settings" itself goes to the first sub-item they can actually reach. #} {% lucide "settings" size=17 %} {% trans "Settings" %} {% if nav_section == 'settings' %}
{% if is_club_admin %} {% trans "Club identity" %} {% endif %} {% trans "Onboarding requirements" %} {% if is_club_admin %} {% trans "Roles" %} {% trans "Positions" %} {% endif %} {% trans "Referee levels" %} {% if is_club_admin %} {% if forms_enabled %} {% trans "Forms" %} {% endif %} {% endif %}
{% endif %}
{% endif %}