[Erp5-report] r45718 ivan - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTe...
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Apr 28 10:52:55 CEST 2011
Author: ivan
Date: Thu Apr 28 10:52:55 2011
New Revision: 45718
URL: http://svn.erp5.org?rev=45718&view=rev
Log:
Use buttons to fold / unfold domain in order to save rest of form's input elements' values.
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.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/ListBox_asHTML.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml?rev=45718&r1=45717&r2=45718&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asHTML.xml [utf8] Thu Apr 28 10:52:55 2011
@@ -112,6 +112,7 @@
<tal:block tal:define="global box_relative_url python: request.get(\'box_relative_url\', \'\');\n
global box python: real_context.restrictedTraverse(box_relative_url); \n
global box_id python: \'%s_content\' %box_relative_url.replace(\'/\', \'_\');\n
+ global box_id python: \'%s_content\' %real_context.getRelativeUrl().replace(\'/\', \'_\');\n
global dom_id python: request.get(\'dom_id\',None) or box_id;\n
global field_prefix string:${box_id}_">\n
<input tal:condition="python:form_id" \n
@@ -156,14 +157,18 @@
<td colspan="1" \n
class="listbox-table-domain-tree-cell"\n
tal:attributes="colspan python: total_depth - report_tree.depth + 1">\n
- <a href="method" class="tree-open"\n
- tal:condition="report_tree/is_open"\n
- tal:attributes="href string:foldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}"\n
- tal:content="report_tree/obj/getCompactTranslatedTitle"/>\n
- <a href="method" class="tree-closed"\n
- tal:condition="not: report_tree/is_open"\n
- tal:attributes="href string:unfoldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}"\n
- tal:content="report_tree/obj/getCompactTranslatedTitle"/>\n
+ <button type="submit"\n
+ name="foldDomain:method"\n
+ class="tree-open"\n
+ tal:condition="report_tree/is_open"\n
+ tal:content="report_tree/obj/getCompactTranslatedTitle"\n
+ tal:attributes="value string:${report_tree/domain_url}.${report_tree/depth}"/>\n
+ <button type="submit"\n
+ name="unfoldDomain:method"\n
+ class="tree-closed"\n
+ tal:condition="not: report_tree/is_open"\n
+ tal:content="report_tree/obj/getCompactTranslatedTitle"\n
+ tal:attributes="value string:${report_tree/domain_url}.${report_tree/depth}"/>\n
</td>\n
</tr>\n
</table>\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml?rev=45718&r1=45717&r2=45718&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5_listbox.css.xml [utf8] Thu Apr 28 10:52:55 2011
@@ -561,6 +561,25 @@ div.listbox-list-style-selection li a.se
font-weight: bold;\n
}\n
\n
+/* Domain / Report tree buttons */\n
+button.tree-open,\n
+button.tree-closed{\n
+ background: none;\n
+ border: none;\n
+ cursor: pointer;\n
+}\n
+button.tree-open{\n
+ background: url("./images/tree_open.png") no-repeat scroll left center transparent;\n
+ font-weight: bold;\n
+ padding-left: 15px;\n
+}\n
+\n
+button.tree-closed{\n
+ background: url("./images/tree_closed.png") no-repeat scroll left center transparent;\n
+ padding-left: 15px;\n
+}\n
+\n
+\n
/* Listbox full text search bar */\n
div.listbox-full-text-search {\n
}\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=45718&r1=45717&r2=45718&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] Thu Apr 28 10:52:55 2011
@@ -1 +1 @@
-1069
\ No newline at end of file
+1070
\ No newline at end of file
More information about the Erp5-report
mailing list