{% extends "cms/base.html" %} {% block title %}Tenants{% endblock %} {% block page_title %}Tenants{% endblock %} {% block extra_head %} {% endblock %} {% block cms_content %}

{% if show_archived %}Archived Tenants{% else %}Tenants{% endif %} ({{ total_count }})

{% if active_plan %}{% endif %} {% if q %}✕{% endif %}
{% if show_archived %} Active Tenants {% elif archived_count %} Archived ({{ archived_count }}) {% endif %} Add Tenant
Filter by Plan
All {{ total_count }} {% for val, label, cnt in plans_with_counts %} {{ label }} {{ cnt }} {% endfor %}
{% if tenants %} {% for t in tenants %} {% endfor %}
Tenant Plan Version Chat Status Live Actions
{% if t.logo %} {% else %}
{{ t.name|slice:":2"|upper }}
{% endif %}
{{ t.name }}
{% if t.cms_subdomain %}
{{ t.cms_subdomain }}
{% endif %}
{{ t.get_plan_display|default:t.plan }} {% if t.cms_version %} {% if t.cms_version == latest_version %} v{{ t.cms_version }} {% elif t.cms_version|slice:":2" == latest_version|slice:":2" %} v{{ t.cms_version }} {% else %} v{{ t.cms_version }} {% endif %} {% else %} — {% endif %} {% if t.chat_enabled %} ON {% else %} OFF {% endif %} {% if t.is_active %} Active {% else %} Inactive {% endif %} {% if t.primary_domain %} {% else %} — {% endif %} {% if not t.is_master %}
{% csrf_token %}
{% endif %} {% if t.cms_version != latest_version %}
{% csrf_token %}
{% else %} {% endif %} {% if t.can_delete %} {% endif %}
{% else %}

{% if q %}No tenants match "{{ q }}".{% else %}No tenants yet. Add the first one.{% endif %}

{% endif %} {% if tenants.has_other_pages %}
Page {{ tenants.number }} of {{ tenants.paginator.num_pages }} — {{ tenants.paginator.count }} tenants
{% if tenants.has_previous %} {% endif %} {% for num in tenants.paginator.page_range %} {% if num == tenants.number %} {{ num }} {% elif num >= tenants.number|add:'-2' and num <= tenants.number|add:'2' %} {{ num }} {% endif %} {% endfor %} {% if tenants.has_next %} {% endif %}
{% endif %}
Upgrade Invoices
{% for c in upgrade_charges %} {% empty %} {% endfor %}
Tenant Version Fee Status Date
{{ c.tenant.name }} v{{ c.version }} £{{ c.fee }} {% if c.status == 'paid' %} Paid {% elif c.status == 'waived' %} Waived {% else %} Pending {% endif %} {{ c.created_at|date:"d M Y" }}
No upgrade invoices yet.
Plugin Requests
{% for r in plugin_requests %} {% empty %} {% endfor %}
Tenant Plugin Amount Status Date
{{ r.tenant.name }} {{ r.plugin_title }} {% if r.quoted_amount %}£{{ r.quoted_amount }}{% else %}-{% endif %} {% if r.status == 'delivered' %} Delivered {% elif r.status == 'billed' %} Invoiced {% elif r.status == 'accepted' %} Accepted {% elif r.status == 'declined' %} Declined {% else %} Requested {% endif %} {{ r.created_at|date:"d M Y" }}
No plugin requests yet.
Invoice & Upgrade
{% csrf_token %}
Upgrading to v{{ latest_version }}
{% endblock %} {% block extra_js %} {% endblock %}