{% extends "hostingpackages/base.html" %} {% load i18n %} {% block title %}{{ block.super }} - {% spaceless %} {% if user == customer %} {% blocktrans with package=hostingpackage.name %}Details for your Hosting Package {{ package }}{% endblocktrans %} {% else %} {% blocktrans with package=hostingpackage.name full_name=customer.get_full_name %}Details for Hosting Package {{ package }} of {{ full_name }}{% endblocktrans %} {% endif %} {% endspaceless %}{% endblock title %} {% block page_title %}{% blocktrans with package=hostingpackage.name %}Details of Hosting Package {{ package }}{% endblocktrans %}{% endblock page_title %} {% block content %}
{% spaceless %} {% trans "Hosting Package Information" %} {% if user.is_staff %}
{% endif %} {% endspaceless %}
{% trans "Name" %}
{{ hostingpackage.name }}
{% trans "Description" %}
{{ hostingpackage.description|default:"-" }}
{% trans "Disk space" %}
{% with diskspace=hostingpackage.get_disk_space packagespace=hostingpackage.get_package_space %}
{{ diskspace|filesizeformat }}
{% endwith %}
{% trans "Mailboxes" %}
{% blocktrans with num=hostingpackage.used_mailbox_count total=hostingpackage.mailbox_count %}{{ num }} of {{ total }} in use{% endblocktrans %}
{% if osuser.is_sftp_user %}{% trans "SFTP username" %}{% else %}{% trans "SSH/SFTP username" %}{% endif %}
{{ osuser.username }}
{% trans "Upload server" %}
{{ uploadserver }}
{% trans "Hosting Package Options" %}
{% if hostingoptions %}
    {% for opt in hostingoptions %}
  • {{ opt }}
  • {% endfor %}
{% else %}

{% trans "No options booked" %}

{% endif %} {% if user.is_staff %}

{% trans "Add option" %}

{% endif %}
{% trans "Domains" %}
{% if domains %} {% for domain in domains %} {% if domain.domain.maildomain %} {% else %} {% endif %} {% endfor %}
{% trans "Domain name" %} {% trans "Mail addresses" %} {% trans "Websites" %} {% trans "Actions" %}
{{ domain.domain }} {% with maildomain=domain.domain.maildomain %} {% for mailaddress in maildomain.mailaddresses %}{% spaceless %} {{ mailaddress }} {% endspaceless %}{% if not forloop.last %}, {% endif %} {% endfor %} {% endwith %} {% trans "None" %} {% with maildomain=domain.domain.maildomain %} {% endwith %}
{% else %}

{% trans "There are no domains assigned to this hosting package yet." %}

{% endif %} {% if user.is_staff %}

{% trans "Add domain" %}

{% endif %}
{% trans "E-Mail-Accounts" %}
{% if mailboxes %} {% for mailbox in mailboxes %} {% endfor %}
{% trans "Mailbox" %} {% trans "Mail addresses" %} {% trans "Active" %} {% trans "Actions" %}
{{ mailbox.username }} {{ mailbox.mailaddresses|join:", " }} {% if mailbox.active %}{% trans "Active" %}{% else %}{% trans "inactive" %}{% endif %} {% trans "Set mailbox password" %}
{% else %}

{% trans "There are no mailboxes assigned to this hosting package yet." %}

{% endif %} {% if hostingpackage.may_add_mailbox %}

{% trans "Add mailbox" %}

{% endif %}
{% trans "Databases" %}
{% if databases %} {% for database in databases %} {% endfor %}
{% trans "Database name" %} {% trans "Database user" %} {% trans "Type" %} {% trans "Actions" %}
{{ database.db_name }} {{ database.db_user.name }} {% include "userdbs/snippets/db_type.html" with db_type=database.db_user.db_type %} {% trans "Set database user password" %}
{% else %}

{% trans "There are no databases assigned to this hosting package yet." %}

{% endif %} {% if hostingpackage.may_add_database %}

{% trans "Add database" %}

{% endif %}
{% endblock content %}