Author: jmorliaguet
Date: Tue May 30 11:49:07 2006
New Revision: 3272

Modified:
   
cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/element_editor.pt
   cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/configure.zcml

Log:

- added the usePresetAsFormat action



Modified: 
cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/element_editor.pt
==============================================================================
--- 
cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/element_editor.pt  
    (original)
+++ 
cpsskins/branches/paris-sprint-2006/ui/screens/elementeditor/element_editor.pt  
    Tue May 30 11:49:07 2006
@@ -66,6 +66,7 @@
           <p>
             <label for="title">Title</label>
             <input id="title" type="text" name="title" />
+            <input type="hidden" name="uri" tal:attributes="value info/uri" />
             <input type="submit" name="UPDATE_SUBMIT"
              i18n:translate="create-button" value="Create" />
           </p>
@@ -77,8 +78,7 @@
         <ul class="inlineTabs">
           <li tal:repeat="preset preset_info/?edited_type">
             <a href="" tal:content="preset/name"
-             tal:attributes="href 
string:${display/@@absolute_url}/@@usePresetAsFormat?uri=${preset/uri}" />
-          </li>
+             tal:attributes="href 
string:${display/@@absolute_url}/@@usePresetAsFormat?uri=${preset/uri}" /></li>
         </ul>
       </fieldset>
     </div>

Modified: 
cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/configure.zcml
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/configure.zcml   
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/sitemanager/configure.zcml   
Tue May 30 11:49:07 2006
@@ -19,7 +19,7 @@
 
   <pages
       for="*"
-      permission="zope.Public"
+      permission="zope.ManageContent"
       class=".views.SiteDesignerView">
 
     <page
@@ -63,6 +63,16 @@
     />
 
     <page
+        name="createPreset"
+        attribute="createPreset"
+    />
+
+    <page
+        name="usePresetAsFormat"
+        attribute="usePresetAsFormat"
+    />
+
+    <page
         name="createSnapshot"
         attribute="createSnapshot"
     />
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to