IlyaPokamestov / DSReCaptchaBundle

Google ReCAPTCHA API ver.2 for Symfony2
MIT License
6 stars 6 forks source link

Display when JS is disabled #14

Open o-rel opened 8 years ago

o-rel commented 8 years ago

Hi,

I would like to know if there is a nice way to display the captcha when javascript is disable client side (unfortunatly for me it seems that it still exists)

I've found in the google faq, but I would like to know if there is a way to do it nicely with this bundle and twig instead of adding this code :

`

`

Thanks

IlyaPokamestov commented 8 years ago

Hi @o-rel,

Unfortunately, this bundle don't work when you disable JS out of the box. Instead of this you can override form_div_layout.html.twig with provided html with iframe. Also you should add new form-theme to view like: {% form_theme form 'ReCaptchaBundle::form_layout_with_iframe.html.twig' %}.

It is only one change which you should do.

I think it will be very good when I add this improvement in future version.