Commit 0a1fb508 authored by Nicolas Delaby's avatar Nicolas Delaby

Display Group Modules inside a table.

Sort groups.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22351 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5e55389d
...@@ -54,41 +54,48 @@ ...@@ -54,41 +54,48 @@
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
add_info info_dict/add | nothing">\n module_category_list info_dict/add | nothing;\n
<div>\n dummy python:module_category_list.sort()">\n
<tal:block tal:repeat="module_category add_info">\n <table tal:define="max_per_line python: 4;\n
<div style="width:25%; min-width:150px; float:left;"\n cell_number python: len(module_category_list);\n
tal:define="module_list python:module_category[1]">\n row_number python: (cell_number/max_per_line+1)">\n
<ul style="list-style-type:none; padding-left:10px;">\n <tr tal:repeat="row python: xrange(row_number)">\n
<li style="font-weight:bold; color:#002e3f;"\n <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
tal:content="python:module_category[0]"/>\n <td>\n
<ul style="list-style-type:none; padding-left:0;">\n <div style="width:25%; min-width:150px; float:left;"\n
<tal:block tal:repeat="module module_list">\n tal:define="module_list python:module_category[1]">\n
<tal:block tal:define="action_list python:module[1];\n <ul style="list-style-type:none; padding-left:10px;">\n
default_action python:test(len(action_list) > 1, None, action_list[0])"\n <li style="font-weight:bold; color:#002e3f;"\n
tal:condition="python:action_list">\n tal:content="python:module_category[0]"/>\n
<li style="color:#002e3f;">\n <ul style="list-style-type:none; padding-left:0;">\n
<a href=""\n <tal:block tal:repeat="module module_list">\n
tal:omit-tag="python:default_action is None"\n <tal:block tal:define="action_list python:module[1];\n
tal:attributes="href python:default_action and default_action[1]"\n default_action python:test(len(action_list) > 1, None, action_list[0])"\n
tal:content="python:default_action and default_action[0] or module[0]">\n tal:condition="python:action_list">\n
</a>\n <li style="color:#002e3f;">\n
</li>\n <a href=""\n
<ul tal:condition="python:default_action is None"\n tal:omit-tag="python:default_action is None"\n
style="list-style-type:none; padding-left:15px;">\n tal:attributes="href python:default_action and default_action[1]"\n
<li tal:repeat="action action_list">\n tal:content="python:default_action and default_action[0] or module[0]">\n
<a style="color:#3d7474"\n </a>\n
tal:content="python:action[0]"\n </li>\n
tal:attributes="href python:action[1]"/>\n <ul tal:condition="python:default_action is None"\n
</li>\n style="list-style-type:none; padding-left:15px;">\n
</ul>\n <li tal:repeat="action action_list">\n
</tal:block>\n <a style="color:#3d7474"\n
</tal:block>\n tal:content="python:action[0]"\n
</ul>\n tal:attributes="href python:action[1]"/>\n
</ul>\n </li>\n
</div>\n </ul>\n
</tal:block>\n </tal:block>\n
</div>\n </tal:block>\n
</ul>\n
</ul>\n
</div>\n
</td>\n
</tal:block>\n
</tr>\n
</table>\n
</tal:block>\n </tal:block>\n
......
...@@ -54,42 +54,51 @@ ...@@ -54,42 +54,51 @@
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
module_category_list info_dict/search">\n module_category_list info_dict/search;\n
<tal:block tal:repeat="module_category module_category_list">\n dummy python:module_category_list.sort()">\n
<div style="width:25%; min-width:150px; float:left;"\n <table tal:define="max_per_line python: 4;\n
class="tabbertabcont"\n cell_number python: len(module_category_list);\n
tal:define="module_list python:module_category[1]">\n row_number python: (cell_number/max_per_line+1)">\n
<ul style="list-style-type:none; padding-left:10px;"\n <tr tal:repeat="row python: xrange(row_number)">\n
tal:condition="python:module_list">\n <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<li style="font-weight:bold; color:#002e3f;"\n <td>\n
tal:content="python:module_category[0]" />\n <div style="width:25%; min-width:150px; float:left;"\n
<ul style="list-style-type:none; padding-left:0;">\n class="tabbertabcont"\n
<tal:block tal:repeat="module module_list">\n tal:define="module_list python:module_category[1]">\n
<tal:block tal:define="action_list python:module[1];\n <ul style="list-style-type:none; padding-left:10px;"\n
default_action python:test(len(action_list) > 1, None, action_list[0])"\n tal:condition="python:module_list">\n
tal:condition="python:action_list">\n <li style="font-weight:bold; color:#002e3f;"\n
<li style="color:#002e3f;">\n tal:content="python:module_category[0]" />\n
<span style="color:#002e3f;"\n <ul style="list-style-type:none; padding-left:0;">\n
tal:condition="not:default_action"\n <tal:block tal:repeat="module module_list">\n
tal:content="python:module[0]"></span>\n <tal:block tal:define="action_list python:module[1];\n
<a tal:condition="default_action"\n default_action python:test(len(action_list) > 1, None, action_list[0])"\n
tal:content="python:module[0]"\n tal:condition="python:action_list">\n
tal:attributes="href python:default_action[1]"></a>\n <li style="color:#002e3f;">\n
</li>\n <span style="color:#002e3f;"\n
<ul tal:condition="not:default_action"\n tal:condition="not:default_action"\n
style="list-style-type:none; padding-left:15px;">\n tal:content="python:module[0]"></span>\n
<li tal:repeat="action action_list">\n <a tal:condition="default_action"\n
<a style="color:#3d7474"\n tal:content="python:module[0]"\n
tal:content="python:action[0]"\n tal:attributes="href python:default_action[1]"></a>\n
tal:attributes="href python:action[1]"></a>\n </li>\n
</li>\n <ul tal:condition="not:default_action"\n
style="list-style-type:none; padding-left:15px;">\n
<li tal:repeat="action action_list">\n
<a style="color:#3d7474"\n
tal:content="python:action[0]"\n
tal:attributes="href python:action[1]"></a>\n
</li>\n
</ul>\n
</tal:block>\n
</tal:block>\n
</ul>\n </ul>\n
</tal:block>\n </ul>\n
</tal:block>\n </div>\n
</ul>\n </td>\n
</ul>\n </tal:block>\n
</div>\n </tr>\n
</tal:block>\n </table>\n
</tal:block>\n </tal:block>\n
......
...@@ -54,42 +54,51 @@ ...@@ -54,42 +54,51 @@
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
module_category_list info_dict/exchange">\n module_category_list info_dict/exchange;\n
<tal:block tal:repeat="module_category module_category_list">\n dummy python:module_category_list.sort()">\n
<div style="width:25%; min-width:150px; float:left;"\n <table tal:define="max_per_line python: 4;\n
class="tabbertabcont"\n cell_number python: len(module_category_list);\n
tal:define="module_list python:module_category[1]">\n row_number python: (cell_number/max_per_line+1)">\n
<ul style="list-style-type:none; padding-left:10px;"\n <tr tal:repeat="row python: xrange(row_number)">\n
tal:condition="python:module_list">\n <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<li style="font-weight:bold; color:#002e3f;"\n <td>\n
tal:content="python:module_category[0]" />\n <div style="width:25%; min-width:150px; float:left;"\n
<ul style="list-style-type:none; padding-left:0;">\n class="tabbertabcont"\n
<tal:block tal:repeat="module module_list">\n tal:define="module_list python:module_category[1]">\n
<tal:block tal:define="action_list python:module[1];\n <ul style="list-style-type:none; padding-left:10px;"\n
default_action python:test(len(action_list) > 1, None, action_list[0])"\n tal:condition="python:module_list">\n
tal:condition="python:action_list">\n <li style="font-weight:bold; color:#002e3f;"\n
<li style="color:#002e3f;">\n tal:content="python:module_category[0]" />\n
<span style="color:#002e3f;"\n <ul style="list-style-type:none; padding-left:0;">\n
tal:condition="not:default_action"\n <tal:block tal:repeat="module module_list">\n
tal:content="python:module[0]"></span>\n <tal:block tal:define="action_list python:module[1];\n
<a tal:condition="default_action"\n default_action python:test(len(action_list) > 1, None, action_list[0])"\n
tal:content="python:module[0]"\n tal:condition="python:action_list">\n
tal:attributes="href python:default_action[1]"></a>\n <li style="color:#002e3f;">\n
</li>\n <span style="color:#002e3f;"\n
<ul tal:condition="not:default_action"\n tal:condition="not:default_action"\n
style="list-style-type:none; padding-left:15px;">\n tal:content="python:module[0]"></span>\n
<li tal:repeat="action action_list">\n <a tal:condition="default_action"\n
<a style="color:#3d7474"\n tal:content="python:module[0]"\n
tal:content="python:action[0]"\n tal:attributes="href python:default_action[1]"></a>\n
tal:attributes="href python:action[1]"></a>\n </li>\n
</li>\n <ul tal:condition="not:default_action"\n
</ul>\n style="list-style-type:none; padding-left:15px;">\n
</tal:block>\n <li tal:repeat="action action_list">\n
</tal:block>\n <a style="color:#3d7474"\n
</ul>\n tal:content="python:action[0]"\n
</ul>\n tal:attributes="href python:action[1]"></a>\n
</div>\n </li>\n
</tal:block>\n </ul>\n
</tal:block>\n
</tal:block>\n
</ul>\n
</ul>\n
</div>\n
</td>\n
</tal:block>\n
</tr>\n
</table>\n
</tal:block>\n </tal:block>\n
......
...@@ -54,42 +54,51 @@ ...@@ -54,42 +54,51 @@
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
module_category_list info_dict/print">\n module_category_list info_dict/print;\n
<tal:block tal:repeat="module_category module_category_list">\n dummy python:module_category_list.sort()">\n
<div style="width:25%; min-width:150px; float:left;"\n <table tal:define="max_per_line python: 4;\n
class="tabbertabcont"\n cell_number python: len(module_category_list);\n
tal:define="module_list python:module_category[1]">\n row_number python: (cell_number/max_per_line+1)">\n
<ul style="list-style-type:none; padding-left:10px;"\n <tr tal:repeat="row python: xrange(row_number)">\n
tal:condition="python:module_list">\n <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<li style="font-weight:bold; color:#002e3f;"\n <td>\n
tal:content="python:module_category[0]" />\n <div style="width:25%; min-width:150px; float:left;"\n
<ul style="list-style-type:none; padding-left:0;">\n class="tabbertabcont"\n
<tal:block tal:repeat="module module_list">\n tal:define="module_list python:module_category[1]">\n
<tal:block tal:define="action_list python:module[1];\n <ul style="list-style-type:none; padding-left:10px;"\n
default_action python:test(len(action_list) > 1, None, action_list[0])"\n tal:condition="python:module_list">\n
tal:condition="python:action_list">\n <li style="font-weight:bold; color:#002e3f;"\n
<li style="color:#002e3f;">\n tal:content="python:module_category[0]" />\n
<span style="color:#002e3f;"\n <ul style="list-style-type:none; padding-left:0;">\n
tal:condition="not:default_action"\n <tal:block tal:repeat="module module_list">\n
tal:content="python:module[0]"></span>\n <tal:block tal:define="action_list python:module[1];\n
<a tal:condition="default_action"\n default_action python:test(len(action_list) > 1, None, action_list[0])"\n
tal:content="python:module[0]"\n tal:condition="python:action_list">\n
tal:attributes="href python:default_action[1]"></a>\n <li style="color:#002e3f;">\n
</li>\n <span style="color:#002e3f;"\n
<ul tal:condition="not:default_action"\n tal:condition="not:default_action"\n
style="list-style-type:none; padding-left:15px;">\n tal:content="python:module[0]"></span>\n
<li tal:repeat="action action_list">\n <a tal:condition="default_action"\n
<a style="color:#3d7474"\n tal:content="python:module[0]"\n
tal:content="python:action[0]"\n tal:attributes="href python:default_action[1]"></a>\n
tal:attributes="href python:action[1]"></a>\n </li>\n
</li>\n <ul tal:condition="not:default_action"\n
</ul>\n style="list-style-type:none; padding-left:15px;">\n
</tal:block>\n <li tal:repeat="action action_list">\n
</tal:block>\n <a style="color:#3d7474"\n
</ul>\n tal:content="python:action[0]"\n
</ul>\n tal:attributes="href python:action[1]"></a>\n
</div>\n </li>\n
</tal:block>\n </ul>\n
</tal:block>\n
</tal:block>\n
</ul>\n
</ul>\n
</div>\n
</td>\n
</tal:block>\n
</tr>\n
</table>\n
</tal:block>\n </tal:block>\n
......
...@@ -54,42 +54,51 @@ ...@@ -54,42 +54,51 @@
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
module_category_list info_dict/report">\n module_category_list info_dict/report;\n
<tal:block tal:repeat="module_category module_category_list">\n dummy python:module_category_list.sort()">\n
<div style="width:25%; min-width:150px; float:left;"\n <table tal:define="max_per_line python: 4;\n
class="tabbertabcont"\n cell_number python: len(module_category_list);\n
tal:define="module_list python:module_category[1]">\n row_number python: (cell_number/max_per_line+1)">\n
<ul style="list-style-type:none; padding-left:10px;"\n <tr tal:repeat="row python: xrange(row_number)">\n
tal:condition="python:module_list">\n <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<li style="font-weight:bold; color:#002e3f;"\n <td>\n
tal:content="python:module_category[0]" />\n <div style="width:25%; min-width:150px; float:left;"\n
<ul style="list-style-type:none; padding-left:0;">\n class="tabbertabcont"\n
<tal:block tal:repeat="module module_list">\n tal:define="module_list python:module_category[1]">\n
<tal:block tal:define="action_list python:module[1];\n <ul style="list-style-type:none; padding-left:10px;"\n
default_action python:test(len(action_list) > 1, None, action_list[0])"\n tal:condition="python:module_list">\n
tal:condition="python:action_list">\n <li style="font-weight:bold; color:#002e3f;"\n
<li style="color:#002e3f;">\n tal:content="python:module_category[0]" />\n
<span style="color:#002e3f;"\n <ul style="list-style-type:none; padding-left:0;">\n
tal:condition="not:default_action"\n <tal:block tal:repeat="module module_list">\n
tal:content="python:module[0]"></span>\n <tal:block tal:define="action_list python:module[1];\n
<a tal:condition="default_action"\n default_action python:test(len(action_list) > 1, None, action_list[0])"\n
tal:content="python:module[0]"\n tal:condition="python:action_list">\n
tal:attributes="href python:default_action[1]"></a>\n <li style="color:#002e3f;">\n
</li>\n <span style="color:#002e3f;"\n
<ul tal:condition="not:default_action"\n tal:condition="not:default_action"\n
style="list-style-type:none; padding-left:15px;">\n tal:content="python:module[0]"></span>\n
<li tal:repeat="action action_list">\n <a tal:condition="default_action"\n
<a style="color:#3d7474"\n tal:content="python:module[0]"\n
tal:content="python:action[0]"\n tal:attributes="href python:default_action[1]"></a>\n
tal:attributes="href python:action[1]"></a>\n </li>\n
</li>\n <ul tal:condition="not:default_action"\n
</ul>\n style="list-style-type:none; padding-left:15px;">\n
</tal:block>\n <li tal:repeat="action action_list">\n
</tal:block>\n <a style="color:#3d7474"\n
</ul>\n tal:content="python:action[0]"\n
</ul>\n tal:attributes="href python:action[1]"></a>\n
</div>\n </li>\n
</tal:block>\n </ul>\n
</tal:block>\n
</tal:block>\n
</ul>\n
</ul>\n
</div>\n
</td>\n
</tal:block>\n
</tr>\n
</table>\n
</tal:block>\n </tal:block>\n
......
...@@ -54,24 +54,33 @@ ...@@ -54,24 +54,33 @@
<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
module_category_list info_dict/view">\n module_category_list info_dict/view;\n
<tal:block tal:repeat="module_category module_category_list">\n dummy python:module_category_list.sort()">\n
<div style="width:25%; min-width:150px; float:left;"\n <table tal:define="max_per_line python: 4;\n
tal:define="module_list python:module_category[1]">\n cell_number python: len(module_category_list);\n
<ul style="list-style-type:none; padding-left:10px;">\n row_number python: (cell_number/max_per_line+1)">\n
<li style="font-weight:bold; color:#002e3f;"\n <tr tal:repeat="row python: xrange(row_number)">\n
tal:content="python:module_category[0]"/>\n <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<ul style="list-style-type:none; padding-left:0;">\n <td>\n
<tal:block tal:repeat="module module_list">\n <div style="width:25%; min-width:150px; float:left;"\n
<li style="color:#002e3f;">\n tal:define="module_list python:module_category[1]">\n
<a tal:content="python:module[0]"\n <ul style="list-style-type:none; padding-left:10px;">\n
tal:attributes="href python:module[1][0][1]"></a>\n <li style="font-weight:bold; color:#002e3f;"\n
</li>\n tal:content="python:module_category[0]"/>\n
</tal:block>\n <ul style="list-style-type:none; padding-left:0;">\n
</ul>\n <tal:block tal:repeat="module module_list">\n
</ul>\n <li style="color:#002e3f;">\n
</div>\n <a tal:content="python:module[0]"\n
</tal:block>\n tal:attributes="href python:module[1][0][1]"></a>\n
</li>\n
</tal:block>\n
</ul>\n
</ul>\n
</div>\n
</td>\n
</tal:block>\n
</tr>\n
</table>\n
</tal:block>\n </tal:block>\n
......
...@@ -157,7 +157,13 @@ ul.tabbernav li.tabberactive a:hover\n ...@@ -157,7 +157,13 @@ ul.tabbernav li.tabberactive a:hover\n
display: none;\n display: none;\n
}\n }\n
\n \n
table {\n
width:100%;\n
}\n
\n \n
table tr td {\n
vertical-align:top;\n
}\n
\n \n
</string> </value> </string> </value>
</item> </item>
......
570 572
\ 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