- {% for m in matches %}
-
- {% if m.image_url %}
-

- {% else %}
-
- {% endif %}
-
-
{{ m.scientific_name }}
- {% if m.common_names %}
-
{{ m.common_names|join:", " }}
- {% endif %}
-
{{ m.family }}
-
-
-
- {% widthratio m.score 1 100 %}%
-
-
+
+ {% for m in matches %}
+
+ {% if m.image_url %}
+

+ {% else %}
+
🌿
+ {% endif %}
+
+
+ {% if m.common_names %}
+
+ {{ m.common_names|join:", " }}
+
+ {% endif %}
+
{{ m.family }}
- {% endfor %}
+
+ {% widthratio m.score 1 100 %}%
+
+
+ {% endfor %}
-
{% endblock %}
diff --git a/plants/views/identify.py b/plants/views/identify.py
index 1b74fa9..7218830 100644
--- a/plants/views/identify.py
+++ b/plants/views/identify.py
@@ -100,7 +100,11 @@ def identify_confirm(request):
return redirect('identify_fields')
- return render(request, 'plants/identify_confirm.html', {'matches': matches})
+ locations = list(Location.objects.all())
+ return render(request, 'plants/identify_confirm.html', {
+ 'matches': matches,
+ 'locations': locations,
+ })
def _apply_vpc_care_fields(species, vpc_result):