added elements for popup forms
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2268 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
d43fc04d36
commit
3f704eb6f9
5 changed files with 53 additions and 2 deletions
|
@ -39,6 +39,8 @@
|
|||
layer="cybertools.browser.liquid.Liquid" />
|
||||
<resource name="base.css" file="base.css"
|
||||
layer="cybertools.browser.liquid.Liquid" />
|
||||
<resource name="popup.css" file="popup.css"
|
||||
layer="cybertools.browser.liquid.Liquid" />
|
||||
<resource name="print.css" file="print.css"
|
||||
layer="cybertools.browser.liquid.Liquid" />
|
||||
<resource name="custom.css" file="custom.css"
|
||||
|
|
15
browser/liquid/popup.css
Normal file
15
browser/liquid/popup.css
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
$Id$
|
||||
|
||||
*/
|
||||
|
||||
body {
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
#content {
|
||||
width: 550px;
|
||||
}
|
||||
|
||||
#menu {width: 50px}
|
||||
#sub-section {width: 50px}
|
33
browser/liquid/popup.pt
Normal file
33
browser/liquid/popup.pt
Normal file
|
@ -0,0 +1,33 @@
|
|||
<tal:block i18n:domain="loops">
|
||||
<div class="body"
|
||||
metal:define-macro="body"
|
||||
tal:define="controller nocall:view/controller;
|
||||
resourceBase controller/resourceBase;">
|
||||
|
||||
<div id="global"> </div>
|
||||
<div id="menu"> </div>
|
||||
|
||||
<div id="content" metal:define-macro="content">
|
||||
<metal:content define-slot="content">
|
||||
<tal:content define="item nocall:view/item;
|
||||
level level|python: 1;
|
||||
macro item/macro;"
|
||||
condition="macro">
|
||||
<metal:block use-macro="macro" />
|
||||
</tal:content>
|
||||
</metal:content>
|
||||
</div>
|
||||
|
||||
<div id="sub-section"> </div>
|
||||
|
||||
<div id="footer" class="footer" define-macro="footer">
|
||||
<metal:footer define-slot="footer">
|
||||
Powered by <b><a href="http://www.python.org">Python</a></b> ·
|
||||
<b><a href="http://wiki.zope.org/zope3">Zope 3</a></b> ·
|
||||
<b><a href="http://loops.cy55.de">
|
||||
loops</a></b>.
|
||||
</metal:footer>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</tal:block>
|
|
@ -30,6 +30,7 @@ from zope.app.pagetemplate import ViewPageTemplateFile
|
|||
|
||||
|
||||
mainTemplate = ViewPageTemplateFile('main.pt')
|
||||
popupTemplate = ViewPageTemplateFile('liquid/popup.pt')
|
||||
|
||||
|
||||
class UnboundTemplateFile(ViewPageTemplateFile):
|
||||
|
|
|
@ -55,8 +55,8 @@
|
|||
<tal:field>
|
||||
<td style="padding: 4px; border-top: none"
|
||||
tal:attributes="title field/description">
|
||||
<b tal:content="field/title">...</b>
|
||||
<span tal:condition="field/required">*</span>
|
||||
<b tal:content="field/title">...</b><span
|
||||
tal:condition="field/required"> *</span>
|
||||
</td>
|
||||
<td class="field" style="border-top: none">
|
||||
<metal:input use-macro="python:
|
||||
|
|
Loading…
Add table
Reference in a new issue