{% extends "mobile/base.html" %} {% load i18n %} {% comment %} M1 -- design_handoff_rosterchief_platform/README.md's M1 section. The person switcher (chip row) sits in the white content area here, not the navy header -- matching the design canvas's own M1 markup, and Home is now the only screen that renders it at all (mobile/mixins.py's scope resolution still runs for every screen, but only Home's UI exposes it). Four independently-optional cards below it, scoped to people_in_scope -- everyone the account manages once there's more than one ("All", on by default), or just the one person picked from the chip row. A hero for the soonest upcoming event with a quick In/Out RSVP, a "needs your answer" list, a season-dues card per person who owes money, and a news teaser. {% endcomment %} {% block content %} {% if managed_people|length > 1 %}
{% trans "All" %} {% for person in managed_people %} {{ person.first_name|slice:":1" }} {% if person == me %}{% trans "Me" %}{% else %}{{ person.first_name }}{% endif %} {% endfor %}
{% endif %} {% if managed_people %} {% if hero_attendance %}

{% blocktrans with date=hero_attendance.event.start|date:"D d M" %}Next up · {{ date }}{% endblocktrans %}

{{ hero_attendance.event.title }}

{% blocktrans with time=hero_attendance.event.start|date:"H:i" %}{{ time }} face-off{% endblocktrans %} {% if hero_attendance.event.gathering %} {% blocktrans with time=hero_attendance.event.gathering|date:"H:i" %}Meet {{ time }}{% endblocktrans %} {% endif %} {% if hero_attendance.event.location %}{{ hero_attendance.event.location.name }}{% endif %}
{% if rsvp_closed %}

{% trans "Replies are closed for this event" %}

{{ hero_attendance.get_status_display }} {% else %}

{% blocktrans with name=hero_attendance.member.first_name %}{{ name }} — are you in?{% endblocktrans %}

{% csrf_token %}
{% csrf_token %}
{% endif %}
{% endif %} {% if needs_answer %}
{% trans "Needs your answer" %} {{ needs_answer|length|add:needs_answer_remaining }}
{% for attendance in needs_answer %} {% if not forloop.first %}
{% endif %}
{{ attendance.event.start|date:"d" }}
{{ attendance.event.start|date:"M" }}
{{ attendance.event.title }}
{{ attendance.member.first_name }} · {{ attendance.event.start|date:"H:i" }}
{% trans "Reply" %}
{% endfor %}
{% if needs_answer_remaining %} {% blocktrans count counter=needs_answer_remaining %}+{{ counter }} more in Calendar{% plural %}+{{ counter }} more in Calendar{% endblocktrans %} {% endif %}
{% endif %} {% if dues_rows %}
{% for row in dues_rows %}
{% blocktrans with name=row.membership.member.first_name %}Season dues — {{ name }}{% endblocktrans %}
{% if row.invoice %} {% blocktrans with amount=row.balance|floatformat:2 due=row.invoice.due_date|date:"d M" %}€ {{ amount }} · due {{ due }}{% endblocktrans %} {% else %} {% blocktrans with amount=row.balance|floatformat:2 %}€ {{ amount }}{% endblocktrans %} {% endif %}
{% trans "Pay" %}
{% endfor %}
{% endif %} {% if news_items %}
{% trans "Club news" %} {% trans "All news" %}
{% with lead=news_items.0 %}
{% trans "News photo" %}
{% with team=lead.teams.first %}{% if team %}{{ team.name }}{% else %}{% trans "Club news" %}{% endif %}{% endwith %} · {{ lead.published_at|date:"d M" }}
{{ lead.title }}
{% endwith %} {% if news_items|length > 1 %}
{% for item in news_items|slice:"1:" %} {% if not forloop.first %}
{% endif %}
{% with team=item.teams.first %}{% if team %}{{ team.name }}{% else %}{% trans "Club news" %}{% endif %}{% endwith %} · {{ item.published_at|date:"d M" }}
{{ item.title }}
{% endfor %}
{% endif %}
{% endif %} {% if not hero_attendance and not needs_answer and not dues_rows and not news_items %}

{% trans "Nothing to show right now." %}

{% endif %} {% else %}

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

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

{% endif %} {% if sponsors %}
{% trans "Sponsors" %}
{% for sponsor in sponsors %} {% if sponsor.url %} {% if sponsor.logo %}{{ sponsor.name }}{% else %}{{ sponsor.name }}{% endif %} {% else %}
{% if sponsor.logo %}{{ sponsor.name }}{% else %}{{ sponsor.name }}{% endif %}
{% endif %} {% endfor %}
{% endif %} {% endblock content %}