Commit 48893dc6 authored by Ivan Tyagov's avatar Ivan Tyagov

Show listbox action widget for containers only.

Fix CSS of search pop up to not overlay search results.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35921 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 11950ee6
......@@ -62,12 +62,17 @@ portal = context.getPortalObject()\n
list_mode = request.get(\'list_mode\', False)\n
dialog_mode = request.get(\'dialog_mode\', False)\n
list_style = request.get(\'list_style\', None)\n
context_portal_type = context.getPortalType()\n
\n
if portal.portal_membership.isAnonymousUser() or \\\n
dialog_mode == True or \\\n
(list_mode and list_style==\'search\'):\n
return False\n
\n
# show listbox action widget for module containers only\n
if not context_portal_type.endswith(\'Module\'):# and context_portal_type!=\'Web Site\':\n
return False\n
\n
return True\n
</string> </value>
</item>
......@@ -110,6 +115,7 @@ return True\n
<string>dialog_mode</string>
<string>None</string>
<string>list_style</string>
<string>context_portal_type</string>
<string>True</string>
</tuple>
</value>
......
......@@ -482,6 +482,7 @@
<div class="listbox_footer_box"\n
tal:define="need_pagination python: int(here.total_size) > int(here.getMaxLineNumber())"\n
tal:condition="need_pagination">\n
\n
<div class="listbox_pagination" \n
tal:condition="need_pagination">\n
<!--Display pagination -->\n
......
......@@ -46,13 +46,15 @@
<tal:block define="dummy python: request.RESPONSE.setHeader(\'Content-Type\', \'text/css;; charset=utf-8\')"/>\n
\n
/* Search popup fix*/\n
\n
div.search_popup{\n
left:200px;\n
position:absolute;\n
top:-20px;\n
top:-120px;\n
width:250px;\n
}\n
\n
\n
/******************/ \n
/* Listbox action */\n
/******************/\n
......
1427
\ No newline at end of file
1428
\ 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