Files
PyRIGS/assets/templates/asset_list.html
Matthew Smith 207bf7bd7a Added dependency django-polymorphic
Model change to take advantage of said polymorphism
Implemented asset search
2019-10-02 21:12:24 +01:00

45 lines
1.1 KiB
HTML

{% extends 'base_assets.html' %}
{% block title %}List{% endblock %}
{% load paginator from filters %}
{% block content %}
<div class="page-header">
<h1 class="text-center">Asset List</h1>
</div>
<form id="asset-filter-form" onsubmit=>
{% csrf_token %}
<div class="input-group">
<input type="q" name="q" placeholder="Search" class="form-control" value="{{searchName}}">
<label for="asset_id" class="sr-only">Asset ID</label>
<span class="input-group-btn"><button type="submit" class="btn">Search</button></span>
</div>
</form>
<table class="table table-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>
{% if is_paginated %}
<div class="text-center">
{% paginator %}
</div>
{% endif %}
{% endblock %}
{% block js %}
{% endblock %}