Tweak asset list to be more in line with other lists

This commit is contained in:
2020-04-06 02:50:36 +01:00
parent 7aa19cc7ab
commit 55e37d8c69
2 changed files with 9 additions and 7 deletions

View File

@@ -40,10 +40,12 @@
</div>
</form>
<a href="{% url 'asset_create' %}" class="btn btn-success float-right my-3">New <i class="fas fa-plus"></i></a>
{% include 'partials/asset_list_table.html' %}
<div class="row">
<div class="col px-0">
<a href="{% url 'asset_create' %}" class="btn btn-success float-right my-3">New <i class="fas fa-plus"></i></a>
</div>
{% include 'partials/asset_list_table.html' %}
</div>
{% if is_paginated %}
<div class="text-center">
{% paginator %}

View File

@@ -1,9 +1,9 @@
<div class="table-responsive">
<table class="table">
<thead>
<thead class="thead-dark">
<tr>
<th scope="col">Asset ID</th>
<th scope="col" class="w-25">Description</th>
<th scope="col">Description</th>
<th scope="col">Category</th>
<th scope="col">Status</th>
<th scope="col" class="d-none d-sm-table-cell">Quick Links</th>
@@ -13,7 +13,7 @@
{% for item in object_list %}
<tr class="{{ item.status.display_class|default:'' }} assetRow">
<th scope="row"><a class="assetID" href="{% url 'asset_detail' item.asset_id %}">{{ item.asset_id }}</a></th>
<td class="assetDesc w-25 text-truncate">{{ item.description }}</td>
<td class="assetDesc"><span class="text-truncate d-inline-block">{{ item.description }}</span></td>
<td class="assetCategory">{{ item.category }}</td>
<td class="assetStatus">{{ item.status }}</td>
<td class="d-none d-sm-table-cell">