{% extends "mobile/base.html" %} {% load i18n %} {% comment %} M1 -- design_handoff_rosterchief_platform/README.md's M1 section. Four independently-optional cards, scoped to people_in_scope (mobile/mixins.py) -- everyone the account manages once there's more than one (the header's "All" chip, 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 %} {% 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 }}
{% 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 %}
{% 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_item %}
{% trans "Club news" %}
{% trans "News photo" %}
{% if news_team %}{{ news_team.name }}{% else %}{% trans "Club news" %}{% endif %} · {{ news_item.published_at|date:"d M" }}
{{ news_item.title }}
{% endif %} {% if not hero_attendance and not needs_answer and not dues_rows and not news_item %}

{% 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 %} {% endblock content %}