[Erp5-report] r9302 - /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Aug 22 09:31:17 CEST 2006
Author: chris
Date: Tue Aug 22 09:31:14 2006
New Revision: 9302
URL: http://svn.erp5.org?rev=9302&view=rev
Log:
- Fixed id of fieldset when the group name contains a space character
- Made Javascript to adjust left/right fieldsets height more intelligent (now detects fieldsets with 'left' or 'right' in the name, and raise no errors when left/right groups are missing)
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml?rev=9302&r1=9301&r2=9302&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.css.xml Tue Aug 22 09:31:14 2006
@@ -595,6 +595,10 @@
font-weight: bold;\n
}\n
\n
+.content .field .invisible {\n
+ display: None;\n
+}\n
+\n
.error,\n
.content .field .reqerror {\n
background-color: inherit;\n
@@ -879,7 +883,7 @@
border-width: 1px;\n
border-style: solid;\n
border-color: <dtml-var document_border_color>;\n
- border-top: 0px none;\n
+ border-top: 0 none;\n
color: inherit;\n
background-color: <dtml-var document_background_color>;\n
padding: 5px;\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml?rev=9302&r1=9301&r2=9302&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml Tue Aug 22 09:31:14 2006
@@ -61,16 +61,40 @@
}\n
\n
function fixLeftRightHeight(){\n
- var lh=document.getElementById(\'fieldset_left\').offsetHeight;\n
- var rh=document.getElementById(\'fieldset_right\').offsetHeight;\n
- document.getElementById(\'fieldset_left\').style.height=(lh>rh)? lh+"px" : rh+"px";\n
- document.getElementById(\'fieldset_right\').style.height=(lh>rh)? lh+"px" : rh+"px";\n
- document.getElementById(\'fieldset_left\').style.borderTop = \'1px solid #3D7474\'\n
- document.getElementById(\'fieldset_left\').style.borderLeft = \'1px solid #3D7474\'\n
- document.getElementById(\'fieldset_left\').style.borderBottom = \'1px solid #3D7474\'\n
- document.getElementById(\'fieldset_right\').style.borderTop = \'1px solid #3D7474\'\n
- document.getElementById(\'fieldset_right\').style.borderRight = \'1px solid #3D7474\'\n
- document.getElementById(\'fieldset_right\').style.borderBottom = \'1px solid #3D7474\'\n
+ var lh = 0;\n
+ var lfieldset;\n
+ var rh = 0;\n
+ var rfieldset;\n
+ var liste=document.getElementsByTagName(\'fieldset\');\n
+ for(i=0; i<liste.length; i=i+1){\n
+ list_parts = liste[i].id.split(\'_\');\n
+ for(j=1; j<list_parts.length; j=j+1){\n
+ if(list_parts[j] == "left"){\n
+ lfieldset = liste[i];\n
+ \tlh = lfieldset.offsetHeight;\n
+ break;\n
+ }else{\n
+ \tif(list_parts[j] == "right"){\n
+\t rfieldset = liste[i];\n
+\t rh = rfieldset.offsetHeight;\n
+ break;\n
+\t}\n
+ }\n
+ }\n
+ if(lh && rh){\n
+ break;\n
+ }\n
+ }\n
+ if(lh && rh){\n
+ lfieldset.style.height=(lh>rh)? lh+"px" : rh+"px";\n
+ rfieldset.style.height=(lh>rh)? lh+"px" : rh+"px";\n
+ lfieldset.style.borderTop = \'1px solid #3D7474\';\n
+ lfieldset.style.borderLeft = \'1px solid #3D7474\';\n
+ lfieldset.style.borderBottom = \'1px solid #3D7474\';\n
+ rfieldset.style.borderTop = \'1px solid #3D7474\';\n
+ rfieldset.style.borderRight = \'1px solid #3D7474\';\n
+ rfieldset.style.borderBottom = \'1px solid #3D7474\';\n
+ }\n
}\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml?rev=9302&r1=9301&r2=9302&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml Tue Aug 22 09:31:14 2006
@@ -100,7 +100,7 @@
<tal:block metal:use-macro="template/macros/form" />\n
</tal:block>\n
<tal:block tal:repeat="group groups">\n
-\t <fieldset tal:attributes="class group; id python: \'fieldset_\'+group" tal:condition="python: group.find(\'hidden\') < 0">\n
+\t <fieldset tal:attributes="class group; id python: \'fieldset_\'+group.replace(\' \', \'_\')" tal:condition="python: group.find(\'hidden\') < 0">\n
<legend tal:content="group" class="group_title"/>\n
<tal:block tal:repeat="field python:form.get_fields_in_group(group)">\n
<tal:block metal:use-macro="here/field_render/macros/field_render"/>\n
More information about the Erp5-report
mailing list