Revisions for editform2
added:
<form method="post" action="page_url" enctype="multipart/form-data" tal:attributes="action here/page_url">
<input name=timeStamp type=hidden value="editTimestamp" tal:attributes="value here/editTimestamp" />
<input name=page type=hidden value="id" tal:attributes="value id" />
<table width="100%" border="0" cellspacing="0" cellpadding="10" align="center">
<!-- heading -->
<tr>
<td class="editHead">
<h1 tal:content="string:${actioning} ${id}">Creating/Editing Pagename</h1>
</td>
</tr>
<!-- page type -->
<tr>
<td class="editMenu">
<span tal:condition="python:user.has_permission(
'Zwiki: Change page types',here)">
<select name="type" tabindex="5" title="Select the formatting and rendering style for this page">
<option value="type"
tal:repeat="type page_types"
tal:attributes="
value python:type[0]; selected python:type[0]==here.page_type;"
tal:content="python:type[1]"
>type
</option>
</select>
</span>
<a href="#" tal:attributes="href string:${wiki_url}/HelpPage" target="_blank">Help Page</a> |
<a href="#" tal:attributes="href string:${wiki_url}/TextFormattingRules" target="_blank">Text Formatting Rules</a> |
<a href="#" tal:attributes="href string:${wiki_url}/HTMLBasics" target="_blank">HTML Basics</a>
</td>
</tr>
<!-- text area -->
<tr>
<td class="editText">
<textarea wrap="virtual" name="text" rows="30" cols="60" style="width:100%" tabindex="1"
tal:attributes="rows rows; cols cols"
tal:content="text">Text...
</textarea>
</td>
</tr>
<!-- file upload -->
<tr>
<td class="editMenu">
Optional note: <input name="log" size="25" maxlength="100" value="" tabindex="2" title="A note makes RecentChanges more useful">
<span tal:condition="python:user.has_permission(
'Add Documents, Images, and Files',uploaddir)">
Attach File/Image: <input type="file" name="file" size="25" value="" tabindex="4" title="upload a file and link it on this page?" />
</span>
</td>
</tr>
<!-- note and save -->
<tr>
<td class="editMenu">
Note that ANY activities are logged by full ip and domain information. Do not abuse this service.<br>
<br />
<input type="submit" name="edit:method"
value="Save Changes" title="Save your changes"
tabindex="3" accesskey="s"
tal:attributes="
value python:creating and 'Create' or default;
title python:creating and 'Create this wiki page' or default;" />
<input type="submit" name=""
value="Cancel" title="Cancel" />
</td>
</tr>
</table>
</form>