{% extends "base.html" %} {% load i18n %} {% load static %} {% load juntagrico.config %} {% load crispy_forms_tags %} {% block page_title %} {% vocabulary "subscription" as v_subscription %}

{% blocktrans %}{{ v_subscription }}-Bestandteile ändern{% endblocktrans %}

{% endblock %} {% block content %} {% config "enable_shares" as c_enable_shares %} {% vocabulary "subscription" as v_subscription %} {% vocabulary "subscription_pl" as v_subscription_pl %} {% vocabulary "share_pl" as v_share_pl %}

{% trans "Bestandteile verwalten" %}

{% for part in subscription.active_and_future_parts.is_normal %} {% endfor %}
{% trans "Name" %} {% trans "Status" %}
{{ part }} {{ part.state_text }} {% if part.cancellation_date is None %} {% if can_change_part %} {% trans "ändern" %} {% elif part.subscription.future_parts.is_normal.count == 1 %} {% blocktrans %} Dein/e {{ v_subscription }} braucht mindestens 1 Bestandteil{% endblocktrans %} {% if not part.subscription.canceled and not part.subscription.inactive %}
{% blocktrans %}{{ v_subscription }} komplett künden{% endblocktrans %} {% endif %} {% endif %} {% if part.subscription.future_parts.is_normal.count > 1 %} {% trans "kündigen" %} {% endif %} {% else %} {% blocktrans with cd=part.cancellation_date %} Gekündigt am {{cd}} {% endblocktrans %} {% endif %}
{% if parts_order_allowed %}

{% trans "Bestandteile bestellen" %}

{% crispy form %} {% else %}
{% blocktrans %}Für gekündigte {{ v_subscription_pl }} können keine Bestandteile bestellt werden.{% endblocktrans %}
{% endif %} {% if not subscription.canceled and not subscription.inactive %}
{% blocktrans %}{{ v_subscription }} kündigen{% endblocktrans %}
{% blocktrans %}{{ v_subscription }} komplett kündigen{% endblocktrans %}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}