From 2cd95223e63ffe82e7df94d11bf2af4c8888d9df Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 29 May 2022 21:12:59 +0200 Subject: [PATCH] add captcha --- assets/css/app.scss | 3 ++- config/routes.yaml | 5 ++--- src/Form/ContactType.php | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/css/app.scss b/assets/css/app.scss index 5c29e82..dad3519 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -117,7 +117,7 @@ pre[class*="language-"] { img { vertical-align: middle; - margin-right: 10px; + margin-right: 5px; border-radius: 10px; width: auto; } @@ -127,6 +127,7 @@ pre[class*="language-"] { width: 100px !important; height: 50px !important; margin-bottom: -1px; + margin-left: 5px; } .form-error-icon { diff --git a/config/routes.yaml b/config/routes.yaml index 05e7257..38f2fa5 100644 --- a/config/routes.yaml +++ b/config/routes.yaml @@ -1,6 +1,5 @@ -#index: -# path: / -# controller: App\Controller\DefaultController::index +gregwar_captcha_routing: + resource: "@GregwarCaptchaBundle/Resources/config/routing/routing.yml" site_route: resource: 'site.route_loader::loadRoutes' diff --git a/src/Form/ContactType.php b/src/Form/ContactType.php index e9a75ef..d955ef3 100644 --- a/src/Form/ContactType.php +++ b/src/Form/ContactType.php @@ -83,6 +83,8 @@ class ContactType extends AbstractType 'width' => 140, 'height' => 50, 'length' => 3, + 'reload' => true, + 'as_url' => true, ] ); }