Add ability to search supplier list. Partial #374

This commit is contained in:
2019-11-24 14:13:47 +00:00
parent 0a724e645f
commit 22f0041eaf
5 changed files with 54 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
{% extends 'base_assets.html' %}
{% block title %}List{% endblock %}
{% block title %}Asset List{% endblock %}
{% load paginator from filters %}
{% load widget_tweaks %}

View File

@@ -1,6 +1,7 @@
{% extends 'base_assets.html' %}
{% block title %}List{% endblock %}
{% block title %}Supplier List{% endblock %}
{% load paginator from filters %}
{% load widget_tweaks %}
{% block content %}
@@ -8,6 +9,15 @@
<h1>Supplier List</h1>
</div>
<form id="supplier-search-form" method="get" class="form-inline pull-right">
{% csrf_token %}
<div class="input-group pull-right" style="width: auto;">
{% render_field form.query|add_class:'form-control' placeholder='Search by Name' style="width: 250px"%}
<label for="query" class="sr-only">Name:</label>
<span class="input-group-btn"><button type="submit" class="btn btn-default">Search</button></span>
</div>
</form>
<table class="table table-striped">
<thead>
<tr>