{% extends 'core_ui/base.html' %}
{% block content %}
<h2>Search Plants</h2>
<form method="POST">
    {{ form.hidden_tag() }}
    <p>
        {{ form.query.label }}<br>
        {{ form.query(size=32) }}
    </p>
    <p>
        {{ form.tags.label }}<br>
        {{ form.tags(multiple=True) }}
    </p>
    <p>{{ form.submit() }}</p>
</form>

{% if results %}
<h3>Search Results</h3>
<ul>
    {% for result in results %}
    <li>{{ result.name }}</li>
    {% endfor %}
</ul>
{% endif %}

{% endblock %}