mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-18 20:27:20 -04:00
table-overflow-x-auto
This commit is contained in:
@@ -79,42 +79,44 @@
|
||||
|
||||
<div class="margin-bottom-5">
|
||||
<h2 class="font-heading-lg margin-bottom-2">Services Overview</h2>
|
||||
<table class="usa-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col" role="columnheader">Name</th>
|
||||
<th scope="col" role="columnheader">Status</th>
|
||||
<th scope="col" role="columnheader">Usage</th>
|
||||
<th scope="col" role="columnheader">Primary Contact</th>
|
||||
<th scope="col" role="columnheader">Recent Template Used</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% if services %}
|
||||
{% for service in services %}
|
||||
<div class="table-overflow-x-auto">
|
||||
<table class="usa-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<td><a href="{{ url_for('main.service_dashboard', service_id=service.id) }}" class="usa-link">{{ service.name }}</a></td>
|
||||
<td>
|
||||
{% if not service.active %}
|
||||
Suspended
|
||||
{% elif service.restricted %}
|
||||
Trial
|
||||
{% else %}
|
||||
Live
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ service.usage|default('N/A') }}</td>
|
||||
<td>{{ service.primary_contact|default('N/A') }}</td>
|
||||
<td>{{ service.recent_template|default('N/A') }}</td>
|
||||
<th scope="col" role="columnheader">Name</th>
|
||||
<th scope="col" role="columnheader">Status</th>
|
||||
<th scope="col" role="columnheader">Usage</th>
|
||||
<th scope="col" role="columnheader">Primary Contact</th>
|
||||
<th scope="col" role="columnheader">Recent Template Used</th>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="5" class="table-empty-message">No services found within this organization</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% if services %}
|
||||
{% for service in services %}
|
||||
<tr>
|
||||
<td><a href="{{ url_for('main.service_dashboard', service_id=service.id) }}" class="usa-link">{{ service.name }}</a></td>
|
||||
<td>
|
||||
{% if not service.active %}
|
||||
Suspended
|
||||
{% elif service.restricted %}
|
||||
Trial
|
||||
{% else %}
|
||||
Live
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{ service.usage|default('N/A') }}</td>
|
||||
<td>{{ service.primary_contact|default('N/A') }}</td>
|
||||
<td>{{ service.recent_template|default('N/A') }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<tr>
|
||||
<td colspan="5" class="table-empty-message">No services found within this organization</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user