[Zope-Checkins] CVS: Zope/lib/python/Products/ZReST/dtml - manage_addZReSTForm.dtml:1.2 manage_editForm.dtml:1.2
Andreas Jung
andreas@andreas-jung.com
Sat, 1 Feb 2003 04:28:35 -0500
Update of /cvs-repository/Zope/lib/python/Products/ZReST/dtml
In directory cvs.zope.org:/tmp/cvs-serv20197/ZReST/dtml
Added Files:
manage_addZReSTForm.dtml manage_editForm.dtml
Log Message:
merge from ajung-restructuredtext-integration-branch
=== Zope/lib/python/Products/ZReST/dtml/manage_addZReSTForm.dtml 1.1 => 1.2 ===
--- /dev/null Sat Feb 1 04:28:34 2003
+++ Zope/lib/python/Products/ZReST/dtml/manage_addZReSTForm.dtml Sat Feb 1 04:28:32 2003
@@ -0,0 +1,45 @@
+<dtml-var manage_page_header>
+
+<dtml-var "manage_form_title(this(), _, form_title='Add ReStructureText Document')">
+
+<p class="form-help">
+You may optionally select a file to upload from your local computer by
+clicking the <em>Browse</em> button.
+</p>
+
+<form action="manage_addZReST" method="post" enctype="multipart/form-data">
+<table cellspacing="0" cellpadding="2" border="0">
+ <tr>
+ <td align="left" valign="top">
+ <div class="form-label">
+ Id
+ </div>
+ </td>
+ <td align="left" valign="top">
+ <input type="text" name="id" size="40" />
+ </td>
+ </tr>
+ <tr>
+ <td align="left" valign="top">
+ <div class="form-optional">
+ File
+ </div>
+ </td>
+ <td align="left" valign="top">
+ <input type="file" name="file" size="25" value="" />
+ </td>
+ </tr>
+ <tr>
+ <td align="left" valign="top">
+ </td>
+ <td align="left" valign="top">
+ <div class="form-element">
+ <input class="form-element" type="submit" name="submit"
+ value=" Add " />
+ </div>
+ </td>
+ </tr>
+</table>
+</form>
+
+<dtml-var manage_page_footer>
=== Zope/lib/python/Products/ZReST/dtml/manage_editForm.dtml 1.1 => 1.2 ===
--- /dev/null Sat Feb 1 04:28:34 2003
+++ Zope/lib/python/Products/ZReST/dtml/manage_editForm.dtml Sat Feb 1 04:28:32 2003
@@ -0,0 +1,88 @@
+<dtml-var manage_page_header>
+<dtml-var manage_tabs>
+
+<p class="form-help">
+You may edit the source for this document using the form below. You
+may also upload the source for this document from a local file. Click
+the <em>browse</em> button to select a local file to upload.
+</p>
+
+<dtml-if warnings>
+<pre class="system-msg">
+&dtml-warnings;
+</pre>
+</dtml-if>
+
+<p class="form-help"><strong>Help:</strong> ReStructuredText
+ <a href="http://docutils.sourceforge.net/docs/rst/quickstart.html">primer</a>
+ for beginners,
+ <a href="http://docutils.sourceforge.net/docs/rst/quickref.html">quick
+ reference</a> for the more advanced and
+ <a href="http://docutils.sourceforge.net/rst.html">home page</a> for all
+ the details.
+</p>
+
+<form action="manage_edit" method="post">
+<table cellpadding="2" cellspacing="0" width="100%" border="0">
+
+<dtml-with keyword_args mapping>
+<tr>
+ <td align="left" valign="top" colspan="2">
+ <div style="width: 100%;">
+ <textarea name="data:text" wrap="off" style="width: 100%;"<dtml-if
+ dtpref_cols> cols="<dtml-var dtpref_cols>"<dtml-else
+ > cols="50"</dtml-if><dtml-if dtpref_rows> rows="<dtml-var
+ dtpref_rows>"<dtml-else> rows="20"</dtml-if>><dtml-var
+ __str__></textarea>
+ </div>
+ </td>
+</tr>
+</dtml-with>
+
+<tr>
+ <td align="left" valign="top" colspan="2">
+ <div class="form-element">
+ <dtml-if wl_isLocked>
+ <em>Locked by WebDAV</em>
+ <dtml-else>
+ <input class="form-element" type="submit" name="SUBMIT" value="Save Changes">
+ </dtml-if>
+
+ <input class="form-element" type="submit" name="SUBMIT" value="Taller">
+ <input class="form-element" type="submit" name="SUBMIT" value="Shorter">
+ <input class="form-element" type="submit" name="SUBMIT" value="Wider">
+ <input class="form-element" type="submit" name="SUBMIT" value="Narrower">
+ </div>
+ </td>
+</tr>
+</table>
+</form>
+
+<form action="manage_upload" method="post" enctype="multipart/form-data">
+<table cellpadding="2" cellspacing="0" border="0">
+<tr>
+ <td align="left" valign="top">
+ <div class="form-label">
+ File
+ </div>
+ </td>
+ <td align="left" valign="top">
+ <input type="file" name="file" size="25" value="">
+ </td>
+</tr>
+<tr>
+ <td></td>
+ <td align="left" valign="top">
+ <div class="form-element">
+ <dtml-if wl_isLocked>
+ <em>Locked by WebDAV</em>
+ <dtml-else>
+ <input class="form-element" type="submit" value="Upload File">
+ </dtml-if>
+ </div>
+ </td>
+</tr>
+</table>
+</form>
+
+<dtml-var manage_page_footer>