
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1817 fd906abe-77d9-0310-91a1-e0d9ade77398
169 lines
5.1 KiB
XML
169 lines
5.1 KiB
XML
<html metal:extend-macro="context/@@standard_macros/view"
|
|
metal:define-macro="main">
|
|
<head></head>
|
|
<body>
|
|
|
|
|
|
<metal:settings fill-slot="settings"
|
|
tal:define="dummy python:
|
|
controller.macros.register('css', resourceName='loops.css', media='all');" />
|
|
|
|
|
|
<div class="box" metal:fill-slot="navigators">
|
|
<h4>Navigation</h4>
|
|
<tal:menu define="item view/menu;
|
|
level level|python: 1"
|
|
condition="item">
|
|
<div class="body">
|
|
<metal:menu use-macro="views/node_macros/menu" />
|
|
</div>
|
|
</tal:menu>
|
|
</div>
|
|
|
|
|
|
<div metal:fill-slot="body">
|
|
|
|
<div metal:define-macro="content">
|
|
|
|
<form action="." metal:define-macro="master"
|
|
tal:attributes="action request/URL" method="post"
|
|
class="edit-form" enctype="multipart/form-data"
|
|
id="zc.page.browser_form">
|
|
|
|
<script type="text/javascript"><!--
|
|
|
|
function toggleFormFieldHelp(ob,state) {
|
|
// ob is the label element
|
|
var field = ob.form[ob.htmlFor];
|
|
if (field) {
|
|
var viz = state && 'hidden' || 'visible';
|
|
if (field.length == null) {
|
|
field.style.visibility = viz;
|
|
}
|
|
else {
|
|
for (var i = 0; i < field.length; ++i) {
|
|
var e = field.item(i);
|
|
e.style.visibility = viz;
|
|
}
|
|
}
|
|
var help = document.getElementById("field-help-for-" + field.name);
|
|
if (help) {
|
|
help.style.visibility = state && 'visible' || 'hidden';
|
|
}
|
|
}
|
|
}
|
|
|
|
//-->
|
|
</script>
|
|
|
|
<div id="viewspace" metal:define-slot="viewspace">
|
|
|
|
<h1 i18n:translate="" tal:content="view/label">Edit ...</h1>
|
|
|
|
<metal:block define-macro="header">
|
|
|
|
<div class="form-status"
|
|
tal:define="status view/status"
|
|
tal:condition="status">
|
|
|
|
<div class="summary"
|
|
i18n:translate=""
|
|
tal:content="view/status">
|
|
Form status summary
|
|
</div>
|
|
|
|
<ul class="errors" tal:condition="view/errors">
|
|
<li tal:repeat="error view/error_views">
|
|
<span tal:replace="structure error">Error Type</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<br />
|
|
</metal:block>
|
|
|
|
<div metal:define-slot="extra_info" tal:replace="nothing">
|
|
</div>
|
|
|
|
<table class="form-fields">
|
|
<tr class="row" metal:define-slot="extra_top" tal:replace="nothing">
|
|
<td class="label">Extra top</td>
|
|
<td class="label"><input type="text" /></td>
|
|
</tr>
|
|
<tbody metal:define-slot="formbody" tal:omit-tag="">
|
|
<tr tal:repeat="widget view/widgets">
|
|
<td class="label" tal:define="hint widget/hint"
|
|
metal:define-macro="labelcell">
|
|
<label tal:condition="python:hint"
|
|
tal:attributes="for widget/name"
|
|
onmousedown="toggleFormFieldHelp(this,1)"
|
|
onmouseup="toggleFormFieldHelp(this,0)"
|
|
onmouseout="toggleFormFieldHelp(this,0)"
|
|
style="cursor: help">
|
|
<span class="required" tal:condition="widget/required"
|
|
>*</span><span i18n:translate=""
|
|
tal:content="widget/label">label</span>
|
|
</label>
|
|
<label tal:condition="python:not hint"
|
|
tal:attributes="for widget/name">
|
|
<span class="required" tal:condition="widget/required"
|
|
>*</span><span i18n:translate=""
|
|
tal:content="widget/label">label</span>
|
|
</label>
|
|
</td>
|
|
<td class="field" tal:define="hint widget/hint"
|
|
metal:define-macro="widgetcell">
|
|
<div class="form-fields-help"
|
|
i18n:translate=""
|
|
tal:content="hint"
|
|
tal:condition="hint"
|
|
tal:attributes="id string:field-help-for-${widget/name}"
|
|
onclick="this.style.visibility='hidden';"
|
|
style="visibility: hidden; position: absolute;"
|
|
>Title of this content object.</div>
|
|
<div class="widget" tal:content="structure widget">
|
|
<input type="text" /></div>
|
|
<div class="error"
|
|
tal:condition="widget/error"
|
|
>
|
|
<!-- TODO Put this back, the Zope3 way.
|
|
<img src="alert.gif" alt="Error"
|
|
tal:replace="structure context/alert.gif" />
|
|
-->
|
|
<span tal:replace="structure widget/error">error</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
<tr class="row" metal:define-slot="extra_bottom" tal:replace="nothing">
|
|
<td class="label">Extra bottom</td>
|
|
<td class="label"><input type="text" /></td>
|
|
</tr>
|
|
</table>
|
|
<metal:block define-slot="above_buttons" />
|
|
</div>
|
|
<div id="actionsView">
|
|
<br />
|
|
<span class="actionButtons"
|
|
tal:condition="view/availableActions"
|
|
metal:define-slot="bottom_buttons">
|
|
<input tal:repeat="action view/actions"
|
|
tal:replace="structure action/render"
|
|
/>
|
|
</span>
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<form metal:use-macro="views/resource_macros/delete_object" />
|
|
|
|
<script type="text/javascript" metal:define-slot="trackChanges">
|
|
//zc_trackChanges(document.getElementById('zc.page.browser_form'));
|
|
</script>
|
|
|
|
<script type="text/javascript"
|
|
tal:define="extra_script view/extra_script | nothing"
|
|
tal:condition="extra_script"
|
|
tal:content="structure extra_script" />
|
|
|
|
</div></div></body></html>
|