cybertools/browser/liquid/view_macros.pt
helmutm 10c6434de9 View controller now basically functional, with macro registries for CSS and JS resources
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1146 fd906abe-77d9-0310-91a1-e0d9ade77398
2006-03-26 16:43:43 +00:00

90 lines
3.1 KiB
XML

<metal:block define-macro="page"><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"
i18n:domain="zope"
tal:define="controller nocall:view/@@controller;
resourceBase controller/resourceBase">
<metal:block metal:define-slot="settings" />
<head metal:define-macro="head">
<title metal:define-slot="title"
tal:content="options/title|view/title|context/title|default">
Powered by Zope 3
</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<tal:css repeat="macro controller/macros/css">
<metal:css use-macro="macro" />
</tal:css>
<metal:block define-slot="ecmascript_slot" />
<metal:block metal:define-slot="headers">
<tal:js repeat="macro controller/macros/js">
<metal:css use-macro="macro" />
</tal:js>
<span metal:use-macro="context/@@standard_macros/navigation_tree_js" />
</metal:block>
<metal:block define-slot="ecmascript_slot" />
<link rel="icon" type="image/png"
tal:attributes="href string:${resourceBase}favicon.png" />
</head>
<body tal:attributes="onload body_onload | nothing">
<div id="global">
<div class="top" metal:define-slot="top">
<a href="#" name="top" metal:define-slot="logo"
tal:attributes="href string:${request/URL/1}"><img
src="logo.gif" border="0"
alt="Home"
tal:attributes="src string:${resourceBase}logo.gif" /></a>
</div>
</div>
<div id="menu">
<metal:menu define-slot="navigators">
<span metal:use-macro="context/@@standard_macros/navigation_tree_box" />
<div class="box" id="commonTasks"
tal:define="view context/@@commonTasks|nothing"
tal:condition="view/strip|nothing">
<h4 i18n:translate="">Add</h4>
<div class="body">
<span tal:replace="structure view" />
</div>
</div>
</metal:menu>
</div>
<div id="content">
<div class="itemViews" metal:define-slot="actions">
<tal:block repeat="view context/@@view_get_menu/zmi_views">
<a href=""
tal:attributes="href view/action;
class view/selected;"
tal:content="view/title" i18n:translate="">
label
</a>
</tal:block>
</div>
<!--<h2 tal:content="controller/macros/css" />-->
<metal:content define-slot="body">Here comes the body</metal:content>
</div>
<div id="sub-section">
<metal:sub define-slot="context_information"></metal:sub>
</div>
<div id="footer" class="footer">
<metal:footer define-slot="footer">
Powered by <b><a href="http://www.python.org">Python</a></b> &middot;
<b><a href="http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage">Zope 3</a></b>
</metal:footer><br />&nbsp;
</div>
</body>
</html>
</metal:block>