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 ...@@ -62,12 +62,17 @@ portal = context.getPortalObject()\n
list_mode = request.get(\'list_mode\', False)\n list_mode = request.get(\'list_mode\', False)\n
dialog_mode = request.get(\'dialog_mode\', False)\n dialog_mode = request.get(\'dialog_mode\', False)\n
list_style = request.get(\'list_style\', None)\n list_style = request.get(\'list_style\', None)\n
context_portal_type = context.getPortalType()\n
\n \n
if portal.portal_membership.isAnonymousUser() or \\\n if portal.portal_membership.isAnonymousUser() or \\\n
dialog_mode == True or \\\n dialog_mode == True or \\\n
(list_mode and list_style==\'search\'):\n (list_mode and list_style==\'search\'):\n
return False\n return False\n
\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 return True\n
</string> </value> </string> </value>
</item> </item>
...@@ -110,6 +115,7 @@ return True\n ...@@ -110,6 +115,7 @@ return True\n
<string>dialog_mode</string> <string>dialog_mode</string>
<string>None</string> <string>None</string>
<string>list_style</string> <string>list_style</string>
<string>context_portal_type</string>
<string>True</string> <string>True</string>
</tuple> </tuple>
</value> </value>
......
...@@ -482,6 +482,7 @@ ...@@ -482,6 +482,7 @@
<div class="listbox_footer_box"\n <div class="listbox_footer_box"\n
tal:define="need_pagination python: int(here.total_size) > int(here.getMaxLineNumber())"\n tal:define="need_pagination python: int(here.total_size) > int(here.getMaxLineNumber())"\n
tal:condition="need_pagination">\n tal:condition="need_pagination">\n
\n
<div class="listbox_pagination" \n <div class="listbox_pagination" \n
tal:condition="need_pagination">\n tal:condition="need_pagination">\n
<!--Display pagination -->\n <!--Display pagination -->\n
......
...@@ -46,13 +46,15 @@ ...@@ -46,13 +46,15 @@
<tal:block define="dummy python: request.RESPONSE.setHeader(\'Content-Type\', \'text/css;; charset=utf-8\')"/>\n <tal:block define="dummy python: request.RESPONSE.setHeader(\'Content-Type\', \'text/css;; charset=utf-8\')"/>\n
\n \n
/* Search popup fix*/\n /* Search popup fix*/\n
\n
div.search_popup{\n div.search_popup{\n
left:200px;\n left:200px;\n
position:absolute;\n position:absolute;\n
top:-20px;\n top:-120px;\n
width:250px;\n width:250px;\n
}\n }\n
\n \n
\n
/******************/ \n /******************/ \n
/* Listbox action */\n /* Listbox action */\n
/******************/\n /******************/\n
......
1427 1428
\ 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