Skip to content

Commit

Permalink
[#1779] Fixed alignment of search results page and feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
jiromaykin committed Oct 2, 2023
1 parent f184f94 commit 20f4385
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 26 deletions.
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 %}

0 comments on commit 20f4385

Please sign in to comment.