changes
This commit is contained in:
26
plugins/search/templates/search/search.html
Normal file
26
plugins/search/templates/search/search.html
Normal file
@ -0,0 +1,26 @@
|
||||
{% extends '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 %}
|
13
plugins/search/templates/search/search_results.html
Normal file
13
plugins/search/templates/search/search_results.html
Normal file
@ -0,0 +1,13 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<h2>Search Results</h2>
|
||||
{% if results %}
|
||||
<ul>
|
||||
{% for result in results %}
|
||||
<li>{{ result.name }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>No results found.</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
4
plugins/search/templates/search/search_tags.html
Normal file
4
plugins/search/templates/search/search_tags.html
Normal file
@ -0,0 +1,4 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<p>This page was replaced by AJAX functionality.</p>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user