Files
PyRIGS/templates/asset_list.html
2019-01-08 00:23:29 +00:00

45 lines
1.1 KiB
HTML

{% extends 'base.html' %}
{% block title %}List{% endblock %}
{% block main %}
<h4>Asset List</h4>
<form method="post" id="asset-filter-form" class="row">
{% csrf_token %}
<div class="input-field col s3">
<input type="text" name="asset_id">
<label for="asset_id">Asset ID</label>
</div>
<button type="submit" class="btn">Search</button>
</form>
<table class="striped">
<thead>
<tr>
<th>Asset ID</th>
<th>Description</th>
<th>Category</th>
<th>Status</th>
<th>Quick Links</th>
</tr>
</thead>
<tbody id="asset_table_body">
{% include 'asset_list_table_body.html' %}
</tbody>
</table>
{% include 'helpers/paginator.html' %}
{% endblock %}
{% block script %}
<script>
$('#asset-filter-form').on('submit', function(event){
event.preventDefault();
filterAssetTable();
return false;
});
</script>
{% endblock %}