Commit 167dc76e authored by Ivan Tyagov's avatar Ivan Tyagov

Use translated title for classification's category.

Made code more readable.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22765 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 571d4037
......@@ -54,34 +54,52 @@
<tal:block replace="nothing">\n
This is used in contribute tab to distinguish implemented/not implemented "file" features\n
</tal:block>\n
\n
<span metal:define-macro="file_feature">\n
<a tal:condition="impl" href="javascript:void 0" onclick="fileImplemented()" tal:content="title"/>\n
<a tal:condition="python:not impl" href="javascript:void 0" onclick="fileNotImplemented()" tal:content="title" style="color:grey"/>\n
<a tal:condition="impl" href="javascript:void 0" \n
onclick="fileImplemented()" \n
tal:content="title"/>\n
<a tal:condition="python:not impl" \n
href="javascript:void 0" \n
onclick="fileNotImplemented()" \n
tal:content="title" \n
style="color:grey"/>\n
</span>\n
\n
<tal:block replace="nothing">\n
This is used in main panel to fill properties for contributing document or external resource\n
</tal:block>\n
\n
<div metal:define-macro="contribute_properties"\n
tal:define="contribute_prefix contribute_prefix | string:">\n
<div>\n
<label for="classification" value="" i18n:translate="" i18n:domain="ui">Classification</label>\n
<select size="1" name="classification" id="classification"\n
<label for="classification" value="" \n
i18n:translate="" i18n:domain="ui">Classification</label>\n
\n
<select size="1" \n
name="classification" \n
id="classification"\n
tal:attributes="name string:${contribute_prefix}classification">\n
<option value="" value="" i18n:translate="" i18n:domain="ui">-- Select Classification --</option>\n
<option tal:repeat="item python:[c for c in here.portal_categories.classification.getCategoryChildLogicalPathItemList()[1:] if len(c[1].split(\'/\'))>1]" tal:content="python:item[0]" tal:attributes="value python:item[1]">\n
Agricultural Development\n
</option>\n
<option value="" value="" \n
i18n:translate="" i18n:domain="ui">-- Select Classification --</option>\n
<option \n
tal:repeat="item python:[c for c in here.portal_categories.classification.getCategoryChildTranslatedCompactLogicalPathItemList()[1:] if len(c[1].split(\'/\'))>1]" \n
tal:content="python:item[0]" \n
tal:attributes="value python:item[1]"> Agricultural Development</option>\n
</select>\n
</div>\n
\n
<div tal:condition="here/Base_hasProjectModuleViewPermission">\n
<label for="source_project" value="" i18n:translate="" i18n:domain="ui">Programme</label>\n
<label for="source_project" value="" \n
i18n:translate="" i18n:domain="ui">Programme</label>\n
<select size="1" id="source_project" name="source_project"\n
tal:attributes="name string:${contribute_prefix}source_project">\n
<option value="" value="" i18n:translate="" i18n:domain="ui">-- Select Programme --</option>\n
<option value="" value="" \n
i18n:translate="" i18n:domain="ui">-- Select Programme --</option>\n
<option tal:repeat="item python:[(o.getTitle(),o.getRelativeUrl()) for o in \n
here.project_module.searchFolder(sort_on=\'title\')]"\n
tal:content="python:item[0]" tal:attributes="value python:item[1]">\n
tal:content="python:item[0]" \n
tal:attributes="value python:item[1]">\n
Agricultural Development\n
</option>\n
</select>\n
......
683
\ No newline at end of file
684
\ 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