
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1277 fd906abe-77d9-0310-91a1-e0d9ade77398
90 lines
2.6 KiB
XML
90 lines
2.6 KiB
XML
<tal:tag condition="view/update" />
|
|
<html metal:use-macro="context/@@standard_macros/view"
|
|
i18n:domain="zope">
|
|
|
|
<head>
|
|
<metal:js fill-slot="ecmascript_slot">
|
|
<script type="text/javascript"
|
|
src="loops.js"
|
|
tal:attributes="src string:${context/++resource++loops.js}">
|
|
</script>
|
|
<metal:use use-macro="views/ajax.dojo/main"
|
|
tal:condition="nothing" />
|
|
</metal:js>
|
|
</head>
|
|
<body>
|
|
|
|
<div metal:fill-slot="body">
|
|
<div metal:define-macro="body">
|
|
|
|
<form action="." tal:attributes="action request/URL" method="post"
|
|
enctype="multipart/form-data">
|
|
|
|
<input type="hidden" name="form_submitted" value="true" />
|
|
<tal:control condition="request/form_submitted|nothing">
|
|
<script language="JavaScript">
|
|
focusOpener();
|
|
</script>
|
|
</tal:control>
|
|
|
|
<div metal:define-macro="formbody">
|
|
|
|
<h3 tal:condition="view/label"
|
|
metal:define-slot="heading">
|
|
<span tal:content="view/label"
|
|
i18n:translate="">Edit something</span>
|
|
</h3>
|
|
|
|
<p tal:define="status view/update"
|
|
tal:condition="status"
|
|
tal:content="status"
|
|
i18n:translate=""/>
|
|
|
|
<p tal:condition="view/errors" i18n:translate="">
|
|
There are <strong tal:content="python:len(view.errors)"
|
|
i18n:name="num_errors">6</strong> input errors.
|
|
</p>
|
|
|
|
<div metal:define-slot="extra_info" tal:replace="nothing">
|
|
</div>
|
|
|
|
<div class="row"
|
|
metal:define-slot="extra_top" tal:replace="nothing">
|
|
<div class="label">Extra top</div>
|
|
<div class="field"><input type="text" style="width:100%" /></div>
|
|
</div>
|
|
|
|
<div metal:use-macro="context/@@form_macros/widget_rows" />
|
|
|
|
<div class="separator"></div>
|
|
|
|
<div class="row"
|
|
metal:define-slot="extra_bottom" tal:replace="nothing">
|
|
<div class="label">Extra bottom</div>
|
|
<div class="field"><input type="text" style="width:100%" /></div>
|
|
</div>
|
|
<div class="separator"></div>
|
|
</div>
|
|
|
|
<div metal:define-macro="submit_button"
|
|
class="row">
|
|
<div class="controls">
|
|
<input type="submit" name="UPDATE_SUBMIT" value="Change"
|
|
i18n:attributes="value submit-button;" />
|
|
</div>
|
|
</div>
|
|
<div class="row" metal:define-slot="extra_buttons" tal:replace="nothing">
|
|
</div>
|
|
|
|
<div class="separator"></div>
|
|
|
|
</form>
|
|
|
|
<form metal:use-macro="views/resource_macros/delete_object" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|