-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changing the term "renew" when using reload option!!! #170
Comments
To do this, you will have to customize twig templates And the captcha widget template is defined here: |
Thus, you can redefine the |
If you do an example it could be added in the README |
In your app, create a folder structure in your bundle as follows: app/Resources/GregwarCaptchaBundle/views. Inside create a file called "captcha.html.twig". Copy the contents of /vendor/gregwar/captcha-bundle/Resources/views/captcha.html.twig into that file and modify the contents to get your items on the same line. Your view will override the bundle view. This is all assuming you are using version 2.*+ of the captcha bundle. Not sure about older versions of Symfony. |
What eventually ended up working for us is to view the source of the page and find out what the "id" attribute of the captcha input box is and then either add css styles at the top of your page or modify your css files. Ours was called "contact_captcha"
Then we modified our css file and added:
Overriding the template as I explained above gave us the added ability to get rid of the "Reload" text and add a font-awesome icon instead:
Hope all this helps. |
can i Put captcha field and captcha renew link at the same row ??
And how can i change the term "renew" to an icon??
The text was updated successfully, but these errors were encountered: