Skip to content

Commit

Permalink
Display question hint if available for input
Browse files Browse the repository at this point in the history
  • Loading branch information
colmjude committed May 1, 2024
1 parent 93f3d94 commit 86b9010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/templates/questions/input.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ <h1 class="govuk-heading-xl">{{ form.input.label.text }}</h1>

{% for field in form if field.name != 'csrf_token' %}
<div class="govuk-form-group">
{%- if field.description %}
{% if question.hint %}
<div id="" class="govuk-hint">
{{ field.description }}
{{ question.hint }}
</div>
{% endif -%}
{% endif %}

{{ field(class='govuk-input') }}

Expand Down

0 comments on commit 86b9010

Please sign in to comment.