Commit 02326ff7 authored by Nicolas Dumazet's avatar Nicolas Dumazet

Bug #653: dont show a New button if there are no Visible Allowed content types


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31615 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c1d91414
......@@ -179,12 +179,14 @@
<span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">Print</span>\n
</button>\n
<button class="new" type="submit" title="New"\n
tal:attributes="name python: list_mode and \'Folder_create:method\' or \'Base_createNewDocument:method\'"\n
i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">New</span>\n
</button>\n
<tal:block tal:condition="python: len(here.getVisibleAllowedContentTypeList()) > 0">\n
<button class="new" type="submit" title="New"\n
tal:attributes="name python: list_mode and \'Folder_create:method\' or \'Base_createNewDocument:method\'"\n
i18n:attributes="title" i18n:domain="ui">\n
<span class="image"></span>\n
<span class="description" i18n:translate="" i18n:domain="ui">New</span>\n
</button>\n
</tal:block>\n
<button class="clone" type="submit" title="Clone"\n
name="Base_createCloneDocument:method"\n
tal:condition="not: list_mode"\n
......
2010-01-07 Nicolas Dumazet
* Dont show a New button if there are no Visible Allowed Content Types
2009-12-11 Kazuhiko
* update FCKeditor to 2.6.5.
......
859
\ No newline at end of file
860
\ 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