Author: jmorliaguet
Date: Tue Jun 20 22:27:21 2006
New Revision: 3475

Added:
   cpsskins/branches/paris-sprint-2006/ui/screens/common/location_chooser.pt   
(contents, props changed)
Modified:
   cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml
   cpsskins/branches/paris-sprint-2006/ui/screens/definitions.py
   cpsskins/branches/paris-sprint-2006/ui/screens/editor.pt

Log:

- added a location chooser with free-text input



Modified: cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml        
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/common/configure.zcml        
Tue Jun 20 22:27:21 2006
@@ -98,6 +98,11 @@
       template="location_selector.pt"
     />
 
+    <page
+      name="locationChooser.html"
+      template="location_chooser.pt"
+    />
+
   </pages>
 
   <pages

Added: cpsskins/branches/paris-sprint-2006/ui/screens/common/location_chooser.pt
==============================================================================
--- (empty file)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/common/location_chooser.pt   
Tue Jun 20 22:27:21 2006
@@ -0,0 +1,8 @@
+<form action="@@setLocation" method="post"
+      tal:define="current_path request/cookies/cpsskins_location|nothing">
+  <label for="location">Set the location:
+  <input type="text" size="40"
+         name="location" tal:attributes="value current_path" />
+  </label>
+  <button type="submit">OK</button>
+</form>

Modified: cpsskins/branches/paris-sprint-2006/ui/screens/definitions.py
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/definitions.py       
(original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/definitions.py       Tue Jun 
20 22:27:21 2006
@@ -106,6 +106,13 @@
         }
     },
 
+    'location-chooser': {
+        'id': 'location-chooser',
+        'data': {
+            'url': '@@locationChooser.html',
+        }
+    },
+
     # the site manager screen
     'site-manager': {
         'id': 'site-manager',
@@ -341,6 +348,7 @@
             'type': 'panel',
         },
         'model': 'location-selector',
+        'subviews': ['location-chooser'],
         'perspectives': ['content-author'],
         'show_effect': {
             'transition': 'fadein',
@@ -348,6 +356,16 @@
         'controllers': ['main-editor-perspectives', 'main-editor-actions'],
     },
 
+    'location-chooser': {
+        'id': 'location-chooser',
+        'widget': {
+            'type': 'panel',
+        },
+        'model': 'location-chooser',
+        'perspectives': ['content-author'],
+        'controllers': ['main-editor-perspectives', 'main-editor-actions'],
+    },
+
     # rendered pages
     'wysiwyg-mode': {
         'id': 'wysiwyg-mode',

Modified: cpsskins/branches/paris-sprint-2006/ui/screens/editor.pt
==============================================================================
--- cpsskins/branches/paris-sprint-2006/ui/screens/editor.pt    (original)
+++ cpsskins/branches/paris-sprint-2006/ui/screens/editor.pt    Tue Jun 20 
22:27:21 2006
@@ -54,6 +54,8 @@
       <ins class="model" tal:content="python: model('page-tabs')" />
       <ins class="view" tal:content="python: view('page-tabs')" />
 
+      <ins class="model" tal:content="python: model('location-chooser')" />
+      <ins class="view" tal:content="python: view('location-chooser')" />
 
       <ins class="model" tal:content="python: model('panels')" />
 
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to