feat: Show location when searching
This commit is contained in:
parent
b2d5265f7e
commit
eee4cdf86b
@ -27,6 +27,10 @@
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if location %}
|
||||
<b>{% translate 'Gefundener Suchort:' %}</b> {{ location }}
|
||||
{% endif %}
|
||||
</form>
|
||||
<div class="card half">
|
||||
{% include "fellchensammlung/partials/partial-map.html" %}
|
||||
|
@ -204,6 +204,7 @@ def search(request):
|
||||
"searched": searched,
|
||||
"adoption_notices_map": AdoptionNotice.get_active_ANs(),
|
||||
"map_center": search.position,
|
||||
"location": search.location,
|
||||
"search_radius": search.max_distance,
|
||||
"zoom_level": zoom_level_for_radius(search.max_distance)}
|
||||
return render(request, 'fellchensammlung/search.html', context=context)
|
||||
|
Loading…
x
Reference in New Issue
Block a user