Files
2026-03-24 17:49:49 +00:00

9 lines
437 B
Django/Jinja

{% macro search_bar(destination, value)%}
{# input the url of the page containing the backend for the search #}
{# e.g. for the species search: "/species/search" #}
{# used in species.jinja #}
<form action="{{destination}}" method="GET" class="search">
<input type="text" name="search-query" placeholder="Search..." value="{{value}}" class="bar">
<input type="submit" value="Search" class="button">
</form>
{% endmacro %}