Improvements to generic list + use for supplier

This commit is contained in:
2020-03-15 18:38:51 +00:00
parent 3814f5abfc
commit 2bfecb9c0f
4 changed files with 28 additions and 34 deletions

View File

@@ -9,15 +9,6 @@
<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" id="id_search">Search</button></span>
</div>
</form>
{% include 'partials/generic_list.html' with edit="supplier_update" detail="supplier_detail" %}
{% include 'partials/generic_list.html' with edit="supplier_update" detail="supplier_detail" create="supplier_create" %}
{% endblock %}