Use a table for instance display
This commit is contained in:
parent
ab04d9174c
commit
23ad1c809b
1 changed files with 36 additions and 9 deletions
|
@ -6,13 +6,40 @@
|
|||
{% endblock page_title %}
|
||||
{% endblock html_title %}
|
||||
{% block card_content %}
|
||||
<ul>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{% translate "Name" %}</th>
|
||||
<th>{% translate "Service" %}</th>
|
||||
<th>{% translate "Service Provider" %}</th>
|
||||
<th>{% translate "Service Provider Zone" %}</th>
|
||||
<th>{% translate "Created At" %}</th>
|
||||
<th>{% translate "Status" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for instance in instances %}
|
||||
<li>
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ instance.urls.base }}">{{ instance.name }}</a>
|
||||
</li>
|
||||
</td>
|
||||
<td>{{ instance.context.service_definition.service.name }}</td>
|
||||
<td>{{ instance.context.service_offering.provider.name }}</td>
|
||||
<td>{{ instance.context.control_plane.name }}</td>
|
||||
<td>{{ instance.created_at|date:"SHORT_DATETIME_FORMAT" }}</td>
|
||||
<td>
|
||||
{% if instance.is_deleted %}
|
||||
<span class="badge text-bg-secondary">{% translate "Deleted" %}</span>
|
||||
{% else %}
|
||||
<span class="badge text-bg-success">{% translate "Active" %}</span>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<li>No service instances found.</li>
|
||||
<tr>
|
||||
<td colspan="6">{% translate "No service instances found." %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue