Commit ba138dae authored by Fabien Morin's avatar Fabien Morin

if no list_action are defined on listbox, don't display link. Make this...

if no list_action are defined on listbox, don't display link. Make this available for all list style

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26172 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 64a67f09
...@@ -179,9 +179,15 @@ ...@@ -179,9 +179,15 @@
</td>\n </td>\n
<td style="width: 100%; vertical-align: middle">\n <td style="width: 100%; vertical-align: middle">\n
&nbsp;\n &nbsp;\n
<a id="listbox_title" href="list" class="listbox_title"\n <a tal:attributes="id string:${field_id}_title; href here/getListActionUrl"\n
tal:attributes="id string:${field_id}_title; href here/getListActionUrl">\n tal:condition="python: here.field.get_value(\'list_action\')">\n
<tal:block tal:content="here/getTitle" i18n:domain="ui" i18n:translate=""/>:</a>\n <em i18n:translate="" \n
i18n:domain="ui" tal:content="here/getTitle" tal:condition="here/getTitle"/>\n
</a>\n
<tal:block tal:condition="python: not here.field.get_value(\'list_action\')">\n
<em i18n:translate="" \n
i18n:domain="ui" tal:content="here/getTitle" tal:condition="here/getTitle"/>\n
</tal:block>\n
<span id="listbox_record_number" class="listbox_record_number"\n <span id="listbox_record_number" class="listbox_record_number"\n
tal:attributes="id string:${field_id}_record_number"\n tal:attributes="id string:${field_id}_record_number"\n
i18n:translate="" i18n:domain="ui"><tal:block tal:replace="here/total_size" i18n:name="number">0</tal:block> record(s)</span>\n i18n:translate="" i18n:domain="ui"><tal:block tal:replace="here/total_size" i18n:name="number">0</tal:block> record(s)</span>\n
......
...@@ -147,10 +147,15 @@ ...@@ -147,10 +147,15 @@
alt="Search mode"\n alt="Search mode"\n
src="erp5/images/table_style_icon.png"\n src="erp5/images/table_style_icon.png"\n
height="16"/></button>\n height="16"/></button>\n
\n <a tal:attributes="id string:${field_id}_title; href here/getListActionUrl"\n
<a tal:attributes="id string:${field_id}_title; href here/getListActionUrl">\n tal:condition="python: here.field.get_value(\'list_action\')">\n
<em i18n:domain="ui" i18n:translate="" tal:content="here/getTitle" tal:condition="here/getTitle"/>\n <em i18n:translate="" \n
i18n:domain="ui" tal:content="here/getTitle" tal:condition="here/getTitle"/>\n
</a>\n </a>\n
<tal:block tal:condition="python: not here.field.get_value(\'list_action\')">\n
<em i18n:translate="" \n
i18n:domain="ui" tal:content="here/getTitle" tal:condition="here/getTitle"/>\n
</tal:block>\n
<!-- supporting domain tree mode for gadget mode (disabled)-->\n <!-- supporting domain tree mode for gadget mode (disabled)-->\n
<!--\n <!--\n
<br tal:condition="is_gadget_mode"/>\n <br tal:condition="is_gadget_mode"/>\n
......
676 677
\ 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