From d7d41d2fd9a69019063915a922592747bdd78556 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 18 Jan 2015 16:20:47 +0100 Subject: [PATCH] render hosting package table on user dashboard --- .../templates/dashboard/user_dashboard.html | 48 ++++++++++++++++--- 1 file changed, 42 insertions(+), 6 deletions(-) diff --git a/gnuviechadmin/templates/dashboard/user_dashboard.html b/gnuviechadmin/templates/dashboard/user_dashboard.html index baff5f7..c12627a 100644 --- a/gnuviechadmin/templates/dashboard/user_dashboard.html +++ b/gnuviechadmin/templates/dashboard/user_dashboard.html @@ -3,10 +3,46 @@ {% block title %}{{ block.super }} - {% blocktrans with full_name=dashboard_user.get_full_name %}Dashboard for {{ full_name }}{% endblocktrans %}{% endblock title %} {% block page_title %}{% blocktrans with full_name=dashboard_user.get_full_name %}Dashboard for {{ full_name }}{% endblocktrans %}{% endblock page_title %} {% block content %} -

Contract details

- +
+
+
+
{% trans "Hosting packages" %}
+
+ {% if hosting_packages %} + + + + + + + + + + + + {% for package in hosting_packages %} + + + + + + + + {% endfor %} + +
{% trans "Name" %}{% trans "Disk space" %}{% trans "Mailboxes" %}{% trans "Databases" %}{% trans "Actions" %}
{{ package.name }} + {% with diskspace=package.get_disk_space %} + {{ diskspace|filesizeformat }} + {% endwith %} + {% blocktrans with num=package.get_used_mailboxes total=package.get_mailboxes %}used {{ num }} of {{ total }}{% endblocktrans %}{% 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 %}
+ {% else %} +

{% trans "You have no hosting packages yet." %}

+ {% endif %} +
+
+
+
{% endblock content %}