mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 13:35:40 +00:00
search page now returns matching parts
- Searches 'name' and 'description' field - Uses the JSON API
This commit is contained in:
9
InvenTree/templates/search_form.html
Normal file
9
InvenTree/templates/search_form.html
Normal file
@ -0,0 +1,9 @@
|
||||
<div>
|
||||
<form class="navbar-form navbar-left" action="{% url 'search' %}" method='post'>
|
||||
{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<input type="text" name='search' class="form-control" placeholder="Search"{% if query_text %} value="{{ query }}"{% endif %}>
|
||||
</div>
|
||||
<button type="submit" id='search-submit' class="btn btn-default">Submit</button>
|
||||
</form>
|
||||
</div>
|
Reference in New Issue
Block a user