Commit fd38759a authored by Gabriel Monnerat's avatar Gabriel Monnerat

- use xsmall instead of thumbnail.

- add code in menu to display the dialog(should be added in r42127 )
- increase the width of the dialog

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42147 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9f19b967
...@@ -58,7 +58,7 @@ gadget_list = context.portal_catalog(portal_type="Gadget")\n ...@@ -58,7 +58,7 @@ gadget_list = context.portal_catalog(portal_type="Gadget")\n
\n \n
gadget_data_list = []\n gadget_data_list = []\n
for gadget in gadget_list:\n for gadget in gadget_list:\n
image_url = gadget.getRelativeUrl() + "/default_image?resolution=75.0&display=thumbnail&format=png"\n image_url = gadget.getRelativeUrl() + "/default_image?resolution=75.0&display=xsmall&format=png"\n
gadget_data_list.append(dict(title=gadget.getTitle(),\n gadget_data_list.append(dict(title=gadget.getTitle(),\n
image_url=image_url,\n image_url=image_url,\n
id=gadget.getId()))\n id=gadget.getId()))\n
......
...@@ -82,14 +82,11 @@ ...@@ -82,14 +82,11 @@
</div>\n </div>\n
<div class="file-selection">\n <div class="file-selection">\n
<div class="file-quick-search"></div>\n <div class="file-quick-search"></div>\n
<div class="file-quick-browser">\n
<div class="quick-search-item">ERP5</div>\n
<div class="quick-search-item">SANEF</div>\n
<div class="quick-search-item">New</div>\n
</div>\n
</div>\n </div>\n
<div class="gadget-container">\n <div class="gadget-container">\n
Here go the gadgets\n <a href="#" id="add_gadget">Add Gadget</a>\n
<div class="gadget-listbox" id="gadget-listbox" title="Add Gadget">\n
<table id="gadget-table"></table>\n
</div>\n </div>\n
</div> </div>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
enctype string:multipart/form-data;\n enctype string:multipart/form-data;\n
portal_path python:website.absolute_url();\n portal_path python:website.absolute_url();\n
has_editor python: here.absolute_url() != portal_path;">\n has_editor python: here.absolute_url() != portal_path;">\n
<a class="ung_docs" tal:attributes="href python: portal_path + \'/unfoldDomain?domain_url=ung_domain/all_document_list&\' + \n <a class="ung_docs" tal:attributes="href python: portal_path + \'/unfoldDomain?domain_url=ung_domain/all_documents&\' + \n
\'form_id=erp5_web_ung_layout&\' + \n \'form_id=erp5_web_ung_layout&\' + \n
\'list_selection_name=ung_document_list_selection&\' + \n \'list_selection_name=ung_document_list_selection&\' + \n
\'domain_depth:int=0&reset:int=1\'">\n \'domain_depth:int=0&reset:int=1\'">\n
......
...@@ -263,7 +263,7 @@ $(document).ready(function(){\n ...@@ -263,7 +263,7 @@ $(document).ready(function(){\n
$("div.gadget-listbox").dialog({\n $("div.gadget-listbox").dialog({\n
autoOpen: false,\n autoOpen: false,\n
height: 416,\n height: 416,\n
width: 500,\n width: 600,\n
modal: true,\n modal: true,\n
buttons: {\n buttons: {\n
"Add": function(){\n "Add": function(){\n
......
152 153
\ 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