Commit 2d0f4cd5 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

* list_style parameter is not stored in selection.

* use normal style ListBox for non-web gadget mode.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26702 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d8c2cdeb
......@@ -59,7 +59,7 @@
show_select_column here/showSelectColumn;\n
show_anchor_column here/showAnchorColumn;\n
show_search_line here/showSearchLine;\n
list_style python: request.get(\'list_style\') or selection.params.get(\'list_style\', \'table\');\n
list_style resuest/list_style | nothing;\n
is_web_mode request/is_web_mode | nothing;\n
is_gadget_mode request/is_gadget_mode | nothing;">\n
<!-- ListBox starts here. -->\n
......@@ -142,13 +142,10 @@
<tal:block tal:condition="python: list_style == \'search\'">\n
<span metal:use-macro="real_context/ListBox_asSearchStyleHTML/macros/main"/>\n
</tal:block>\n
<tal:block tal:condition="python: is_web_mode or is_gadget_mode">\n
<tal:block tal:condition="python: list_style == \'table\'">\n
<span metal:use-macro="real_context/ListBox_asTableStyleHTML/macros/main"/>\n
</tal:block>\n
<tal:block tal:condition="python: is_web_mode and list_style != \'table\'">\n
<span metal:use-macro="real_context/ListBox_asTableStyleHTML/macros/main"/>\n
</tal:block>\n
<tal:block tal:condition="python: not is_web_mode and not is_gadget_mode and\n
not list_style == \'search\'">\n
<tal:block tal:condition="python: not is_web_mode and list_style != \'search\'">\n
<span metal:use-macro="real_context/ListBox_asStandardHTML/macros/main"/>\n
</tal:block>\n
</tal:block>\n
......
721
\ No newline at end of file
722
\ 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