From cf6e6b2e5c1763a2dfe0616ed0ac45c4517f7765 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Mon, 30 Jun 2008 15:52:08 +0000
Subject: [PATCH] add a message in case of errors on fields to be able to
 understand that there is a pb even if the problem appears on the bottom of a
 big page.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22110 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../portal_skins/erp5_xhtml_style/erp5.css.xml        | 11 +++++++++++
 .../erp5_xhtml_style/template_erp5_xhtml_style.xml    |  4 ++++
 product/ERP5/bootstrap/erp5_xhtml_style/bt/revision   |  2 +-
 3 files changed, 16 insertions(+), 1 deletion(-)

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 9811d36579..65c5e568a8 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
@@ -979,6 +979,17 @@ fieldset.bottom .field .input {\n
   font-weight: bold;\n
 }\n
 \n
+#information_area {\n
+  margin-top: 1em;\n
+  padding:0.5em 1em 0.5em 1em;\n
+  border-width: 1px;\n
+  border-style: solid;\n
+  border-color: <dtml-var dialog_border_color>;\n
+  color: orange;\n
+  background-color: <dtml-var document_background_color>;\n
+  font-weight: bold;\n
+}\n
+\n
 /* Content */\n
 \n
 .dialog_box {\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
index 94b3230127..f667e6d75b 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/template_erp5_xhtml_style.xml
@@ -141,6 +141,10 @@ IDEAS:\n
                 </div>\n
                 <p class="clear"></p>\n
                 <div tal:content="request/portal_status_message | nothing" id="transition_message" />\n
+                <div id="information_area" tal:condition="python: request.has_key(\'field_errors\')" \n
+                    i18n:translate="" i18n:domain="ui">\n
+                  Input data has errors. Please look at error messages below.\n
+                </div>\n
               </div>\n
               <div id="master">\n
                 <tal:block metal:define-slot="main" />\n
diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
index 2bf5aee89b..83be903e06 100644
--- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
@@ -1 +1 @@
-567
\ No newline at end of file
+570
\ No newline at end of file
-- 
2.30.9