File:  [Repository] / versionedFile / dtml / fileEdit.dtml
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Mar 22 15:46:07 2004 UTC (20 years, 1 month ago) by dwinter
Branches: dwinter, MAIN
CVS tags: first, HEAD
new

<dtml-var manage_page_header>
<dtml-var manage_tabs>


<p class="form-help">
You can update the data for this file object using the form below. 
Select a data file from your local computer by clicking the <em>browse</em> 
button and click <em>upload</em> to update the contents of the
file. You may also edit the file content directly if the content is a 
text type and small enough to be edited in a text area.
</p>

<form action="<dtml-var URL1>" method="post" enctype="multipart/form-data">
<table cellpadding="2" cellspacing="0" width="100%" border="0">
<tr>
  <td align="left" valign="top">
  <div class="form-optional">
  Title
  </div>
  </td>
  <td align="left" valign="top">
  <input type="text" name="title" size="40" value="<dtml-if 
   title><dtml-var title html_quote></dtml-if>">
  </td>
</tr>

<tr>
  <td align="left" valign="top">
  <div class="form-label">
  Content Type
  </div>
  </td>
  <td align="left" valign="top">
  <input type="text" name="content_type:required" size="40" value="<dtml-if 
   content_type><dtml-var content_type html_quote></dtml-if>">
  </td>
</tr>

<tr>
  <td align="left" valign="top">
  <div class="form-optional">
  Precondition
  </div>
  </td>
  <td align="left" valign="top">
  <input type="text" name="precondition" size="40" value="<dtml-if 
   precondition><dtml-var precondition html_quote></dtml-if>">
  </td>
</tr>

<dtml-if "this().getContentType()[:4] == 'text' and this().get_size() < 65536">
<tr>
  <td align="left" valign="top" colspan="2">
  <div style="width: 100%;">
  <textarea name="filedata:text" wrap="off" style="width: 100%;"<dtml-if 
   dtpref_cols> cols="<dtml-var dtpref_cols html_quote>"<dtml-else
   > cols="50"</dtml-if><dtml-if dtpref_rows> rows="<dtml-var 
   dtpref_rows html_quote>"<dtml-else> rows="20"</dtml-if>><dtml-var 
   __str__ html_quote></textarea>
  </div>
  </td>
</tr>
<dtml-else>
<tr>
  <td align="left" valign="top">
  <div class="form-label">
  Last Modified
  </div>
  </td>
  <td align="left" valign="top">
  <div class="form-text">
  <dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
  </div>
  </td>
</tr>
<tr>
  <td align="left" valign="top">
  <div class="form-label">
  File Size
  </div>
  </td>
  <td align="left" valign="top">
  <div class="form-text">
  <dtml-var size thousands_commas> bytes
  </div>
  </td>
</tr>
</dtml-if>

<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" name="manage_edit:method" 
    value="Save Changes">
  </dtml-if>
  </div>
  </td>
</tr>

<tr>
  <td align="left" valign="top">
  <br />
  <div class="form-label">
  File Data
  </div>
  </td>
  <td align="left" valign="top">
  <br />
  <input type="file" name="file" size="25" />
  </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" name="manage_upload:method" 
    value="Upload">
  </dtml-if>
  </div>
  </td>
</tr>

</table>
</form>

<dtml-var manage_page_footer>


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>