mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-23 16:32:15 +00:00
Improvements to generic list + use for supplier
This commit is contained in:
@@ -1,20 +1,33 @@
|
||||
{% load url_replace from filters %}
|
||||
{% load orderby from filters %}
|
||||
{% load paginator from filters %}
|
||||
<div class="col-sm-12">{% paginator %}</div>
|
||||
<div class="row justify-content-end">
|
||||
<a href="{% url create %}" class="btn btn-success">New <span
|
||||
class="fas fa-plus"></span></a>
|
||||
</div>
|
||||
<div class="row justify-content-end">
|
||||
<form class="form-inline py-3">
|
||||
{% csrf_token %}
|
||||
<div class="input-group pull-right">
|
||||
<input type="search" name="query" placeholder="Search" value="{{ request.GET.query }}"
|
||||
class="form-control"/>
|
||||
<span class="input-group-append"><button type="submit" class="btn btn-primary" id="id_search">Search</button></span>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<td scope="col">#</td>
|
||||
<td scope="col">Name<a href="?{% orderby request 'orderBy' 'name' %}"><span class="caret"></span></a></td>
|
||||
<td scope="col">Email</td>
|
||||
<td scope="col">Phone</td>
|
||||
<td scope="col">Notes</td>
|
||||
<th scope="col">#</th>
|
||||
<th scope="col">Name<a href="?{% orderby request 'orderBy' 'name' %}"><span class="caret"></span></a></td>
|
||||
<th scope="col">Email</th>
|
||||
<th scope="col">Phone</th>
|
||||
<th scope="col">Notes</th>
|
||||
{% if union_account %} {#TODO#}
|
||||
<td scope="col">Union Account</td>
|
||||
<th scope="col">Union Account</th>
|
||||
{% endif %}
|
||||
<td scope="col">Quick Links</td>
|
||||
<th scope="col">Quick Links</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -45,4 +58,6 @@
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% if is_paginated %}
|
||||
<div class="col-sm-12">{% paginator %}</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user