mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-26 06:11:09 -05:00
pycountry integration?
This commit is contained in:
15
templates/parks/partials/country_search_results.html
Normal file
15
templates/parks/partials/country_search_results.html
Normal file
@@ -0,0 +1,15 @@
|
||||
<div class="absolute z-10 w-full bg-white border rounded-lg shadow-lg dark:bg-gray-700 dark:border-gray-600">
|
||||
{% for country in countries %}
|
||||
<div class="px-4 py-2 cursor-pointer hover:bg-gray-100 dark:hover:bg-gray-600"
|
||||
hx-post="{% url 'parks:select_country' %}"
|
||||
hx-target="#country-input"
|
||||
hx-swap="value"
|
||||
hx-vals='{"country": "{{ country.name }}"}'>
|
||||
{{ country.name }}
|
||||
</div>
|
||||
{% empty %}
|
||||
<div class="px-4 py-2 text-gray-500 dark:text-gray-400">
|
||||
No countries found
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user