Skip to content
Snippets Groups Projects
Commit fe2ad04f authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

update search UI

parent 581e8788
No related branches found
No related tags found
No related merge requests found
Pipeline #12345 passed
......@@ -2,7 +2,11 @@
{% load add %}
{% block content %}
{% include "contracts/includes/double_heading.html" with icon="ico--search" heading="Vyhledávání" subheading="dle názvu smlouvy" %}
{% if not query_is_set %}
{% include "contracts/includes/double_heading.html" with icon="ico--search" heading="Vyhledávání" subheading="dle názvu smlouvy" %}
{% else %}
{% include "contracts/includes/double_heading.html" with icon="ico--search" heading="Vyhledávání" subheading="„"|add:query|add:"“" %}
{% endif %}
<form method="get" class="flex justify-center mb-10">
<div class="flex flex-row border border-black">
......@@ -25,14 +29,10 @@
</form>
{% if query_is_set %}
<h2 class="text-lg font-bold mb-10">
Výsledky vyhledávání
</h2>
{% if page|length != 0 %}
{% include "contracts/includes/contract_list.html" with page=page paginator=paginator %}
{% else %}
<span class="text-gray-300">Žádné výsledky.</span>
<span class="text-gray-400">Žádné výsledky.</span>
{% endif %}
{% endif %}
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment