Commit cf89a051 authored by Fabien Morin's avatar Fabien Morin

add an information area to signal if a field in the second page is missing or not well filled

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23345 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 87c460ba
...@@ -9,6 +9,10 @@ ...@@ -9,6 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>_Cacheable__manager_id</string> </key>
<value> <string>root_http_skin_cache</string> </value>
</item>
<item> <item>
<key> <string>__ac_local_roles__</string> </key> <key> <string>__ac_local_roles__</string> </key>
<value> <value>
...@@ -674,6 +678,18 @@ fieldset.register_informations{\n ...@@ -674,6 +678,18 @@ fieldset.register_informations{\n
.become_member_body ul{\n .become_member_body ul{\n
list-style-image: url(\'img/puce1.png\')\n list-style-image: url(\'img/puce1.png\')\n
}\n }\n
\n
#information_area {\n
margin-top: 1em;\n
padding:0.5em 1em 0.5em 1em;\n
margin-bottom: 1em;\n
border-width: 1px;\n
border-style: dotted;\n
border-color: black;\n
color: red;\n
background-color: <dtml-var document_background_color>;\n
font-weight: bold;\n
}\n
]]></string> </value> ]]></string> </value>
...@@ -694,6 +710,12 @@ fieldset.register_informations{\n ...@@ -694,6 +710,12 @@ fieldset.register_informations{\n
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>uid</string> </key>
<value>
<none/>
</value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -110,7 +110,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -110,7 +110,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
Normally a message should be displayed when saving an object through web interface... -->\n Normally a message should be displayed when saving an object through web interface... -->\n
<div tal:content="structure here/REQUEST/portal_status_message | nothing" id="transition_message"/>\n <div tal:content="structure here/REQUEST/portal_status_message | nothing" id="transition_message"/>\n
</tal:block>\n </tal:block>\n
\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
<tal:block metal:define-slot="main"/>\n <tal:block metal:define-slot="main"/>\n
\n \n
</div>\n </div>\n
......
...@@ -110,7 +110,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n ...@@ -110,7 +110,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n
Normally a message should be displayed when saving an object through web interface... -->\n Normally a message should be displayed when saving an object through web interface... -->\n
<div tal:content="structure here/REQUEST/portal_status_message | nothing" id="transition_message"/>\n <div tal:content="structure here/REQUEST/portal_status_message | nothing" id="transition_message"/>\n
</tal:block>\n </tal:block>\n
\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
<tal:block metal:define-slot="main"/>\n <tal:block metal:define-slot="main"/>\n
\n \n
</div>\n </div>\n
......
279 241
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment