Commit 65348d7e authored by Ivan Tyagov's avatar Ivan Tyagov

Other versions gadget uses listbox rather than hard coded Page template.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38579 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84e9e3ac
......@@ -12,7 +12,7 @@
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts84981811.49</string> </value>
<value> <string>ts85230314.89</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -428,6 +428,13 @@ div.gadget-rss-reader table.listbox td.listbox-table-no-result-row{\n
display: none;\n
}\n
\n
/* Other versions gadget needs no listbox headers */\n
div.gadget-other-versions div.listbox-head-content\n
{\n
display: none;\n
}\n
\n
\n
/* Gadget admin toolbox (deprecated)*/\n
.gadget .adminToolbox > label{\n
\n
......@@ -544,7 +551,7 @@ div.block div.adminToolbox .inner label{\n
</item>
<item>
<key> <string>size</string> </key>
<value> <int>9377</int> </value>
<value> <int>9505</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
</pickle>
<pickle>
<dictionary>
......@@ -74,7 +71,7 @@
<key> <string>gadget</string> </key>
<value>
<list>
<string>document_other_version</string>
<string>listbox</string>
</list>
</value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ProxyField" module="Products.ERP5Form.ProxyField"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>delegated_list</string> </key>
<value>
<list>
<string>enabled</string>
</list>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>document_other_version</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>field_id</string> </key>
<value> <string>document_other_version</string> </value>
</item>
<item>
<key> <string>form_id</string> </key>
<value> <string>WebSection_viewKMWidgetFieldLibrary</string> </value>
</item>
<item>
<key> <string>target</string> </key>
<value> <string>Click to edit the target</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[
<tal:block tal:define="\n
default_section_document python: request.get(\'current_web_document\', here);\n
isDocument python: default_section_document.isDocument;">\n
\n
<tal:block tal:condition="isDocument">\n
<tal:block tal:condition="python: default_section_document.hasReference()">\n
\n
<tal:block\n
tal:define="document_list python:\n
default_section_document.portal_catalog(reference=default_section_document.getReference(),\n
uid=\'!=%s\' % default_section_document.getUid(), \n
portal_type=default_section_document.getPortalDocumentTypeList());\n
all_version_document_list_number python: len(document_list)">\n
\n
<div class="related_docs" \n
tal:condition="all_version_document_list_number">\n
<div>\n
<ul>\n
<li tal:repeat="doc python: document_list">\n
<a tal:content="python: \'%s - %s - %s\' % (doc.getVersion(\'\'), doc.getLanguage(\'\'), doc.getTranslatedValidationStateTitle())" \n
tal:attributes="href python:doc.absolute_url()+\'/view\'"/>\n
</li>\n
</ul>\n
</div>\n
</div>\n
\n
<div class="related_docs" tal:condition="python: all_version_document_list_number==0">\n
<div class="title" i18n:translate="" i18n:domain="ui">\n
No other version found.\n
</div>\n
</div>\n
\n
</tal:block>\n
</tal:block>\n
<tal:block tal:condition="python: not default_section_document.hasReference()">\n
<div i18n:translate="" i18n:domain="ui">\n
No reference defined.\n
</div>\n
</tal:block>\n
</tal:block>\n
\n
\n
<tal:block tal:condition="not: isDocument">\n
<div i18n:translate="" i18n:domain="ui">\n
No other version found.\n
</div>\n
</tal:block>\n
\n
</tal:block>\n
]]></string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Document_viewVersionListWidget</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -2,10 +2,7 @@
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
<tuple/>
</tuple>
<global name="ERP5Form" module="Products.ERP5Form.Form"/>
</pickle>
<pickle>
<dictionary>
......@@ -83,14 +80,7 @@
<key> <string>hidden</string> </key>
<value>
<list>
<string>listbox_modification_date</string>
<string>listbox_field_content</string>
<string>listbox_field_date</string>
<string>listbox_field_img</string>
<string>listbox_field_link</string>
<string>listbox_field_md5</string>
<string>listbox_field_others_links</string>
<string>listbox_field_title</string>
<string>listbox_getSummaryAsHTML</string>
</list>
</value>
</item>
......
1552
\ No newline at end of file
1557
\ 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