Refactor question search template: rename and move to sbas_search.html
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
<input class="form-control" id="sbas-question-search-input" name="q" type="search"
|
||||
placeholder="Search questions by stem, answers, category or tags"
|
||||
hx-get="{% url 'sbas:question_search_partial' %}"
|
||||
hx-trigger="input changed delay:400ms, keyup[key=='Enter']"
|
||||
hx-trigger="input delay:400ms, keyup[key=='Enter']"
|
||||
hx-target="#sbas-question-search-results"
|
||||
hx-indicator="#sbas-question-search-indicator" />
|
||||
<span class="input-group-text" id="sbas-question-search-indicator" aria-hidden="true">
|
||||
+1
-1
@@ -244,7 +244,7 @@ def question_search_page(request):
|
||||
The actual results are returned by `question_search_partial` and swapped
|
||||
into the results container via HTMX.
|
||||
"""
|
||||
return render(request, "sbas/search.html", {})
|
||||
return render(request, "sbas/sbas_search.html", {})
|
||||
|
||||
|
||||
@login_required
|
||||
|
||||
Reference in New Issue
Block a user