{% load juntagrico.common %} {% load juntagrico.widgets %} {% load i18n %} {% load juntagrico.config %}
{% vocabulary 'subscription_pl' %}
{% if subscription_memberships %}
{% for submem in subscription_memberships %} {% with subscription=submem.subscription %}
{% if subscription.identifier %} {{ subscription.identifier }} - {% endif %} {% include 'juntagrico/snippets/subscription/membership_dates.html' with subscription_membership=submem %}

#{{ subscription.id }}

{% if subscription.primary_member == submem.member %} {% blocktrans with v_subscription=vocabulary.subscription %} {{ v_subscription }}-Verwalter:in{% endblocktrans %} {% else %} {% blocktrans %}Mitbezüger:in{% endblocktrans %} {% endif %} {% if submem.left %} {% trans 'früher' %} {% elif submem.active %} {% trans 'aktuell' %} {% else %} {% trans 'künftig' %} {% endif %}
{% with co_members=submem.co_members %} {% if co_members %}
{% trans 'Geteilt mit' %} {% for co_member in co_members %} {{ co_member }} {% blocktrans with v_subscription=vocabulary.subscription %}{{ v_subscription }}-Verwalter:in{% endblocktrans %} {% if not forloop.last %}, {% endif %} {% endfor %}
{% endif %} {% endwith %}
{% trans 'Inhalt' %} {% include 'juntagrico/my/subscription/snippets/part_list_compact.html' with parts=subscription.parts.waiting_or_active list_class='list-unstyled' no_actions=True only %}
{% if subscription.surcharges.exists %}
{% trans 'Aufschläge/Abschläge' %} {% for surcharge in subscription.surcharges.all|dictsort:"date" %}
{{ surcharge.date|date:"SHORT_DATE_FORMAT" }} - {{ surcharge.description }}: {% if surcharge.amount %} {{ surcharge.amount|price }} {% endif %} {% if surcharge.required_assignments %} {% trans {{ surcharge.required_assignments|floatformat:'-1' }} {% endif %} {% if surcharge.required_core_assignments %} {% trans {{ surcharge.required_core_assignments|floatformat:'-1' }} {% endif %}
{% endfor %}
{% endif %}
{% trans 'Depot' %} {{ subscription.depot }} {% if subscription.future_depot %}
{% blocktrans trimmed with future_depot=subscription.future_depot %} Ausstehender Wechsel zu: {{ future_depot }} {% endblocktrans %} {% if perms.juntagrico.change_subscription %} {% trans 'Wechsel verwalten' %} {% endif %}
{% endif %}
{% if c_enable_shares %} {% if perms.juntagrico.view_share or perms.juntagrico.change_share %}
{% vocabulary 'share_pl' %} {% with available=subscription.available_shares required=subscription.required_shares %} {% if available >= required %} {% else %} {% endif %} {{ available }} / {{ required }} {% endwith %}
{% endif %} {% endif %}
{% vocabulary 'assignment_pl' %} {% assignment_progress account subscription=subscription future=True as assignments %} {% include "juntagrico/widgets/assignment_progress/bars.html" with show_complete=True %}
{% trans 'Notizen' %} {{ subscription.notes|default:"-" }}
{% endwith %} {% endfor %}
{% else %}

{% trans 'Keine' %}

{% endif %}