File:  [Repository] / versionedFile / zpt / changeVersionedFile.zpt
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Mar 31 17:07:43 2010 UTC (14 years, 3 months ago) by casties
Branches: MAIN
CVS tags: HEAD
added default action for extVersionedFile
works without extVersionedFile when no ExtFile

    1: <html>
    2: <body>
    3: <div tal:replace="structure here/manage_page_header">Header</div>
    4: <!-- ZOPE management tabs -->
    5: <h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
    6:     tal:replace="structure here/manage_tabs">Tabs</h2>
    7: <!-- end of ZOPE management tabs -->
    8:   <h2> Change metadata</h2>
    9: <form action="manage_changeVersionedFile" method="post"
   10:   tal:define="cob python:here.getContentObject()">
   11: <table>
   12:   <tr>
   13:     <td>ID:</td>
   14:     <td><span tal:replace="here/getId" /></td>
   15:   </tr>
   16: 
   17:   <tr>
   18:     <td>title:</td>
   19:     <td><input name="title" tal:attributes="value here/title" size="50"/></td>
   20:   </tr>
   21:   <tr>
   22:     <td>author:</td>
   23:     <td><input name="author" tal:attributes="value cob/author" size="50"/></td>
   24:   </tr>
   25:   <tr tal:condition="cob">
   26:     <td>comment1:</td>
   27:     <td><input name="comment" tal:attributes="value python:getattr(cob,'versionComment','')" size="50"/>
   28:     (versionComment of latest version)</td>
   29:   </tr>
   30:   <tr tal:condition="cob">
   31:     <td>comment2:</td>
   32:     <td><input name="vC" tal:attributes="value python:getattr(cob,'vComment','')" size="50"/>
   33:     (vComment of latest version)</td>
   34:   </tr>
   35:   <tr>
   36:     <td>default action:</td>
   37:     <td><input name="defaultAction" tal:attributes="value python:getattr(here, 'defaultAction', 'history')" size="50"/>
   38:     ('history', 'download' or 'view')</td>
   39:   </tr>
   40: </table>
   41: <input type="submit" value="submit"></form>
   42: </body>
   43: </html>
   44: 

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