Annotation of versionedFile/dtml/fileEdit.dtml, revision 1.1

1.1     ! dwinter     1: <dtml-var manage_page_header>
        !             2: <dtml-var manage_tabs>
        !             3: 
        !             4: 
        !             5: <p class="form-help">
        !             6: You can update the data for this file object using the form below. 
        !             7: Select a data file from your local computer by clicking the <em>browse</em> 
        !             8: button and click <em>upload</em> to update the contents of the
        !             9: file. You may also edit the file content directly if the content is a 
        !            10: text type and small enough to be edited in a text area.
        !            11: </p>
        !            12: 
        !            13: <form action="<dtml-var URL1>" method="post" enctype="multipart/form-data">
        !            14: <table cellpadding="2" cellspacing="0" width="100%" border="0">
        !            15: <tr>
        !            16:   <td align="left" valign="top">
        !            17:   <div class="form-optional">
        !            18:   Title
        !            19:   </div>
        !            20:   </td>
        !            21:   <td align="left" valign="top">
        !            22:   <input type="text" name="title" size="40" value="<dtml-if 
        !            23:    title><dtml-var title html_quote></dtml-if>">
        !            24:   </td>
        !            25: </tr>
        !            26: 
        !            27: <tr>
        !            28:   <td align="left" valign="top">
        !            29:   <div class="form-label">
        !            30:   Content Type
        !            31:   </div>
        !            32:   </td>
        !            33:   <td align="left" valign="top">
        !            34:   <input type="text" name="content_type:required" size="40" value="<dtml-if 
        !            35:    content_type><dtml-var content_type html_quote></dtml-if>">
        !            36:   </td>
        !            37: </tr>
        !            38: 
        !            39: <tr>
        !            40:   <td align="left" valign="top">
        !            41:   <div class="form-optional">
        !            42:   Precondition
        !            43:   </div>
        !            44:   </td>
        !            45:   <td align="left" valign="top">
        !            46:   <input type="text" name="precondition" size="40" value="<dtml-if 
        !            47:    precondition><dtml-var precondition html_quote></dtml-if>">
        !            48:   </td>
        !            49: </tr>
        !            50: 
        !            51: <dtml-if "this().getContentType()[:4] == 'text' and this().get_size() < 65536">
        !            52: <tr>
        !            53:   <td align="left" valign="top" colspan="2">
        !            54:   <div style="width: 100%;">
        !            55:   <textarea name="filedata:text" wrap="off" style="width: 100%;"<dtml-if 
        !            56:    dtpref_cols> cols="<dtml-var dtpref_cols html_quote>"<dtml-else
        !            57:    > cols="50"</dtml-if><dtml-if dtpref_rows> rows="<dtml-var 
        !            58:    dtpref_rows html_quote>"<dtml-else> rows="20"</dtml-if>><dtml-var 
        !            59:    __str__ html_quote></textarea>
        !            60:   </div>
        !            61:   </td>
        !            62: </tr>
        !            63: <dtml-else>
        !            64: <tr>
        !            65:   <td align="left" valign="top">
        !            66:   <div class="form-label">
        !            67:   Last Modified
        !            68:   </div>
        !            69:   </td>
        !            70:   <td align="left" valign="top">
        !            71:   <div class="form-text">
        !            72:   <dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
        !            73:   </div>
        !            74:   </td>
        !            75: </tr>
        !            76: <tr>
        !            77:   <td align="left" valign="top">
        !            78:   <div class="form-label">
        !            79:   File Size
        !            80:   </div>
        !            81:   </td>
        !            82:   <td align="left" valign="top">
        !            83:   <div class="form-text">
        !            84:   <dtml-var size thousands_commas> bytes
        !            85:   </div>
        !            86:   </td>
        !            87: </tr>
        !            88: </dtml-if>
        !            89: 
        !            90: <tr>
        !            91:   <td></td>
        !            92:   <td align="left" valign="top">
        !            93:   <div class="form-element">
        !            94:   <dtml-if wl_isLocked>
        !            95:    <em>Locked by WebDAV</em>
        !            96:   <dtml-else>
        !            97:    <input class="form-element" type="submit" name="manage_edit:method" 
        !            98:     value="Save Changes">
        !            99:   </dtml-if>
        !           100:   </div>
        !           101:   </td>
        !           102: </tr>
        !           103: 
        !           104: <tr>
        !           105:   <td align="left" valign="top">
        !           106:   <br />
        !           107:   <div class="form-label">
        !           108:   File Data
        !           109:   </div>
        !           110:   </td>
        !           111:   <td align="left" valign="top">
        !           112:   <br />
        !           113:   <input type="file" name="file" size="25" />
        !           114:   </td>
        !           115: </tr>
        !           116: 
        !           117: <tr>
        !           118:   <td></td>
        !           119:   <td align="left" valign="top">
        !           120:   <div class="form-element">
        !           121:   <dtml-if wl_isLocked>
        !           122:    <em>Locked by WebDAV</em>
        !           123:   <dtml-else>
        !           124:    <input class="form-element" type="submit" name="manage_upload:method" 
        !           125:     value="Upload">
        !           126:   </dtml-if>
        !           127:   </div>
        !           128:   </td>
        !           129: </tr>
        !           130: 
        !           131: </table>
        !           132: </form>
        !           133: 
        !           134: <dtml-var manage_page_footer>
        !           135: 

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