File:  [Repository] / versionedFile / dtml / fileAdd.dtml
Revision 1.8: download - view: text, annotated - select for diffs - revision graph
Thu Feb 24 18:07:41 2005 UTC (19 years, 2 months ago) by dwinter
Branches: MAIN
CVS tags: HEAD
new handling of empty files

<dtml-var manage_page_header>

<dtml-var "manage_form_title(this(), _,
           form_title='Add %s' % Kind,
           help_product='OFSP',
           help_topic='File_Add.stx'
	   )">

<p class="form-help">
Select a file to upload from your local computer by clicking the
<em>Browse</em> button.
</p>
  <p style="color:red">Please, do not upload files larger than 10 MB to avoid long download time!</p>
 
<p>Add Version: <dtml-var version></p>

<form action="manage_add<dtml-var Kind>" method="post"
      enctype="multipart/form-data">
<input type="hidden" name="id" size="40" value="<dtml-var version>"/

<table cellspacing="0" cellpadding="2" border="0">
<tr>
   <td align="left" valign="top">
   Version Comment (required)
   </td>
   <td>
   <textarea type="text" cols=80 rows=20 name="vC"></textarea>
   </td> 
 </tr>
<tr>
   <td align="left" valign="top" class="form-optional">
   Author
   </td>
   <td>
   <textarea name="author" type="text" cols="30"><dtml-var AUTHENTICATED_USER></textarea>
   </td> 
 </tr>
 <tr>
  <td colspan="2"> <span style="color:red">There should be no special character in the path where the file is stored!</span></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">
    <div class="form-optional">
      Name of the versioned file:
    </div>
    <td>
	  <input type="text" size="50" checked  name="newName" value="<dtml-var title>"
    </td>
<!-- from <dtml-var title> to the name of the upload file.<br>
	  <input type="radio" checked  name="changeName" value="no">No 
	  <input type="radio"  name="changeName" value="yes">Yes-->
  </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>


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