Initial plant reference and basic login
This commit is contained in:
parent
a2dba58fe4
commit
cada3c7357
31 changed files with 637 additions and 0 deletions
22
planterteque/templates/planterteque/index.html
Normal file
22
planterteque/templates/planterteque/index.html
Normal 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%}
|
||||
|
||||
44
planterteque/templates/planterteque/reference.html
Normal file
44
planterteque/templates/planterteque/reference.html
Normal 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue