Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1779] Fix alignment of search results #794

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/open_inwoner/scss/components/Feedback/Feedback.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.feedback {
margin: var(--row-height-giant) 0 0 0;
&__remark {
display: none;

Expand Down
48 changes: 22 additions & 26 deletions src/open_inwoner/templates/pages/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{% load i18n form_tags utils icon_tags filter_tags pagination_tags %}

{% block main_inner %}
{# zoek button section #}
{# search term section #}
<div class="grid">
<div class="grid__sidebar"></div>
<div class="grid__sidebar">&nbsp;</div>
<div class="grid__main">
<h1 class="h1">{% trans "Zoeken naar " %} "{% firstof search_form.query.value "" %}"</h1>
</div>
Expand Down Expand Up @@ -46,29 +46,11 @@ <h3 class="search-results__item-title">{{ hit.name }}</h3>
{% endfor %}
</div>
</div>

{% pagination page_obj=page_obj paginator=paginator request=request %}
{% else %}
<div class="search-results search-results--none">
<h2 class="h2 search-results__title">
{% trans "Geen zoekresultaten" %}
</h2>
<p class="p">{% trans "Helaas, wij vonden geen resultaten voor jouw zoekopdracht." %}</p>
</div>
<ul class="ul">
<li class="li">{% trans "Controleer de spelling van je zoekopdracht." %}</li>
<li class="li">{% trans "Probeer een andere zoekopdracht." %}</li>
<li class="li">{% trans "Vragen? Neem contact met ons op." %}</li>
</ul>
{% endif %}
</div>
</div>

{% if paginator.count and not messages %}
<div class="grid">
<div class="grid__sidebar"></div>
<div class="grid__main">
<div class="grid">
<aside class="feedback" aria-label="{% trans "Pagina feedback" %}">
{% if paginator.count and not messages %}
<section class="feedback" aria-label="{% trans "Pagina feedback" %}">
<h4 class="h4">{% trans "Feedback" %}</h4>
<p class="p">{% trans "Heeft u gevonden wat u zocht?" %}</p>
{% render_form form=feedback_form method="POST" form_action=request.get_full_path id="feedback_form" show_notifications=True %}
Expand All @@ -93,9 +75,23 @@ <h4 class="h4">{% trans "Feedback" %}</h4>
{% form_actions primary_text="Feedback versturen" %}
</div>
{% endrender_form %}
</aside>
</section>
{% endif %}

{% else %}
<div class="search-results search-results--none">
<h2 class="h2 search-results__title">
{% trans "Geen zoekresultaten" %}
</h2>
<p class="p">{% trans "Helaas, wij vonden geen resultaten voor jouw zoekopdracht." %}</p>
</div>
</div>
<ul class="ul">
<li class="li">{% trans "Controleer de spelling van je zoekopdracht." %}</li>
<li class="li">{% trans "Probeer een andere zoekopdracht." %}</li>
<li class="li">{% trans "Vragen? Neem contact met ons op." %}</li>
</ul>
{% endif %}
</div>
{% endif %}
</div>

{% endblock main_inner %}
Loading