diff --git a/plants/templates/plants/locations.html b/plants/templates/plants/locations.html index 8ccfbc2..2ad64a2 100644 --- a/plants/templates/plants/locations.html +++ b/plants/templates/plants/locations.html @@ -1,36 +1,72 @@ +{# plants/templates/plants/locations.html #} {% extends "plants/base.html" %} -{% block title %}Areas — BloomBase{% endblock %} +{% block title %}My Garden — BloomBase{% endblock %} {% block content %} +{% load static %} -
- -
Areas
-
+
-
-{% for loc in locations %} -
- {{ loc.name }} {{ loc.plant_count }} plant{{ loc.plant_count|pluralize }} -
- ✏️ -
- {% csrf_token %} - -
-
-
-{% empty %} -
No areas yet.
-{% endfor %} -
+ +
+

My Garden

+ Edit +
-
+ +
+ + + + Search plants or areas +
+ + +
+ {% for loc in locations %} + {% with idx=forloop.counter0 %} + + +
+ {% if loc.cover_photo %} + {{ loc.name }} + {% else %} +
+ {% endif %} +
+ +
+
{{ loc.name }}
+
+ {{ loc.plant_count }} plant{{ loc.plant_count|pluralize }} +
+
+ + +
+ {% endwith %} + {% empty %} +

+ No areas yet — add one below! +

+ {% endfor %} +
+ + + {% csrf_token %} -
- - -
-
+ + + +
{% endblock %}