Initial plant reference and basic login

This commit is contained in:
kit 2025-12-03 12:34:46 +00:00
parent a2dba58fe4
commit cada3c7357
31 changed files with 637 additions and 0 deletions

View file

@ -0,0 +1,22 @@
{% extends 'base.html' %}
{% block head_title %}Verdure: Plant Reference{% endblock head_title %}
{%block head_content%}<h1>Plant Reference</h1>{%endblock head_content%}
{% block content %}
{% if latest_plants_list %}
<ul>
{% for plant in latest_plants_list %}
<li><a href="{% url 'planterteque:reference' plant.id %}" title="{{ plant.name }}">{{ plant.name }}</a>
</li>
{% endfor %}
</ul>
{% else %}
<p>No plants. Add some?</p>
{% endif %}
{% endblock content%}

View file

@ -0,0 +1,44 @@
{% extends 'base.html' %}
{% block head_title %}Verdure: Plant Reference{% endblock head_title %}
{% block head_content %}<h1>{{ plant.name }}</h1>{% endblock head_content %}
{% block content %}
{% if plant.description_short %}
<div>
{{ plant.description_short }}
</div>
{% endif %}
<dl>
{% if plant.height %}
<dt>Height</dt><dd>
{{ plant.height }}
</dd>
{% endif %}
{% if plant.spread %}
<dt>Spread</dt><dd>
{{ plant.spread }}
</dd>
{% endif %}
{% if plant.spacing %}
<dt>Spacing</dt><dd>
{{ plant.spacing }}
</dd>
{% endif %}
{% if plant.description_long %}
<div>
{{ plant.description_long }}
</div>
{% endif %}
</dl>
{% endblock content %}