Author: jmorliaguet
Date: Sun Mar 19 12:52:40 2006
New Revision: 2660

Modified:
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/panels/cpsskins_panels.pt
   
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/panels/form.pt
Log:

- test update



Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/panels/cpsskins_panels.pt
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/panels/cpsskins_panels.pt
    (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/panels/cpsskins_panels.pt
    Sun Mar 19 12:52:40 2006
@@ -19,15 +19,16 @@
     padding: 0.8em;
     border: 1px solid #fc0;
     background-color: #ffc;
-    width: 200px;
+    width: 240px;
     font: 13px verdana, sans-serif;
+    margin: 10px;
   }
   </style>
 
 </head>
 <body>
 
-  <h1>CPSSkins Panels with form submission</h1>
+  <h1>CPSSkins Panels / IFrames</h1>
 
   <p>The panel shown below has a form controller attached to it. When the user
   clicks on the "click me!" button a remote call is done to the server which 
@@ -36,6 +37,9 @@
   <p>This makes it possible to perform a form submission with a redirection 
   inside a given area of a page without reloading the entire page.
   </p>
+  <p>There is also a "Location controller" which make it possible
+  to "follow" the links, or get data from the server without reloading the 
page.
+  </p>
 
   <ins class="model">
   {"id": "panel",
@@ -50,12 +54,41 @@
   }}
   </ins>
 
+  <ins class="model">
+  {"id": "panel2",
+   "storage": {
+     "type": "remote",
+     "accessors": {
+       "set": "@@doSomething"
+     }
+   },
+   "data": {
+     "url": "@@panels-form.html"
+  }}
+  </ins>
+
   <div class="box">
     <ins class="view">
     {"id": "panel-view",
      "model": "panel",
      "perspectives": ["default"],
-     "controllers": ["show-panel", "form"],
+     "controllers": ["show-panel", "form", "location1"],
+     "widget": {
+       "type": "panel"
+     },
+     "render_effect": {
+       "transition": "fadein",
+       "duration": 500
+    }}
+    </ins>
+  </div>
+
+  <div class="box">
+    <ins class="view">
+    {"id": "panel-view-2",
+     "model": "panel2",
+     "perspectives": ["default"],
+     "controllers": ["show-panel", "form2", "location2"],
      "widget": {
        "type": "panel"
      },
@@ -73,6 +106,23 @@
   </ins>
 
   <ins class="controller">
+  {"id": "form2",
+   "type": "form"
+  }
+  </ins>
+  <ins class="controller">
+  {"id": "location1",
+   "type": "location"
+  }
+  </ins>
+
+  <ins class="controller">
+  {"id": "location2",
+   "type": "location"
+  }
+  </ins>
+
+  <ins class="controller">
   {"id": "show-panel",
    "type": "perspective selector",
    "initial": "default"

Modified: 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/panels/form.pt
==============================================================================
--- 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/panels/form.pt
       (original)
+++ 
cpsskins/branches/jmo-perspectives/ui/framework/tests/zope3/functional/panels/form.pt
       Sun Mar 19 12:52:40 2006
@@ -1,10 +1,16 @@
 <form action="" method="get" onsubmit="return false"
   tal:define="updated request/form/updated|nothing">
 
-  <p tal:condition="not:updated">
-    <span>Update the box ...</span>
-    <button type="submit">Click me!</button>
-  </p>
+  <div tal:condition="not:updated">
+    <p>
+      <span>To update this box ...</span>
+      <button type="submit">Click me!</button>
+    </p>
+
+    <p>
+      or <a href="@@doSomething">click me!</a>
+    </p>
+  </div>
 
   <p tal:condition="updated">
     I have just been updated!
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to