[Zope-CVS] CVS: Products/PageDesign/www - main.pt:1.1.2.1 designFrames.pt:1.1.1.1.2.1 designTopFrame.pt:1.1.1.1.2.1 pagedesign.css:1.1.1.1.2.1 scripts.js:1.2.2.1 areas.pt:NONE

Shane Hathaway shane@cvs.zope.org
Mon, 5 Aug 2002 21:28:28 -0400


Update of /cvs-repository/Products/PageDesign/www
In directory cvs.zope.org:/tmp/cvs-serv22348/www

Modified Files:
      Tag: page-redesign-branch
	designFrames.pt designTopFrame.pt pagedesign.css scripts.js 
Added Files:
      Tag: page-redesign-branch
	main.pt 
Removed Files:
      Tag: page-redesign-branch
	areas.pt 
Log Message:
Fixed up enough to run again, but the Javascript and the palette aren't there
yet.


=== Added File Products/PageDesign/www/main.pt ===
<h1 tal:replace="structure here/manage_page_header">Header</h1>
<h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
    tal:replace="structure here/manage_tabs">Tabs</h2>

<p>
<a href="designFrames" target="design">Edit!</a>
</p>

<form action="manage_changeProperties" method="POST">
<table>

<tr>
<th>
Title
</th>
<td>
<input type="text" name="title" size="50"
       tal:attributes="value here/title" />
</td>
</tr>

<tr>
<th>
Template ID
</th>
<td>
<input type="text" name="template_id" size="30"
       tal:attributes="value here/template_id" />
</td>
</tr>

<tr>
<td colspan="2">
<input type="submit" name="submit" value="Save Changes" />
</td>
</tr>
</table>


<h1 tal:replace="structure here/manage_page_footer">Footer</h1>


=== Products/PageDesign/www/designFrames.pt 1.1.1.1 => 1.1.1.1.2.1 ===
  </head>
  <frameset rows="24, *"
    tal:define="pq python: request.get('preview', 0) and '?preview=1' or ''">
-  <frame src="manage_designTopFrame" name="manage_designTopFrame"
+  <frame src="designTopFrame" name="designTopFrame"
    tal:attributes="src
-     string:${here/absolute_url}/manage_designTopFrame${pq}"
+     string:${here/absolute_url}/designTopFrame${pq}"
    marginheight="0" scrolling="no" />
-  <frame src="manage_editForm" name="manage_editForm"
+  <frame src="editForm" name="editForm"
    tal:attributes="src python:
-     here.absolute_url() + (not pq and '/manage_editForm' or '')"
+     here.absolute_url() + (not pq and '/editForm' or '')"
    marginwidth="2" marginheight="2" scrolling="auto" />
  </frameset>
  <noframes>
-  <a href="manage_editForm">Edit page elements</a>
+  <a href="editForm">Edit page elements</a>
  </noframes>
 </html>


=== Products/PageDesign/www/designTopFrame.pt 1.1.1.1 => 1.1.1.1.2.1 ===
                    editable python: (not locktool or (locktool.locked(here)
                    and not locktool.isLockedOut(here)));"
        tal:condition="editable"><a
-       href="manage_designFrames" target="_top">Edit</a> |
+       href="designFrames" target="_top">Edit</a> |
     </span>
     <a
-       href="manage_designFrames?preview=1"
+       href="designFrames?preview=1"
        target="_top">Preview</a> |
     <a href="#" onClick="closeAndReload(); return false;">Close</a>
    </p>


=== Products/PageDesign/www/pagedesign.css 1.1.1.1 => 1.1.1.1.2.1 ===
 }
 
 .design-target {
-  border: 1px dashed black;
-  padding: 2px;
-  visibility: hidden;
+  border: 1px solid black;
 }


=== Products/PageDesign/www/scripts.js 1.2 => 1.2.2.1 ===
 }
 
 
-function setupPalette() {
-  var node = document.getElementById('design-palette-window');
-  node.style.width = window.innerWidth * 2 / 3;
-  node.style.top = window.innerHeight - node.offsetHeight;
-  node.style.left = (window.innerWidth - node.offsetWidth) / 2;
-}
-
-
-function dragWindow(e, node) {
-  if (!e)
-    e = event;
-  var dx = parseInt(node.style.left || '0') - e.screenX;
-  var dy = parseInt(node.style.top || '0') - e.screenY;
-
-  function drag(e) {
-    if (!e)
-      e = event;
-    node.style.left = e.screenX + dx;
-    node.style.top = e.screenY + dy;
-  }
-
-  function finish(e) {
-    dragging = false;
-    document.onmousemove = null;
-    document.onmouseup = null;
-    document.onselectstart = null;
-    // Store the new position on the server somehow.
-  }
-
-  dragging = true;
-  document.onmousemove = drag;
-  document.onmouseup = finish;
-  document.onselectstart = ignore;
-
-  if (e.preventDefault)
-    e.preventDefault();  // Mozilla / NS 6: Don't start a selection.
-}
-
-
 function unhighlightElement() {
   if (highlighted_element) {
     highlighted_element.style.border = "2px dashed transparent";
@@ -278,7 +239,6 @@
 }
 
 function initPageDesign() {
-  setupPalette();
   initDesignNodes(document);
 }
 

=== Removed File Products/PageDesign/www/areas.pt ===