2023-04-16 22:11:32 +02:00
|
|
|
{% extends "hostingpackages/base.html" %}
|
|
|
|
{% load i18n %}
|
|
|
|
{% block title %}{{ block.super }} - {% translate "All hosting packages" %}{% endblock title %}
|
|
|
|
{% block page_title %}{% translate "All hosting packages" %}{% endblock page_title %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% if customerhostingpackage_list %}
|
|
|
|
<table class="table table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{% translate "Name" %}</th>
|
|
|
|
<th>{% translate "Customer" %}</th>
|
2023-04-22 13:16:13 +02:00
|
|
|
<th>{% translate "OS User" %}</th>
|
2023-04-29 12:35:49 +02:00
|
|
|
<th>{% translate "Disk space" %}</th>
|
|
|
|
<th>{% translate "Mailboxes" %}</th>
|
|
|
|
<th>{% translate "Databases" %}</th>
|
2023-04-16 22:11:32 +02:00
|
|
|
<th>{% translate "Setup date" %}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for package in customerhostingpackage_list %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{ package.get_absolute_url }}">{{ package.name }}</a></td>
|
2023-04-29 13:10:25 +02:00
|
|
|
<td>{{ package.customer }}</td>
|
|
|
|
<td>{{ package.osuser.username }}</td>
|
2023-04-29 12:35:49 +02:00
|
|
|
<td>
|
|
|
|
{% with diskspace=package.get_disk_space %}
|
|
|
|
<span title="{% blocktranslate trimmed %}
|
|
|
|
The reserved disk space for your hosting package is {{ diskspace }} bytes.
|
|
|
|
{% endblocktranslate %}">{{ diskspace|filesizeformat }}</span>
|
|
|
|
{% endwith %}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% blocktranslate with num=package.used_mailbox_count total=package.mailbox_count trimmed %}
|
|
|
|
used {{ num }} of {{ total }}
|
|
|
|
{% endblocktranslate %}</td>
|
|
|
|
<td>{% for dbtype in package.get_databases %}
|
|
|
|
{{ dbtype.number }}
|
|
|
|
{% include "userdbs/snippets/db_type.html" with db_type=dbtype.db_type %}
|
|
|
|
{% if not forloop.last %} / {% endif %}
|
|
|
|
{% endfor %}</td>
|
2023-04-16 22:11:32 +02:00
|
|
|
<td>{{ package.created }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% else %}
|
|
|
|
<p class="text-info">{% translate "No hosting packages have been setup yet." %}</p>
|
|
|
|
{% endif %}
|
|
|
|
<p>
|
|
|
|
<a href="{% url 'create_hosting_package' %}" class="btn btn-primary">{% translate "Add hosting package" %}</a>
|
|
|
|
</p>
|
|
|
|
{% endblock content %}
|