copypaste2/templates/Form/fields.html.twig

15 lines
597 B
Twig
Raw Normal View History

2016-12-19 00:23:00 +00:00
{% 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 %}