{% extends "mobile/base.html" %} {% load i18n %} {% comment %} M3 -- design_handoff_rosterchief_platform/README.md's M3 section: a full- width chronological agenda, grouped under "This week"/"Next week", then everything further out grouped by calendar month (see CalendarView's own docstring -- later_months is a list of {month_start, rows}). No person switcher and no club-wide toggle here -- always every event self.managed_people is invited to, full stop. A real, working ?kind= filter (All/Games/Practices) stands in for the design mock's "Games only" pill; its List/Month toggle isn't reproduced -- that's a second view mode, not a filter. -mx-4 (on the row groups only, not this filter row) breaks the rows out of base.html's shared page padding so they run edge-to-edge, matching the design canvas's own M3 markup. {% endcomment %} {% block header_extra %}
{% trans "Calendar" %}
{% endblock header_extra %} {% block content %}
{% trans "All" %} {% trans "Games" %} {% trans "Practices" %}
{% if not managed_people %}

{% trans "No one to show yet" %}

{% trans "Once you're linked to a member record, their schedule will show up here." %}

{% elif not this_week and not next_week and not later_months %}
{% if kind_filter == "game" %}

{% trans "No games scheduled." %}

{% elif kind_filter == "training" %}

{% trans "No practices scheduled." %}

{% else %}

{% trans "Nothing scheduled." %}

{% endif %}
{% else %} {% if this_week %}
{% trans "This week" %}
{% for row in this_week %} {% include "mobile/_calendar_row.html" %} {% endfor %}
{% endif %} {% if next_week %}
{% trans "Next week" %}
{% for row in next_week %} {% include "mobile/_calendar_row.html" %} {% endfor %}
{% endif %} {% for month in later_months %}
{{ month.month_start|date:"F Y" }}
{% for row in month.rows %} {% include "mobile/_calendar_row.html" %} {% endfor %}
{% endfor %} {% endif %}
{% endblock content %}