mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-23 09:31:07 -05:00
remove backend
This commit is contained in:
17
templates/location/partials/search_results.html
Normal file
17
templates/location/partials/search_results.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<div class="search-results-container">
|
||||
{% if results %}
|
||||
{% for result in results %}
|
||||
<div class="p-2 cursor-pointer hover:bg-gray-100"
|
||||
data-action="click->location-map#selectLocation"
|
||||
data-result="{{ result|json }}">
|
||||
<div class="font-medium">{{ result.name }}</div>
|
||||
<div class="text-sm text-gray-500">
|
||||
{% if result.address.city %}{{ result.address.city }}, {% endif %}
|
||||
{{ result.address.country }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div class="p-2 text-gray-500">No results found</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user