Annotation of cdli/dtml/fileAdd.dtml, revision 1.2

1.2     ! dwinter     1: <dtml-var dtml_header>
1.1       dwinter     2: 
                      3: <dtml-var "manage_form_title(this(), _,
1.2     ! dwinter     4:            form_title='',
1.1       dwinter     5:            help_product='OFSP',
                      6:            help_topic='File_Add.stx'
                      7:       )">
                      8: 
                      9: <p class="form-help">
                     10: Select a file to upload from your local computer by clicking the
                     11: <em>Browse</em> button.
                     12: </p>
                     13:   <p style="color:red">Please, do not upload files larger than 10 MB to avoid long download time!</p>
                     14:  
                     15: <p>Add Version: <dtml-var version></p>
                     16: 
                     17: <form action="manage_add<dtml-var Kind>" method="post"
                     18:       enctype="multipart/form-data">
1.2     ! dwinter    19:       <input type="hidden" name="come_from" value="<dtml-var "REQUEST.get('come_from','')">">
        !            20: <input type="hidden" name="id" size="40" value="<dtml-var version>">
1.1       dwinter    21: 
                     22: <table cellspacing="0" cellpadding="2" border="0">
                     23: <tr>
                     24:    <td align="left" valign="top">
                     25:    Version Comment (required)
                     26:    </td>
                     27:    <td>
                     28:    <textarea type="text" cols=80 rows=20 name="vC"></textarea>
                     29:    </td> 
                     30:  </tr>
                     31: <tr>
                     32:    <td align="left" valign="top" class="form-optional">
                     33:    Author
                     34:    </td>
                     35:    <td>
                     36:    <textarea name="author" type="text" cols="30"><dtml-var AUTHENTICATED_USER></textarea>
                     37:    </td> 
                     38:  </tr>
                     39:  <tr>
                     40:   <td colspan="2"> <span style="color:red">There should be no special character in the path where the file is stored!</span></td>
                     41:  </tr>
                     42:   <tr>
                     43:     <td align="left" valign="top">
                     44:     <div class="form-optional">
                     45:     File
                     46:     </div>
                     47:     </td>
                     48:     <td align="left" valign="top">
                     49:     <input type="file" name="file" size="25" value="" />
                     50:     </td>
                     51:   </tr>
                     52:  <tr>
                     53:     <td align="left" valign="top">
                     54:     <div class="form-optional">
                     55:       Name of the versioned file:
                     56:     </div>
                     57:     <td>
1.2     ! dwinter    58:      <input type="text" size="50" checked  name="newName" value="<dtml-var title>">
1.1       dwinter    59:     </td>
                     60: <!-- from <dtml-var title> to the name of the upload file.<br>
                     61:      <input type="radio" checked  name="changeName" value="no">No 
                     62:      <input type="radio"  name="changeName" value="yes">Yes-->
                     63:   </tr>
                     64:     <tr>
                     65:     <td align="left" valign="top">
                     66:     </td>
                     67:     <td align="left" valign="top">
                     68:     <div class="form-element">
                     69:     <input class="form-element" type="submit" name="submit" 
                     70:      value=" Add " /> 
                     71:     </div>
                     72:     </td>
                     73:   </tr>
                     74: </table>
                     75: </form>
                     76: 
1.2     ! dwinter    77: <dtml-var dtml_footer>
1.1       dwinter    78: 

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