[Zope3-checkins] CVS: ZopeProducts/RotterdamSprint - dialog_macros.pt:1.1 service_manager.pt:1.1 view_macros.pt:1.1 configure.zcml:1.11 template.pt:1.12 zope3.css:1.7
Jan-Wijbrand Kolman
jw@infrae.com
Wed, 4 Dec 2002 14:30:45 -0500
Update of /cvs-repository/ZopeProducts/RotterdamSprint
In directory cvs.zope.org:/tmp/cvs-serv13965
Modified Files:
configure.zcml template.pt zope3.css
Added Files:
dialog_macros.pt service_manager.pt view_macros.pt
Log Message:
next steps in overriding views in the 'Rotterdam' layer - added macri files and a view for Servicemanagers
=== Added File ZopeProducts/RotterdamSprint/dialog_macros.pt ===
<!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>
<div metal:use-macro="views/standard_macros/footer" />
</body>
</html>
=== Added File ZopeProducts/RotterdamSprint/service_manager.pt ===
<html metal:use-macro="views/standard_macros/page">
<metal:block fill-slot="itemHelpTitle">
ServiceManager
</metal:block>
<metal:block fill-slot="itemHelp">
To configure a service, add a service component to a
<em>package</em> in <a href="Packages">Packages</a> or to
the <a href="Packages/default">default package</a>. After the
component is added, add a service configuration that configures the
component to provide a service.
</metal:block>
<body
metal:fill-slot="body"
tal:define="services view/update">
<h2>Services configured in this service manager.</h2>
<p tal:condition="not:services">
No services have been configured
</p>
<div tal:condition="services">
<form action="." method="post"
tal:attributes="action request/URL">
<table width="100%">
<tr tal:repeat="service services">
<td valign="top" align="right">
<a href="Roles"
tal:content="service/name"
tal:attributes="href service/name"
tal:condition="service/active">
Roles
</a>
<span
tal:replace="service/name"
tal:condition="service/inactive" />
</td>
<td tal:content="structure service/view">
</td>
</tr>
</table>
<input type=submit name="submit_update" value="Update"><br>
</form>
</div>
</body>
</html>
=== Added File ZopeProducts/RotterdamSprint/view_macros.pt ===
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html metal:define-macro="page">
<head metal:define-macro="head">
<title
metal:define-slot="title"
tal:content="options/getTitle|view/getTitle|context/getTitle|default"
>Zope</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="/@@/zopetopBasic.css" rel="stylesheet" type="text/css"
tal:attributes="href string:/@@/zopetopBasic.css" />
<link href="/@@/zopetopWidgets.css" rel="stylesheet" type="text/css"
tal:attributes="href string:/@@/zopetopWidgets.css" />
<link href="/@@/zopetopStructure.css" rel="stylesheet" type="text/css"
tal:attributes="href string:/@@/zopetopStructure.css" />
<div metal:define-slot="headers">
</div>
</head>
<body>
<table metal:define-macro="zmi_tabs"><tr>
<td tal:repeat="view views/standard_macros/getZMIViews">
<a href="" tal:attributes="href view/action" tal:content="view/title">
label</a>
<tal:block condition="not: repeat/view/end">'</tal:block>
</td>
</tr></table>
<div metal:define-slot="body">
<p>Body here</p>
</div>
<div metal:define-macro="logged_user">
<p>User: <span tal:replace="request/user/getTitle">User</span></p>
</div>
<div metal:define-macro="footer">
<p>Powered by Zope</p>
</div>
</body>
</html>
=== ZopeProducts/RotterdamSprint/configure.zcml 1.10 => 1.11 ===
--- ZopeProducts/RotterdamSprint/configure.zcml:1.10 Wed Dec 4 11:54:37 2002
+++ ZopeProducts/RotterdamSprint/configure.zcml Wed Dec 4 14:30:45 2002
@@ -12,17 +12,25 @@
<browser:resource
name="xmltree.js" file="xmltree.js" layer="rotterdam" />
-<browser:view
+<!-- browser:view
name="template"
permission="Zope.View"
template="template.pt"
+ layer="rotterdam" / -->
+
+<browser:view
+ for="Zope.App.OFS.Services.ServiceManager.IServiceManager."
+ name="index.html"
+ template="service_manager.pt"
+ class="Zope.App.OFS.Services.ServiceManager.Browser.Services."
+ permission="Zope.ManageServices"
layer="rotterdam" />
<browser:view
- for="Zope.App.OFS.Container.IContainer.IReadContainer"
- permission="Zope.View"
- factory=".XmlObjectView.">
- <browser:page name="children.xml" attribute="children" />
+ for="Zope.App.OFS.Container.IContainer.IReadContainer"
+ permission="Zope.View"
+ factory=".XmlObjectView.">
+ <browser:page name="children.xml" attribute="children" />
</browser:view>
<!-- below overrides the standard_macros by Rotterdam Skin -->
@@ -39,6 +47,17 @@
layer="rotterdam"
template="template.pt" />
+<browser:view
+ name="view_macros"
+ permission="Zope.View"
+ layer="rotterdam"
+ template="view_macros.pt" />
+
+<browser:view
+ name="dialog_macros"
+ permission="Zope.View"
+ layer="rotterdam"
+ template="dialog_macros.pt" />
<!-- lets include rotterdam versions of ZMI views -->
<browser:view
=== ZopeProducts/RotterdamSprint/template.pt 1.11 => 1.12 ===
--- ZopeProducts/RotterdamSprint/template.pt:1.11 Wed Dec 4 11:54:37 2002
+++ ZopeProducts/RotterdamSprint/template.pt Wed Dec 4 14:30:45 2002
@@ -20,21 +20,41 @@
tal:attributes="src string:${context/++resource++xmltree.js}" />
</head>
- <body tal:attributes="onload string:loadtree('${request/URL/1}/');;"
- onload="loadtree('');">
+ <body onload="loadtree('');"
+ tal:attributes="onload string:loadtree('${request/URL/1}/');" >
<div id="global">
Global elements
</div>
<div id="personal">
- Personal elements
+ <metal:block define-macro="logged_user">
+ User:
+ <tal:block replace="request/user/getTitle">
+ User
+ </tal:block>
+ </metal:block>
+ (Personal elements)
</div>
- <div id="breadcrumbs">
- You are here:
- <metal:block use-macro="views/standard_macros/breadcrumbs">
- Breadcrumb navigation
- </metal:block>
+ <div id="breadcrumbs"
+ metal:define-macro="breadcrumbs">
+ Location:
+ <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">
+ breadcrumb item
+ </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 id="navigators">
@@ -57,7 +77,6 @@
<div class="content even">
and some more
</div>
-
</div>
</div>
</div>
@@ -102,15 +121,21 @@
</div>
</div>
+ <div id="context_information">
<div id="helpers">
<div class="box" id="itemHelp">
- <h3>Item Help</h3>
+ <h3>
+ <metal:block define-slot="itemHelpTitle">
+ item help
+ </metal:block>
+ </h3>
<div class="body">
<div class="content odd">
- testing testing
- </div>
- <div class="content even">
- and some more
+ <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>
</div>
</div>
</div>
@@ -128,6 +153,12 @@
</div>
</div>
</div>
+ </div>
+ </div>
+
+ <div id="footer"
+ metal:define-macro="footer">
+ Powered by Zope
</div>
</body>
=== ZopeProducts/RotterdamSprint/zope3.css 1.6 => 1.7 ===
--- ZopeProducts/RotterdamSprint/zope3.css:1.6 Wed Dec 4 05:24:21 2002
+++ ZopeProducts/RotterdamSprint/zope3.css Wed Dec 4 14:30:45 2002
@@ -8,12 +8,13 @@
*/
#global {
+ font-size: 1.2em;
border-bottom: 1px solid black;
}
#personal {
border-bottom: 1px solid black;
- text-align: right;
+ text-align: left;
}
#breadcrumbs {
@@ -32,15 +33,26 @@
}
#helpers {
- float: left;
- width: 18%;
+ /*float: left;
+ width: 18%;*/
}
#inspectors {
+ /*float: left;
+ width: 18%;*/
+}
+
+#context_information {
float: left;
width: 18%;
}
+#footer {
+ border-bottom: 1px solid black;
+ float: none;
+ clear: both;
+}
+
div.box {
background: transparent;
border-collapse: collapse;
@@ -99,7 +111,7 @@
color: #578308;
font-weight: normal;
margin-right: 0.5em;
- padding: 0em 2em;
+ padding: 0em 0.5em;
text-transform: lowercase;
}