From 357cb2bcece225f3ebb030f9119730fdb2a8a1f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Wed, 19 Mar 2014 14:33:45 +0100
Subject: [PATCH] move captcha style to a css class so that it is easily
 customisable

---
 .../portal_skins/erp5_km_theme/km_css/km.css.xml             | 5 +++++
 bt5/erp5_km/bt/revision                                      | 2 +-
 .../portal_skins/erp5_xhtml_style/erp5.css.xml               | 5 +++++
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision          | 2 +-
 product/ERP5Form/CaptchasDotNet.py                           | 2 +-
 5 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/km.css.xml b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/km.css.xml
index c5daf78f62..6623feb12e 100644
--- a/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/km.css.xml
+++ b/bt5/erp5_km/SkinTemplateItem/portal_skins/erp5_km_theme/km_css/km.css.xml
@@ -1290,6 +1290,11 @@ button.formbt > span{\n
 .blog-next-article:after {\n
   content:">"\n
 }\n
+\n
+.captchas_dot_net {\n
+    border: none; \n
+    vertical-align: bottom\n
+}\n
 </tal:block>
 
 ]]></unicode> </value>
diff --git a/bt5/erp5_km/bt/revision b/bt5/erp5_km/bt/revision
index b5e73800aa..874c1947d0 100644
--- a/bt5/erp5_km/bt/revision
+++ b/bt5/erp5_km/bt/revision
@@ -1 +1 @@
-1884
\ No newline at end of file
+1885
\ No newline at end of file
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
index c45c8e34e4..094ed63b92 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
@@ -1432,6 +1432,11 @@ div.pdf-preview-navigation img.last{\n
 .horizontal_align_form_box >  div.input > fieldset > div.field > label {\n
     width: auto;\n
     padding-top: 2px;\n
+}\n
+\n
+.captchas_dot_net {\n
+    border: none; \n
+    vertical-align: bottom\n
 }
 
 ]]></string> </value>
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 03a524df89..a42ee1244e 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-1115
\ No newline at end of file
+1116
\ No newline at end of file
diff --git a/product/ERP5Form/CaptchasDotNet.py b/product/ERP5Form/CaptchasDotNet.py
index e0fdeacc2a..334f31719f 100644
--- a/product/ERP5Form/CaptchasDotNet.py
+++ b/product/ERP5Form/CaptchasDotNet.py
@@ -86,7 +86,7 @@ class CaptchasDotNet:
     def image (self, random, id = 'captchas.net'):
         return '''
         <a href="http://captchas.net"><img
-            style="border: none; vertical-align: bottom"
+            class="captchas_dot_net"
             id="%(id)s" src="%(source)s" width="%(width)d" height="%(height)d"
             alt="The CAPTCHA image" /></a>
         <script type="text/javascript">
-- 
2.30.9