[Checkins] SVN: plone.z3cform/trunk/plone/z3cform/ Replace the
plone layout and replace it with a very simple one.
Daniel Nouri
daniel.nouri at gmail.com
Tue Jul 22 15:07:53 EDT 2008
Log message for revision 88727:
Replace the plone layout and replace it with a very simple one.
Changed:
U plone.z3cform/trunk/plone/z3cform/base.py
A plone.z3cform/trunk/plone/z3cform/layout.pt
D plone.z3cform/trunk/plone/z3cform/plone_skeleton.pt
-=-
Modified: plone.z3cform/trunk/plone/z3cform/base.py
===================================================================
--- plone.z3cform/trunk/plone/z3cform/base.py 2008-07-22 19:02:19 UTC (rev 88726)
+++ plone.z3cform/trunk/plone/z3cform/base.py 2008-07-22 19:07:53 UTC (rev 88727)
@@ -7,10 +7,14 @@
class FormWrapper(BrowserView):
"""Use this as a base class for your Five view and override the
'form' attribute with your z3c.form form class. Your form will
- then be rendered in the contents area of a Plone main template.
+ then be rendered in the contents area of a layout template, the
+ 'index' attribute.
+
+ Use the 'wrap' function in this module if you don't like defining
+ classes.
"""
- index = ViewPageTemplateFile('plone_skeleton.pt')
- form = None # override this
+ index = ViewPageTemplateFile('layout.pt')
+ form = None # override this with a form class.
request_layer = z3c.form.interfaces.IFormLayer
def __call__(self):
Added: plone.z3cform/trunk/plone/z3cform/layout.pt
===================================================================
--- plone.z3cform/trunk/plone/z3cform/layout.pt (rev 0)
+++ plone.z3cform/trunk/plone/z3cform/layout.pt 2008-07-22 19:07:53 UTC (rev 88727)
@@ -0,0 +1,21 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:tal="http://xml.zope.org/namespaces/tal"
+ xmlns:metal="http://xml.zope.org/namespaces/metal"
+ xmlns:i18n="http://xml.zope.org/namespaces/i18n"
+ lang="en"
+ i18n:domain="plone.z3cform">
+
+ <head>
+ <title tal:content="view/label">Title</title>
+ </head>
+
+ <body>
+ <h1 tal:content="view/label">Title</h1>
+
+ <div id="contents">
+ <span tal:replace="structure view/contents" />
+ </div>
+ </body>
+
+</html>
+
Property changes on: plone.z3cform/trunk/plone/z3cform/layout.pt
___________________________________________________________________
Name: svn:eol-style
+ native
Deleted: plone.z3cform/trunk/plone/z3cform/plone_skeleton.pt
===================================================================
--- plone.z3cform/trunk/plone/z3cform/plone_skeleton.pt 2008-07-22 19:02:19 UTC (rev 88726)
+++ plone.z3cform/trunk/plone/z3cform/plone_skeleton.pt 2008-07-22 19:07:53 UTC (rev 88727)
@@ -1,24 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
- xmlns:tal="http://xml.zope.org/namespaces/tal"
- xmlns:metal="http://xml.zope.org/namespaces/metal"
- xmlns:i18n="http://xml.zope.org/namespaces/i18n"
- lang="en"
- metal:use-macro="here/main_template/macros/master"
- i18n:domain="plone.z3cform">
-<body>
-
- <metal:main fill-slot="main">
- <tal:main-macro metal:define-macro="main">
-
- <h1 class="documentFirstHeading" tal:content="view/label">Title</h1>
-
- <div id="skel-contents">
- <span tal:replace="structure view/contents" />
- </div>
-
- </tal:main-macro>
-</metal:main>
-
-</body>
-</html>
-
More information about the Checkins
mailing list