Skip to content

Commit

Permalink
Retaining audit year selections for search (#4569)
Browse files Browse the repository at this point in the history
  • Loading branch information
phildominguez-gsa authored Dec 30, 2024
1 parent 7f30c3f commit b11e4eb
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
name="audit_year"
type="checkbox"
value={{ value }}
{% for item in form_user_input.audit_year %}
{% if item == value or item == text %}
checked
{% endif %}
{% endfor %}
{% if value in form_user_input.audit_year or text in form_user_input.audit_year %}checked{% endif %}
/>
<label class="usa-checkbox__label" for="audit-year-{{ text }}">{{ text }}</label>
</div>
Expand Down

0 comments on commit b11e4eb

Please sign in to comment.