33 lines
1 KiB
HTML
33 lines
1 KiB
HTML
|
{% extends "hostingpackages/base.html" %}
|
||
|
{% load i18n %}
|
||
|
{% block title %}{{ block.super }} - {% trans "All hosting packages" %}{% endblock title %}
|
||
|
{% block page_title %}{% trans "All hosting packages" %}{% endblock page_title %}
|
||
|
|
||
|
{% block content %}
|
||
|
{% if customerhostingpackage_list %}
|
||
|
<table class="table table-condensed">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>{% trans "Name" %}</th>
|
||
|
<th>{% trans "Customer" %}</th>
|
||
|
<th>{% trans "Setup date" %}</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{% for package in customerhostingpackage_list %}
|
||
|
<tr>
|
||
|
<td><a href="{{ package.get_absolute_url }}">{{ package.name }}</a></td>
|
||
|
<td><a href="{% url 'customer_dashboard' slug=package.customer.username %}">{{ package.customer }}</a></td>
|
||
|
<td>{{ package.created }}</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{% else %}
|
||
|
<p class="text-info">{% trans "There are no hosting packages setup yet." %}</p>
|
||
|
{% endif %}
|
||
|
<p>
|
||
|
<a href="{% url 'create_hosting_package' %}" class="btn btn-primary">{% trans "Add hosting package" %}</a>
|
||
|
</p>
|
||
|
{% endblock content %}
|