{% extends "base.html" %} {% load translations %} {% load icons %} {% load crispy_forms_tags %} {% load i18n %} {% block breadcrumbs %}
  • {% trans "Your profile" %}
  • {% trans "Billing" %}
  • {% endblock %} {% block content %}

    {% icon "info.svg" %} {% trans "Billing plan" %} {% if billing.payment.recurring %} {% trans "Recurring payment" %} {% endif %} {% if not billing.is_active %} {% trans "Expired" %} {% elif not billing.paid %} {% trans "Past due date" %} {% elif not billing.in_limits %} {% trans "Exceeds limits" %} {% endif %}

    {% include "billing/status.html" %} {% if billing.is_active %} {% endif %}
    {% with invoices=billing.invoice_set.order %} {% if invoices %}

    {% trans "Invoices" %}

    {% for invoice in billing.invoice_set.order %} {% empty %} {% endfor %}
    {% trans "Invoice period" %} {% trans "Invoice amount" %} {% trans "Download invoice" %}
    {{ invoice.start|date:"SHORT_DATE_FORMAT" }} - {{ invoice.end|date:"SHORT_DATE_FORMAT" }} {{ invoice.amount }} {{ invoice.get_currency_display }} {% if invoice.ref and invoice.filename_valid %} {{ invoice.filename }} {% elif invoice.ref %} {{ invoice.filename }} {% else %} {% trans "Not available" %} {% endif %}
    {% trans "No invoices found." %}
    {% endif %} {% endwith %} {% if offer_hosting and billing.plan.price == 0 %}

    {% trans "Libre hosting" %} {% if billing.is_libre_trial and billing.payment.libre_request %} {% trans "Pending approval" %} {% endif %}

    {% if billing.is_libre_trial and billing.valid_libre and not billing.payment.libre_request %} {# Second button for bigger visibility #} {% endif %} {% include "snippets/libre-checklist.html" %}
    {% if billing.is_libre_trial %} {% endif %}
    {% endif %}
    {% endblock %}