mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Send search query text to template
This commit is contained in:
parent
3c7191c8c8
commit
fbf764e2ef
@ -241,4 +241,8 @@ class SearchView(TemplateView):
|
||||
|
||||
context = self.get_context_data()
|
||||
|
||||
query = request.POST.get('search', '')
|
||||
|
||||
context['query'] = query
|
||||
|
||||
return super(TemplateView, self).render_to_response(context)
|
||||
|
@ -5,7 +5,7 @@
|
||||
<h3>InvenTree Search</h3>
|
||||
|
||||
<p>
|
||||
Search stuff goes here.
|
||||
Searched for: {{ query }}
|
||||
</p>
|
||||
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user