copypaste2/app/Resources/views/Form/fields.html.twig

15 lines
597 B
Twig

{% block copypaste_fake_captcha_widget %}
{% spaceless %}
<div id="{{ form.vars.id }}"></div>
<script type="text/javascript">
(function () {
div = document.getElementById('{{ form.vars.id }}');
input = document.createElement('input');
input.setAttribute('type', 'hidden');
input.setAttribute('name', '{{ form.vars.full_name }}');
input.setAttribute('value', 'dumb_text');
div.appendChild(input);
})();
</script>
{% endspaceless %}
{% endblock %}