mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 13:32:15 +00:00
Tweak asset list to be more in line with other lists
This commit is contained in:
@@ -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 %}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user