73 lines
2.2 KiB
XML
73 lines
2.2 KiB
XML
<html metal:use-macro="context/@@standard_macros/page"
|
|
i18n:domain="zope">
|
|
<body>
|
|
<div metal:fill-slot="body">
|
|
|
|
<div metal:define-macro="addform">
|
|
|
|
<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 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="label"><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>
|
|
<br/><br/>
|
|
<div class="row">
|
|
<div class="controls"><hr />
|
|
<span tal:condition="context/nameAllowed|nothing" tal:omit-tag="">
|
|
<b i18n:translate="">Object Name</b>
|
|
<input type='text' name='add_input_name'
|
|
tal:attributes="value context/contentName" />
|
|
</span>
|
|
<input type='submit' value='Add' name='UPDATE_SUBMIT'
|
|
i18n:attributes='value add-button' />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row" metal:define-slot="extra_buttons" tal:replace="nothing">
|
|
</div>
|
|
|
|
<div class="separator"></div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|