Jan Dittberner
8e42cb9c18
- drop jQuery and fontawesome dependencies - add bootstrap5 and bootstrap-icons - update fonts mfizz - update base templates and the first set of other templates - replace blocktrans and trans with blocktranslate and translate to prepare for Django 4 - move hostingpakcage templates to hostingpackages/templates - update translations
49 lines
1.8 KiB
HTML
49 lines
1.8 KiB
HTML
{% extends "hostingpackages/base.html" %}
|
|
{% load i18n %}
|
|
{% block title %}{{ block.super }} - {% spaceless %}
|
|
{% if user == customer %}
|
|
{% translate "Your hosting packages" %}
|
|
{% else %}
|
|
{% blocktranslate with customer=customer.get_full_name trimmed %}Hosting Packages of
|
|
{{ customer }}{% endblocktranslate %}
|
|
{% endif %}
|
|
{% endspaceless %}{% endblock title %}
|
|
|
|
{% block page_title %}{% spaceless %}
|
|
{% if user == customer %}
|
|
{% translate "Your hosting packages" %}
|
|
{% else %}
|
|
{% blocktranslate with customer=customer.get_full_name trimmed %}Hosting Packages
|
|
<small>of {{ customer }}</small>{% endblocktranslate %}
|
|
{% endif %}
|
|
{% endspaceless %}{% endblock page_title %}
|
|
|
|
{% block content %}
|
|
{% if customerhostingpackage_list %}
|
|
<table class="table table-condensed">
|
|
<thead>
|
|
<tr>
|
|
<th>{% translate "Name" %}</th>
|
|
<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>
|
|
<td>{{ package.created }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p class="text-info">
|
|
{% if user == customer %}{% translate "You have no hosting packages setup yet." %}{% else %}
|
|
{% translate "There are no hosting packages setup for this customer yet." %}{% endif %}</p>
|
|
{% endif %}
|
|
{% if user.is_staff %}
|
|
<p><a href="{% url 'create_customer_hosting_package' user=customer.username %}"
|
|
class="btn btn-primary">{% translate "Add hosting package" %}</a></p>
|
|
{% endif %}
|
|
{% endblock content %}
|