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

Jim Fulton jim@zope.com
Sun, 29 Dec 2002 17:28:25 -0500


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

Modified Files:
	template.pt 
Log Message:
Changed the item help box to a tip box that gets filled when a
"pagetip" variable is defined.

Also added a slot in the heading that someone can fill to provide a
tip.

For example:

<html metal:use-macro="views/standard_macros/page">

<tal:block  
    metal:fill-slot="headers" 
    tal:define="global pagetip string:

    To add a service, add a service component to a package and then
    add an active configuration for it to the package's configuration
    object.

    "
    />

  

=== Zope3/src/zope/app/browser/skins/rotterdam/template.pt 1.3 => 1.4 ===
--- Zope3/src/zope/app/browser/skins/rotterdam/template.pt:1.3	Sat Dec 28 13:53:47 2002
+++ Zope3/src/zope/app/browser/skins/rotterdam/template.pt	Sun Dec 29 17:28:25 2002
@@ -9,6 +9,7 @@
 
     <title metal:define-slot="title">Z3 UI</title>
 
+
     <style type="text/css" 
            media="all"
            tal:content=
@@ -17,6 +18,7 @@
       @import url(zope3.css);
     </style>
 
+    <metal:block define-slot="headers" />
     <metal:block define-slot="style_slot" />
     <metal:block define-slot="ecmascript_slot" />
 
@@ -208,24 +210,16 @@
 
     <div id="helpers">
 
-      <div class="box" id="itemHelp">
-
-        <h3>
-
-          <metal:block define-slot="itemHelpTitle">
-            item help
-          </metal:block>
+      <div class="box" id="itemHelp" tal:condition="pagetip|nothing">
 
-        </h3>
+        <h3>Tip</h3>
 
         <div class="body">
 
           <div class="content odd">
 
-            <metal:block define-slot="itemHelp">
-              Lorem ipsum dolor sit amet, consec tetuer adipiscing elit, sed
-              diam nonummy nibh euismod tincidunt ut laoreet dolore magna
-              aliquam erat volutpat.
+            <metal:block define-slot="pagetip" tal:replace="pagetip">
+              A short tip goes here              
             </metal:block>
 
           </div>