Skip to content

Commit

Permalink
fixup! WIP: htmx search for maintenance components
Browse files Browse the repository at this point in the history
Add -frag moniker to partial templates
  • Loading branch information
lunkwill42 committed Apr 29, 2024
1 parent 4261b7d commit f123d85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/nav/web/maintenance/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ def component_search(request):
component_title = component_type._meta.verbose_name.title()
results[component_title] = component_result

return render(request, 'maintenance/search-results.html', {'results': results})
return render(
request, 'maintenance/component-search-results-frag.html', {'results': results}
)


def add_box_to_maintenance(request):
Expand Down

0 comments on commit f123d85

Please sign in to comment.