Author: jmorliaguet
Date: Sat May 27 12:07:14 2006
New Revision: 3240

Modified:
   cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/portlet.pt
   cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/slot.pt
   cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/wysiwyg/slot.pt

Log:

- inserted models for slots / portlets



Modified: 
cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/portlet.pt
==============================================================================
--- 
cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/portlet.pt   
    (original)
+++ 
cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/portlet.pt   
    Sat May 27 12:07:14 2006
@@ -1,18 +1,10 @@
+<ins class="model" tal:content="context/@@getModel" />
+
 <div class="elementMovable elementShiftable portletTarget"
   tal:define="
-    info options/info;
-    globals info/globals;
-    display info/display;
-    perspective globals/perspective;
-    formats display/formattable:getFormatNames;
     title context/title;
     id context/identifier"
-  tal:attributes="
-    editable python:1;
-    formattable python: formats and 1 or 0;
-    formats python: ' '.join(formats);
-    targetid id;
-    id id">
+  tal:attributes="id id">
   <div class="portletBox">
     <strong tal:condition="title" tal:content="title" />
     (<tal:block i18n:domain="cpsskins"

Modified: 
cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/slot.pt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/slot.pt  
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/layout/slot.pt  
Sat May 27 12:07:14 2006
@@ -1,3 +1,5 @@
+<ins class="model" tal:content="context/@@getModel" />
+
 <tal:block define="
   info options/info;
   slot_title context/title;

Modified: 
cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/wysiwyg/slot.pt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/wysiwyg/slot.pt 
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/pagedesigner/wysiwyg/slot.pt 
Sat May 27 12:07:14 2006
@@ -1,30 +1,15 @@
-<!-- for testing: move to a view -->
-<ins class="model">
-{"id": "m1",
- "data": {
-   "editable":true
-}}
-</ins>
+<ins class="model" tal:content="context/@@getModel" />
 
 <tal:block define="
-  info options/info;
-  perspective info/perspective;
-  display info/display;
-  formats display/formattable:getFormatNames;
   slot_title context/title;
   slot_name context;
   id context/identifier;
   icon context/@@getIcon">
 
-  <div class="slotFrame editable draggable" destination="cellcontained"
-   tal:attributes="
-     editable python:1;
-     formattable python: formats and 1 or 0;
-     formats python: ' '.join(formats);
-     targetid id;
-     id id">
-    <div class="title" grip="1" tal:content="slot_title|slot_name" />
-    <div class="body" grip="1"><img src="" tal:attributes="src icon" />
+  <div class="slotFrame"
+   tal:attributes="id id">
+    <div class="title" tal:content="slot_title|slot_name" />
+    <div class="body"><img src="" tal:attributes="src icon" />
       <tal:block content="slot_name" />
     </div>
   </div>
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to