Skip to content

Commit

Permalink
FIX #260: Hide v3 widget if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
excelwebzone committed Dec 21, 2020
1 parent e738dd9 commit 8ec70d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Resources/views/Form/v3/ewz_recaptcha_widget.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{% block ewz_recaptcha_widget %}
{% apply spaceless %}
{% apply spaceless %}
{% if form.vars.ewz_recaptcha_enabled %}
<script src="{{ form.vars.ewz_recaptcha_api_uri }}?render={{ form.vars.public_key }}"></script>

{% if form.vars.ewz_recaptcha_hide_badge %}
Expand All @@ -17,5 +18,6 @@

{{ form_label(form) }}
{{ form_widget(form) }}
{% endapply %}
{% endif %}
{% endapply %}
{% endblock %}

0 comments on commit 8ec70d6

Please sign in to comment.