Commit abcfa24f authored by Ivan Tyagov's avatar Ivan Tyagov

Make it possible select another list style (if any) for gadget mode as well.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37982 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9bd7df3c
......@@ -60,8 +60,7 @@
is_web_mode request/is_web_mode | nothing;\n
is_dialog_mode request/dialog_mode | nothing;\n
display_style_list here/getDisplayStyleList;\n
list_style python:request.get(\'list_style\', \n
selection.getParams().get(\'list_style\', here.getDefaultDisplayStyle()));\n
list_style here/getListboxDisplayStyle;\n
dummy python: list_style == \'search\' and here.setDisplayedColumnIdList((\'getIconAsHTML\', \'getSummaryAsHTML\'))\n
or list_style == \'thumbnail\' and here.setDisplayedColumnIdList((\'title\', \'thumbnail\'));\n
full_text_search_key here/getFullTextSearchKey;\n
......@@ -480,7 +479,15 @@
\n
<ul>\n
<li tal:repeat="style display_style_list">\n
<a tal:content="python: style[1]"\n
<a tal:condition="is_gadget_mode"\n
tal:content="python: style[1]"\n
tal:define="params python: {\'list_style\':style[0]}"\n
tal:attributes="class python: test(style[0]==list_style, \'selected\',\'\');\n
onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id, box, dom_id, params);"\n
i18n:translate="" i18n:domain="ui"/>\n
\n
<a tal:condition="not: is_gadget_mode"\n
tal:content="python: style[1]"\n
tal:attributes="href python: \'%s?list_style=%s\' % (form_url, style[0]);\n
class python: test(style[0]==list_style, \'selected\',\'\');"\n
i18n:translate="" i18n:domain="ui"/>\n
......
......@@ -242,6 +242,9 @@ div.listbox-list-style-selection ul{\n
div.listbox-list-style-selection li{\n
display: inline;\n
}\n
div.listbox-list-style-selection li a{\n
cursor: pointer;\n
}\n
div.listbox-list-style-selection li a.selected,\n
.listbox-table-report-tree-selection-cell a.selected,\n
.listbox-table-domain-tree-cell a.selected,\n
......
1515
\ No newline at end of file
1517
\ 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