Skip to content

Commit

Permalink
Merge pull request #8415 from cfpb/ans_complaint_link
Browse files Browse the repository at this point in the history
Ask CFPB: Remove unused `complaint_link`
  • Loading branch information
anselmbradford committed May 14, 2024
2 parents 76df1a9 + 6001e15 commit 175b6c5
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions cfgov/ask_cfpb/jinja2/ask-cfpb/_ask-search.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@

max_length: Integer; the maximum length of a query string, in characters

complaint_link: Boolean; whether to add a link to the complaint submission
page to the end of the error message for searches over the
max length

========================================================================== #}

{% macro render(
Expand All @@ -37,8 +33,7 @@
autocomplete=True,
placeholder='',
is_subsection=True,
max_length=autocomplete_max_chars,
complaint_link=False
max_length=autocomplete_max_chars
) %}
<div class="o-search-bar">
<form method="get" action="{{ _('/ask-cfpb/search/') }}">
Expand Down Expand Up @@ -79,11 +74,6 @@
<p class="a-form-alert__text">
Searches are limited to {{ autocomplete_max_chars }}
characters.
{% if complaint_link %}
Are you trying to
<a href="/complaint/getting-started/">
submit a complaint</a>?
{% endif %}
</p>
</div>
</div>
Expand All @@ -108,8 +98,7 @@
value.autocomplete | default( True ),
value.placeholder | default( '' ),
value.is_subsection | default( True ),
value.max_length | default( autocomplete_max_chars ),
value.complaint_link | default( False )
value.max_length | default( autocomplete_max_chars )
)
}}
{% endif %}

0 comments on commit 175b6c5

Please sign in to comment.