[CMF-checkins] CVS: CMF/CMFDefault/skins/zpt_generic - folder_contents.pt:1.8
runyaga
runyaga@thisbox.com
Mon, 14 Apr 2003 10:24:04 -0400
Update of /cvs-repository/CMF/CMFDefault/skins/zpt_generic
In directory cvs.zope.org:/tmp/cvs-serv29013/skins/zpt_generic
Modified Files:
folder_contents.pt
Log Message:
if there are no allowedContentTypes do not show New... button
=== CMF/CMFDefault/skins/zpt_generic/folder_contents.pt 1.7 => 1.8 ===
--- CMF/CMFDefault/skins/zpt_generic/folder_contents.pt:1.7 Thu Mar 6 05:28:50 2003
+++ CMF/CMFDefault/skins/zpt_generic/folder_contents.pt Mon Apr 14 10:24:03 2003
@@ -179,7 +179,8 @@
<tr>
<td align="left" valign="top" width="16"></td>
<td align="left" valign="top">
- <span tal:condition="python: checkPerm('Add portal content', here)">
+ <span tal:condition="python: test(checkPerm('Add portal content', here)
+ and here.allowedContentTypes(), 1, 0)">
<input type="submit" name="folder_factories:method" value="New..."
i18n:attributes="value" />
</span>