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,9 +54,14 @@ ...@@ -54,9 +54,14 @@
<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
cell_number python: len(module_category_list);\n
row_number python: (cell_number/max_per_line+1)">\n
<tr tal:repeat="row python: xrange(row_number)">\n
<tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<td>\n
<div style="width:25%; min-width:150px; float:left;"\n <div style="width:25%; min-width:150px; float:left;"\n
tal:define="module_list python:module_category[1]">\n tal:define="module_list python:module_category[1]">\n
<ul style="list-style-type:none; padding-left:10px;">\n <ul style="list-style-type:none; padding-left:10px;">\n
...@@ -87,8 +92,10 @@ ...@@ -87,8 +92,10 @@
</ul>\n </ul>\n
</ul>\n </ul>\n
</div>\n </div>\n
</td>\n
</tal:block>\n </tal:block>\n
</div>\n </tr>\n
</table>\n
</tal:block>\n </tal:block>\n
......
...@@ -54,8 +54,14 @@ ...@@ -54,8 +54,14 @@
<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
<table tal:define="max_per_line python: 4;\n
cell_number python: len(module_category_list);\n
row_number python: (cell_number/max_per_line+1)">\n
<tr tal:repeat="row python: xrange(row_number)">\n
<tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<td>\n
<div style="width:25%; min-width:150px; float:left;"\n <div style="width:25%; min-width:150px; float:left;"\n
class="tabbertabcont"\n class="tabbertabcont"\n
tal:define="module_list python:module_category[1]">\n tal:define="module_list python:module_category[1]">\n
...@@ -89,7 +95,10 @@ ...@@ -89,7 +95,10 @@
</ul>\n </ul>\n
</ul>\n </ul>\n
</div>\n </div>\n
</td>\n
</tal:block>\n </tal:block>\n
</tr>\n
</table>\n
</tal:block>\n </tal:block>\n
......
...@@ -54,8 +54,14 @@ ...@@ -54,8 +54,14 @@
<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
<table tal:define="max_per_line python: 4;\n
cell_number python: len(module_category_list);\n
row_number python: (cell_number/max_per_line+1)">\n
<tr tal:repeat="row python: xrange(row_number)">\n
<tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<td>\n
<div style="width:25%; min-width:150px; float:left;"\n <div style="width:25%; min-width:150px; float:left;"\n
class="tabbertabcont"\n class="tabbertabcont"\n
tal:define="module_list python:module_category[1]">\n tal:define="module_list python:module_category[1]">\n
...@@ -89,7 +95,10 @@ ...@@ -89,7 +95,10 @@
</ul>\n </ul>\n
</ul>\n </ul>\n
</div>\n </div>\n
</td>\n
</tal:block>\n </tal:block>\n
</tr>\n
</table>\n
</tal:block>\n </tal:block>\n
......
...@@ -54,8 +54,14 @@ ...@@ -54,8 +54,14 @@
<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
<table tal:define="max_per_line python: 4;\n
cell_number python: len(module_category_list);\n
row_number python: (cell_number/max_per_line+1)">\n
<tr tal:repeat="row python: xrange(row_number)">\n
<tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<td>\n
<div style="width:25%; min-width:150px; float:left;"\n <div style="width:25%; min-width:150px; float:left;"\n
class="tabbertabcont"\n class="tabbertabcont"\n
tal:define="module_list python:module_category[1]">\n tal:define="module_list python:module_category[1]">\n
...@@ -89,7 +95,10 @@ ...@@ -89,7 +95,10 @@
</ul>\n </ul>\n
</ul>\n </ul>\n
</div>\n </div>\n
</td>\n
</tal:block>\n </tal:block>\n
</tr>\n
</table>\n
</tal:block>\n </tal:block>\n
......
...@@ -54,8 +54,14 @@ ...@@ -54,8 +54,14 @@
<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
<table tal:define="max_per_line python: 4;\n
cell_number python: len(module_category_list);\n
row_number python: (cell_number/max_per_line+1)">\n
<tr tal:repeat="row python: xrange(row_number)">\n
<tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<td>\n
<div style="width:25%; min-width:150px; float:left;"\n <div style="width:25%; min-width:150px; float:left;"\n
class="tabbertabcont"\n class="tabbertabcont"\n
tal:define="module_list python:module_category[1]">\n tal:define="module_list python:module_category[1]">\n
...@@ -89,7 +95,10 @@ ...@@ -89,7 +95,10 @@
</ul>\n </ul>\n
</ul>\n </ul>\n
</div>\n </div>\n
</td>\n
</tal:block>\n </tal:block>\n
</tr>\n
</table>\n
</tal:block>\n </tal:block>\n
......
...@@ -54,8 +54,14 @@ ...@@ -54,8 +54,14 @@
<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
<table tal:define="max_per_line python: 4;\n
cell_number python: len(module_category_list);\n
row_number python: (cell_number/max_per_line+1)">\n
<tr tal:repeat="row python: xrange(row_number)">\n
<tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
<td>\n
<div style="width:25%; min-width:150px; float:left;"\n <div style="width:25%; min-width:150px; float:left;"\n
tal:define="module_list python:module_category[1]">\n tal:define="module_list python:module_category[1]">\n
<ul style="list-style-type:none; padding-left:10px;">\n <ul style="list-style-type:none; padding-left:10px;">\n
...@@ -71,7 +77,10 @@ ...@@ -71,7 +77,10 @@
</ul>\n </ul>\n
</ul>\n </ul>\n
</div>\n </div>\n
</td>\n
</tal:block>\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