[Checkins] SVN: zope.app.container/trunk/ Show a "nothing to add" message instead of empty list in the Adding view when no content types available to add.
Dan Korostelev
nadako at gmail.com
Tue Feb 24 02:47:19 EST 2009
Log message for revision 97196:
Show a "nothing to add" message instead of empty list in the Adding view when no content types available to add.
Changed:
U zope.app.container/trunk/CHANGES.txt
U zope.app.container/trunk/src/zope/app/container/browser/add.pt
-=-
Modified: zope.app.container/trunk/CHANGES.txt
===================================================================
--- zope.app.container/trunk/CHANGES.txt 2009-02-24 07:34:58 UTC (rev 97195)
+++ zope.app.container/trunk/CHANGES.txt 2009-02-24 07:47:18 UTC (rev 97196)
@@ -5,7 +5,8 @@
3.7.2 (unreleased)
------------------
-- ...
+- Show a "nothing to add" message instead of empty list in the
+ adding view, if there's nothing to add.
3.7.1 (2009-02-05)
-------------------
Modified: zope.app.container/trunk/src/zope/app/container/browser/add.pt
===================================================================
--- zope.app.container/trunk/src/zope/app/container/browser/add.pt 2009-02-24 07:34:58 UTC (rev 97195)
+++ zope.app.container/trunk/src/zope/app/container/browser/add.pt 2009-02-24 07:47:18 UTC (rev 97196)
@@ -1,9 +1,13 @@
<html metal:use-macro="context/@@standard_macros/addingdialog"
i18n:domain="zope">
<body>
-<div metal:fill-slot="body">
+<div metal:fill-slot="body" tal:define="infos view/addingInfo">
- <form method="post" action="action.html">
+ <p tal:condition="not:infos" i18n:translate="">
+ There are no addable content types for this container.
+ </p>
+
+ <form method="post" action="action.html" tal:condition="infos">
<table class="TypeListing" cellpadding="3">
<tal:block define="title view/title | nothing">
@@ -13,7 +17,7 @@
i18n:translate="">Add Content</caption>
</tal:block>
- <tbody tal:define="infos view/addingInfo">
+ <tbody>
<tr tal:repeat="info infos">
More information about the Checkins
mailing list