Commit 40bb0637 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove duplicate tal:defines that are already defined in ListBox_asHTML.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26197 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8014bce7
...@@ -46,9 +46,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n ...@@ -46,9 +46,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n
current_page_max python: listbox_max_lines * current_page;\n current_page_max python: listbox_max_lines * current_page;\n
current_page_start python: (listbox_max_lines * (current_page - 1)) + 1;\n current_page_start python: (listbox_max_lines * (current_page - 1)) + 1;\n
current_page_stop python: (total_line < current_page_max) and total_line or current_page_max;\n current_page_stop python: (total_line < current_page_max) and total_line or current_page_max;\n
is_web_mode request/is_web_mode | nothing;\n box python: real_context.restrictedTraverse(box_relative_url);">\n
box python: real_context.restrictedTraverse(box_relative_url);\n
absolute_url real_context/absolute_url;">\n
\n \n
<!-- ListBox (search mode) starts here. -->\n <!-- ListBox (search mode) starts here. -->\n
<input type="hidden" \n <input type="hidden" \n
...@@ -110,7 +108,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n ...@@ -110,7 +108,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n
tal:define="table_form_id request/current_form_id | form_id">\n tal:define="table_form_id request/current_form_id | form_id">\n
\n \n
<a tal:condition="not:is_gadget_mode"\n <a tal:condition="not:is_gadget_mode"\n
tal:attributes="href string:${absolute_url}/${table_form_id}?list_style=table">\n tal:attributes="href string:${context_url}/${table_form_id}?list_style=table">\n
<img id="style_toggle_icon" \n <img id="style_toggle_icon" \n
src="erp5/images/search_style_icon.png" \n src="erp5/images/search_style_icon.png" \n
alt="Search Icon"\n alt="Search Icon"\n
...@@ -154,7 +152,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n ...@@ -154,7 +152,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n
tal:define = "params python: {\'list_style\':\'table\'}"\n tal:define = "params python: {\'list_style\':\'table\'}"\n
title="Table mode"\n title="Table mode"\n
type="button"\n type="button"\n
tal:attributes="onclick python: real_context.KnowledgePad_generateAjaxCall(absolute_url+\'/\'+table_form_id,box,box_id,params);"\n tal:attributes="onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+table_form_id,box,box_id,params);"\n
i18n:domain="ui" i18n:attributes="title">\n i18n:domain="ui" i18n:attributes="title">\n
<img id="style_toggle_icon"\n <img id="style_toggle_icon"\n
alt="Table Mode Icon"\n alt="Table Mode Icon"\n
...@@ -182,7 +180,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n ...@@ -182,7 +180,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n
title="Flat List"\n title="Flat List"\n
alt="Flat List"\n alt="Flat List"\n
tal:attributes="id string:${field_id}_flat_list_mode;\n tal:attributes="id string:${field_id}_flat_list_mode;\n
onclick python: real_context.KnowledgePad_generateAjaxCall(absolute_url+\'/\'+form_id,box,box_id,params);"\n onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,box_id,params);"\n
i18n:domain="ui" i18n:attributes="title">\n i18n:domain="ui" i18n:attributes="title">\n
<img src="text_block.png"\n <img src="text_block.png"\n
tal:attributes="src string:${portal_url_string}/images/text_block.png;"/></button>\n tal:attributes="src string:${portal_url_string}/images/text_block.png;"/></button>\n
...@@ -194,7 +192,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n ...@@ -194,7 +192,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n
title="Report Tree"\n title="Report Tree"\n
alt="Report Tree"\n alt="Report Tree"\n
tal:attributes="id string:${field_id}_report_tree_mode;\n tal:attributes="id string:${field_id}_report_tree_mode;\n
onclick python: real_context.KnowledgePad_generateAjaxCall(absolute_url+\'/\'+form_id,box,box_id,params);"\n onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,box_id,params);"\n
i18n:domain="ui" i18n:attributes="title">\n i18n:domain="ui" i18n:attributes="title">\n
<img src="view_tree.png"\n <img src="view_tree.png"\n
tal:attributes="src string:${portal_url_string}/images/view_tree.png;"/></button>\n tal:attributes="src string:${portal_url_string}/images/view_tree.png;"/></button>\n
...@@ -206,7 +204,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n ...@@ -206,7 +204,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n
title="Domain Tree"\n title="Domain Tree"\n
alt="Domain Tree"\n alt="Domain Tree"\n
tal:attributes="id string:${field_id}_domain_tree_mode;\n tal:attributes="id string:${field_id}_domain_tree_mode;\n
onclick python: real_context.KnowledgePad_generateAjaxCall(absolute_url+\'/\'+form_id,box,box_id,params);"\n onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,box_id,params);"\n
i18n:domain="ui" i18n:attributes="title">\n i18n:domain="ui" i18n:attributes="title">\n
<img src="view_choose.png"\n <img src="view_choose.png"\n
tal:attributes="src string:${portal_url_string}/images/view_choose.png;"/></button>\n tal:attributes="src string:${portal_url_string}/images/view_choose.png;"/></button>\n
...@@ -346,7 +344,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n ...@@ -346,7 +344,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n
style="cursor:pointer;"\n style="cursor:pointer;"\n
tal:content="python: p+1"\n tal:content="python: p+1"\n
tal:attributes="class python: p == here.current_page and \'selected\' or nothing;\n tal:attributes="class python: p == here.current_page and \'selected\' or nothing;\n
onclick python: real_context.KnowledgePad_generateAjaxCall(absolute_url+\'/\'+form_id,box,box_id,params)"/>\n onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,box_id,params)"/>\n
</tal:block>\n </tal:block>\n
</p>\n </p>\n
</div>\n </div>\n
...@@ -390,7 +388,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n ...@@ -390,7 +388,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n
tal:condition="python: here.getParamDict().has_key(\'your_search_text\')"\n tal:condition="python: here.getParamDict().has_key(\'your_search_text\')"\n
type="text"\n type="text"\n
tal:attributes=\'value python:here.getParamDict()["your_search_text"];\n tal:attributes=\'value python:here.getParamDict()["your_search_text"];\n
onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(absolute_url+"/"+form_id,box,box_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box,box_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n
\n \n
\n \n
<input tal:define ="params python: {\'ERP5Site_processAdvancedSearchBottom:method\':\'\',\'bottom_your_search_text\':\'this.value\'};"\n <input tal:define ="params python: {\'ERP5Site_processAdvancedSearchBottom:method\':\'\',\'bottom_your_search_text\':\'this.value\'};"\n
...@@ -399,7 +397,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n ...@@ -399,7 +397,7 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n
value=""\n value=""\n
tal:condition="python:not here.getParamDict().has_key(\'your_search_text\')"\n tal:condition="python:not here.getParamDict().has_key(\'your_search_text\')"\n
type="text"\n type="text"\n
tal:attributes=\'onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(absolute_url+"/"+form_id,box,box_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n tal:attributes=\'onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box,box_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n
\n \n
</div>\n </div>\n
\n \n
......
...@@ -42,25 +42,7 @@ ...@@ -42,25 +42,7 @@
<tal:block\n <tal:block\n
xmlns:tal="http://xml.zope.org/namespaces/tal"\n xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n xmlns:i18n="http://xml.zope.org/namespaces/i18n">\n
tal:define="field_id here/getId;\n
form_id python: here.getForm().id;\n
selection_name here/getSelectionName;\n
requested_selection_name here/getRequestedSelectionName;\n
selection_index here/getSelectionIndex;\n
selection here/getSelection;\n
portal_url_string here/getPortalUrlString;\n
real_context here/getContext;\n
context_url real_context/absolute_url;\n
md5_string here/getMD5Checksum;\n
line_list here/query;\n
is_domain_tree_mode here/isDomainTreeMode;\n
is_report_tree_mode here/isReportTreeMode;\n
is_domain_tree_supported here/isDomainTreeSupported;\n
is_report_tree_supported here/isReportTreeSupported;\n
show_select_column here/showSelectColumn;\n
show_search_line here/showSearchLine;\n
">\n
<tal:block metal:define-macro="main">\n <tal:block metal:define-macro="main">\n
\n \n
<tal:replace tal:content="nothing">\n <tal:replace tal:content="nothing">\n
......
682 683
\ 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