Skip to content

Commit

Permalink
- update name for query parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
MazOneTwoOne committed Dec 10, 2024
1 parent 6d39703 commit 4f7f94e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fala/apps/adviser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def get_queryset(self):

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["single_category_search_redirect"] = self.request.GET.get("single_category_search_redirect", False)
context["tailored_results"] = self.request.GET.get("tailored_results", False)

context.update(self.state.get_context_data())
return context
2 changes: 1 addition & 1 deletion fala/templates/adviser/results.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h1 class="govuk-heading-xl">Search results</h1>
<p class="govuk-body">You can contact any legal adviser on the list but you might need to contact a few to find one near you that can help. Those based further away may be able to help by telephone.</p>
<p class="govuk-body">These advisers are contracted by the government and regulated by the Solicitors Regulation Authority.</p>
{% endif %}
{% if not single_category_search_redirect %}
{% if not tailored_results %}
<div class="laa-fala__grey-box govuk-!-margin-bottom-6">
<ul class="govuk-list" role="list">
{% if form.postcode.value() %}
Expand Down
2 changes: 1 addition & 1 deletion fala/templates/adviser/single_category_search.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h1 class="govuk-heading-xl"> Find a legal aid adviser for
<div class="govuk-grid-column-two-thirds">
<form action="{{ search_url }}" method="get" id="fala_questions">
<input type="hidden" name="categories" value="{{ category_code }}">
<input type="hidden" name="single_category_search_redirect" value="true">
<input type="hidden" name="tailored_results" value="true">
{% if 'postcode' in form.errors or form.errors['__all__'] %}
{{ govukInput({
'label': {'text': "What is your postcode?", 'classes': 'govuk-label--s'},
Expand Down

0 comments on commit 4f7f94e

Please sign in to comment.