Commit 4dd4eaf0 authored by Thibaut Deheunynck's avatar Thibaut Deheunynck

Modify form_view to see ImageField when the field is in bottom group

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20429 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 50ee854e
...@@ -406,14 +406,15 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value> ...@@ -406,14 +406,15 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value>
</tal:block>\n </tal:block>\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: field_type == \'ImageField\'">\n <tal:block tal:condition="python: field_type == \'ImageField\'">\n
<text:p text:style-name=\'field-content\'\n <text:p text:style-name=\'field-label-center\' i18n:domain="ui" i18n:translate=""\n
tal:content="python: field.get_value(\'title\')"/>\n
\n
<text:p text:style-name=\'field-content-center\'\n
tal:define="size python: modules[\'Products.ERP5.Document.Image\'].getSizeFromImageDisplay(field.get_value(\'image_display\'))">\n tal:define="size python: modules[\'Products.ERP5.Document.Image\'].getSizeFromImageDisplay(field.get_value(\'image_display\'))">\n
<text:p text:style-name=\'field-content-center\'>\n
<office:include_img style="inline-graphic"\n <office:include_img style="inline-graphic"\n
tal:attributes="width python: (size and size[0] or 100) / 20.;\n tal:attributes="width python: (size and size[0] or 100) / 20.;\n
path python: \'/\'.join(request.physicalPathFromURL(field.get_value(\'default\')));"/>\n path python: \'/\'.join(request.physicalPathFromURL(field.get_value(\'default\')));"/>\n
</text:p>\n </text:p>\n
</text:p>\n
</tal:block>\n </tal:block>\n
<tal:block tal:condition="python: field_type == \'OOoChart\'">\n <tal:block tal:condition="python: field_type == \'OOoChart\'">\n
<text:p text:style-name=\'field-label-center\' i18n:domain="ui" i18n:translate=""\n <text:p text:style-name=\'field-label-center\' i18n:domain="ui" i18n:translate=""\n
......
43 44
\ 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