Author: jmorliaguet
Date: Sat May 27 22:53:51 2006
New Revision: 3251

Modified:
   
cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/settings_section.pt

Log:

- more information if there are no settings



Modified: 
cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/settings_section.pt
==============================================================================
--- 
cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/settings_section.pt  
    (original)
+++ 
cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/settings_section.pt  
    Sat May 27 22:53:51 2006
@@ -2,14 +2,15 @@
  tal:define="section request/form/section|nothing">
   <form tal:condition="section" action="@@createSetting">
     <ul style="height: 120px; overflow: auto;" class="items"
-        tal:define="setting_info context/@@getSettingsInfo">
+        tal:define="setting_info context/@@getSettingsInfo;
+                    infos setting_info/?section|nothing">
       <li tal:condition="request/form/create|nothing">
         <input type="text" class="text" name="title" />
         <input type="hidden" name="uri"
          tal:attributes="value request/form/uri" />
         <input type="submit" class="submit" value="create" />
       </li>
-      <li tal:repeat="info setting_info/?section|nothing">
+      <li tal:repeat="info infos">
         <span tal:content="info/setting/title" />
         <tal:block define="name info/name;
                            uri info/uri;
@@ -26,6 +27,7 @@
              tal:condition="not:readonly">[edit]</a>
         </tal:block>
       </li>
+      <li tal:condition="not:infos"><em>no settings</em></li>
     </ul>
   </form>
   <div tal:condition="not:section">
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to