Skip to content

Commit

Permalink
hide label if field is hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastienReuiller committed Jul 9, 2024
1 parent 419dbe2 commit 323ecec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lemarche/templates/tenders/create_step_contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
<div class="fr-grid-row fr-mb-4w">
<div class="fr-col-12">
{% dsfr_form_field form.response_kind %}
{% dsfr_form_field form.response_is_anonymous %}
{% if form.response_is_anonymous.is_hidden %}
{{ form.response_is_anonymous.as_hidden }}
{% else %}
{% dsfr_form_field form.response_is_anonymous %}
{% endif %}
</div>
</div>
</div>
Expand Down

0 comments on commit 323ecec

Please sign in to comment.