Commit 06a4d4a4 authored by Ivan Tyagov's avatar Ivan Tyagov

Indentation & comments. Small condition optimization.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@37319 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7c4878f9
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
i18n:domain="ui" i18n:attributes="title" /> \n i18n:domain="ui" i18n:attributes="title" /> \n
\n \n
</th>\n </th>\n
<!-- Column label row -->\n <!-- Label column row -->\n
<tal:block tal:repeat="value here/getLabelValueList">\n <tal:block tal:repeat="value here/getLabelValueList">\n
<tal:block tal:define="sql python: value[0];\n <tal:block tal:define="sql python: value[0];\n
title python: value[1];\n title python: value[1];\n
...@@ -279,28 +279,29 @@ ...@@ -279,28 +279,29 @@
src string:${portal_url_string}/images/exec16.png"\n src string:${portal_url_string}/images/exec16.png"\n
i18n:domain="ui" i18n:attributes="title" />\n i18n:domain="ui" i18n:attributes="title" />\n
</th>\n </th>\n
<!-- Real search columns -->\n
<th tal:repeat="value here/getSearchValueList">\n <th tal:repeat="value here/getSearchValueList">\n
<tal:block tal:define="alias python: value[0];\n <tal:block tal:define="alias python: value[0];\n
param python: value[1];\n param python: value[1];\n
search_field python: value[2]"\n search_field python: value[2]"\n
tal:condition="alias">\n tal:condition="alias">\n
\n <!-- Render search field -->\n
<tal:block\n <tal:block tal:condition="python: search_field is not None"\n
tal:condition="python: search_field is not None"\n
tal:replace="structure python: search_field.render(value=param, key=alias)"/>\n tal:replace="structure python: search_field.render(value=param, key=alias)"/>\n
\n \n
<input tal:condition="python: not is_gadget_mode and search_field is None" \n <tal:block tal:condition="python: search_field is None">\n
<input tal:condition="python: not is_gadget_mode" \n
name="id" size="5" value=""\n name="id" size="5" value=""\n
type="text" tal:attributes="name alias; value param"/>\n type="text" tal:attributes="name alias; value param"/>\n
\n
<!-- Search for gadget mode -->\n <!-- Search for gadget mode -->\n
<input tal:condition="python: is_gadget_mode and search_field is None" \n <input tal:condition="python: is_gadget_mode" \n
tal:define ="params python: {alias:\'this.value\'};"\n tal:define ="params python: {alias:\'this.value\'};"\n
size="8"\n size="8"\n
type="textarea" \n type="textarea" \n
tal:attributes=\'value python: selection.getParams().get(alias,"");\n tal:attributes=\'value python: selection.getParams().get(alias,"");\n
onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box,dom_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,dom_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n
</tal:block>\n </tal:block>\n
</tal:block>\n
</th>\n </th>\n
</tr>\n </tr>\n
</thead>\n </thead>\n
......
1495 1496
\ 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