[Zope3-checkins] CVS: Zope3/src/zope/app/browser/skins/rotterdam - dialog_macros.pt:1.2

Jim Fulton jim@zope.com
Mon, 30 Dec 2002 11:51:04 -0500


Update of /cvs-repository/Zope3/src/zope/app/browser/skins/rotterdam
In directory cvs.zope.org:/tmp/cvs-serv15248

Modified Files:
	dialog_macros.pt 
Log Message:
Made the dialog macro an independent copy of the page template
(template.pt) with content-specific boxes and controls removed.


=== Zope3/src/zope/app/browser/skins/rotterdam/dialog_macros.pt 1.1 => 1.2 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/dialog_macros.pt:1.1	Thu Dec 26 15:20:48 2002
+++ Zope3/src/zope/app/browser/skins/rotterdam/dialog_macros.pt	Mon Dec 30 11:51:03 2002
@@ -1,16 +1,185 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
-         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html metal:define-macro="dialog">
-<head metal:use-macro="views/standard_macros/head" />
-
-<body>
-  <span metal:use-macro="views/standard_macros/breadcrumbs" />
-
-  <div metal:define-slot="body">
-     <p>Body here</p>
-  </div>
+<metal:block define-macro="dialog"><metal:block define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></metal:block>
+
+<html
+  xmlns="http://www.w3.org/1999/xhtml"
+  xml:lang="en"
+  lang="en" >
+
+  <head>
+    <!-- Waaa -->
+    <title metal:define-slot="title">Z3 UI</title>
+
+
+    <style type="text/css" 
+           media="all"
+           tal:content=
+           "string: @import url(${context/++resource++zope3.css});"
+           >
+      @import url(zope3.css);
+    </style>
+
+    <metal:block define-slot="headers" />
+    <metal:block define-slot="style_slot" />
+    <metal:block define-slot="ecmascript_slot" />
+
+    <script type="text/javascript" src="xmltree.js" 
+            tal:attributes="src string:${context/++resource++xmltree.js}"
+            ></script>
+  </head>
+
+  <body onload="loadtree('');"
+        tal:define="rooturl     request/getApplicationURL;
+                    thisbaseurl request/URL/-1;
+                    "
+        tal:attributes="
+          onload string:loadtree('${rooturl}/', '${thisbaseurl}/');
+          " 
+        >
+
+    <div id="global">
+      Global elements
+    </div>
+
+    <div id="personal">
+
+      <metal:block define-macro="logged_user">
+        User:
+        <tal:block replace="request/user/getTitle">
+          User
+        </tal:block>
+      </metal:block>
+
+      (Personal elements)
+    </div>
+
+
+    <div id="navigators">
+
+      <div class="box" id="navigationTree">
+
+        <h3>Navigation</h3>
+
+        <div 
+          xmlns="http://www.zope.org/zope3xmltree"
+          id="navtreecontents" 
+          class="body" 
+          onclick="treeclicked(event);" 
+          onmouseover="mouseOverTree(event);"
+          onmouseout="mouseOutTree(event);"
+          >
+        </div>
+
+      </div>
+    </div>
+
+    <div id="content">
+
+      <div id="breadcrumbs"
+           metal:define-macro="breadcrumbs"
+           > Location:&nbsp;<tal:block
+               repeat="breadcrumb context/@@absolute_url/breadcrumbs"
+              ><a href=""
+                  tal:condition="repeat/breadcrumb/start"
+                  tal:content="string:[top]"
+                  tal:attributes="
+                  href string:${breadcrumb/url}/@@SelectedManagementView.html"
+                  >XXX should not hardcode root folder name string</a
+                 ><a href=""
+                     tal:condition="not:repeat/breadcrumb/start"
+                     tal:content="string:${breadcrumb/name}"
+                     tal:attributes="
+                     href string:${breadcrumb/url}/@@SelectedManagementView.html"
+                      >breadcrumb item</a>/</tal:block>
+      </div>
+
+      <div class="item">
+
+        <metal:block define-slot="body">
+
+            <table class="listing">
+
+              <thead>
+
+                <th>Test</th>
+                <th>Another</th>
+
+              </thead>
+
+
+              <tbody>
+
+                <tr>
+
+                  <td>content</td>
+                  <td>thingy</td>
+
+                </tr>
+
+
+                <tr class="even">
+
+                  <td>more</td>
+                  <td>data</td>
+
+                </tr>
+
+              </tbody>
+
+            </table>
+        </metal:block>
+
+
+        <div id="messages">
+
+          Status and error messages
+
+          <div id="logger"></div>
+        </div>
+
+      </div>
+
+    </div>
+
+
+    <div id="context_information">
+
+    <div id="helpers">
+
+      <div class="box" id="itemHelp" tal:condition="pagetip|nothing">
+
+        <h3>Tip</h3>
+
+        <div class="body">
+
+          <div class="content odd">
+
+            <metal:block define-slot="pagetip" tal:replace="pagetip">
+              A short tip goes here              
+            </metal:block>
+
+          </div>
+
+        </div>
+
+      </div>
+
+    </div>
+
+
+
+    </div>
+
+
+    <div id="footer"
+      metal:define-macro="footer">
+      Powered by Zope
+    </div>
+
+
+  </body>
 
-  <div metal:use-macro="views/standard_macros/footer" />
-</body>
 </html>
+
+</metal:block>
+