[Erp5-report] r25750 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...
nobody at svn.erp5.org
nobody at svn.erp5.org
Sat Feb 28 17:33:13 CET 2009
Author: jp
Date: Sat Feb 28 17:33:12 2009
New Revision: 25750
URL: http://svn.erp5.org?rev=25750&view=rev
Log:
I added a css class (editable or viewable) to fieldsets generated for form_render because it is necessary to make a distinction between forms in readonly mode (Web) and forms in editable mode (Web & ERP5). Otherwise, the current solution consists of using a different CSS in both cases which is not convenient and not so efficient to reduce the CSS cache size. Thanks to this change, it is possible to code the CSS of web sites both in ediatble mode and viewable mode inside the same CSS. Performance impact must be checked..
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
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=25750&r1=25749&r2=25750&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/form_render.xml [utf8] Sat Feb 28 17:33:12 2009
@@ -79,8 +79,9 @@
<tal:block tal:repeat="group group_list">\n
<tal:block tal:define="gid group/gid;">\n
<fieldset tal:condition="python: gid.find(\'hidden\') < 0"\n
- tal:attributes="class gid;\n
- id python: \'fieldset_%s\' % (gid.replace(\' \', \'_\'), );">\n
+ tal:attributes="class python:gid + \n
+ (\' editable\' * request.get(\'editable_mode\', 0) or \' viewable\');\n
+ id python: \'fieldset_%s\' % (gid.replace(\' \', \'_\'), );">\n
<legend i18n:translate="" i18n:domain="ui" tal:condition="group/gtitle" tal:content="group/gtitle" class="group_title"></legend>\n
<tal:block tal:repeat="field python: form.get_fields_in_group(group[\'goid\'])">\n
<tal:block metal:use-macro="field_render" />\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=25750&r1=25749&r2=25750&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Sat Feb 28 17:33:12 2009
@@ -1,1 +1,1 @@
-648
+651
More information about the Erp5-report
mailing list