cybertools/pyscript/edit.pt
helmutm dc7aa556c5 new package pyscript, derived from zope.app.PythonPage
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@1867 fd906abe-77d9-0310-91a1-e0d9ade77398
2007-08-02 20:19:39 +00:00

88 lines
2.7 KiB
XML

<tal:tag condition="view/update"/>
<html metal:use-macro="context/@@standard_macros/view"
i18n:domain="zope">
<body>
<div metal:fill-slot="body">
<div metal:define-macro="body">
<form action="." tal:attributes="action request/URL" method="post"
enctype="multipart/form-data">
<div metal:define-macro="formbody">
<h3 tal:condition="view/label"
tal:content="view/label"
metal:define-slot="heading"
i18n:translate="">Edit something</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 class="message"
tal:condition="view/syntaxError"
tal:define="err view/syntaxError">
<h3 i18n:translate="">Syntax Error:
<span tal:content="err/msg" i18n:name="msg">invalid syntax</span>
</h3>
<div i18n:translate="">
File
"<span tal:replace="err/filename" i18n:name="filename">
filename
</span>",
line <span tal:replace="err/lineno" i18n:name="lineno">10</span>,
offset <span tal:replace="err/offset" i18n:name="offset">1</span>
</div>
<pre tal:content="python:err.text+'\n'+' '*err.offset+'^'">
prin "foo"
^
</pre>
</div>
<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 class="row">
<div class="controls">
<input type="submit" value="Refresh"
i18n:attributes="value refresh-button" />
<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>
</div>
</div>
</body>
</html>