{% extends "base.html" %} {% block navbar_start %} {% endblock %} {% block content %}

{{ gettext("My plans") }}

{{ "file-circle-plus"|icon }} {{ gettext("Create new plan") }}

{{ gettext("Active")}}

{% if show_active_plans %}
{{ gettext("Your active plans.") }}
{% for plan in active_plans.rows %}

{{ plan.prd_name }}
{{ "calendar"|icon }} {{ plan.approval_date }} {{ "hourglass"|icon }} {{ plan.expiration_relative }}

{% if plan.is_cooperating %} {{ gettext("Cooperating plan") }} {% endif %} {% if plan.is_public_service %} {{ gettext("Public") }} {% endif %}

{{ plan.price_per_unit }}

{% endfor %}
{% else %}

{{ gettext("You don't have active plans.")}}

{% endif %}

{{ gettext("Rejected")}}

{% if show_rejected_plans %}
{{ gettext("Plans rejected by social accounting.") }}
{% for plan in rejected_plans.rows %}

{{ plan.prd_name }}
{{ "calendar"|icon }} {{ plan.plan_creation_date }} {{ "times"|icon }} {{ plan.rejection_date }}

{% if plan.is_public_service %} {{ gettext("Public") }} {% endif %}

{{ plan.price_per_unit }}

{% endfor %}
{% else %}

{{ gettext("You don't have rejected plans.")}}

{% endif %}

{{ gettext("Waiting")}}

{% if show_non_active_plans %}
{{ gettext("Plans waiting for approval by social accounting.") }}
{% for plan in non_active_plans.rows %} {% endfor %}
{{ gettext("Costs")}} {{ gettext("Type")}} {{ gettext("Plan created")}} {{ gettext("Revoke") }}
{{ plan.prd_name }} {{ plan.price_per_unit }} {{ plan.type_of_plan }} {{ plan.plan_creation_date }}
{% else %}

{{ gettext("You don't have plans waiting for activation.")}}

{% endif %}

{{ gettext("Drafts") }}

{% if show_drafts %}
{{ gettext("Your drafts. Click the envelope button to submit a plan to social accounting.") }}
{% for draft in drafts.rows %}

{{ draft.product_name }}
{{ "calendar"|icon }} {{ draft.draft_creation_date }}

 
 
{% endfor %}
{% else %}

{{ gettext("You don't have any drafts saved.") }}

{% endif %}

{{ gettext("Expired")}}

{% if show_expired_plans %}
{% for plan in expired_plans.rows %} {% endfor %}
{% else %}

{{ gettext("You don't have expired plans.") }}

{% endif %}
{% endblock %}