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

<html>
<body>
<div tal:replace="structure here/manage_page_header">Header</div>
<!-- ZOPE management tabs -->
<h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
    tal:replace="structure here/manage_tabs">Tabs</h2>
<!-- end of ZOPE management tabs -->
  <h2> Change metadata</h2>
<form action="manage_changeVersionedFile" method="post"
  tal:define="cob python:here.getContentObject()">
<table>
  <tr>
    <td>ID:</td>
    <td><span tal:replace="here/getId" /></td>
  </tr>

  <tr>
    <td>title:</td>
    <td><input name="title" tal:attributes="value here/title" size="50"/></td>
  </tr>
  <tr>
    <td>author:</td>
    <td><input name="author" tal:attributes="value cob/author" size="50"/></td>
  </tr>
  <tr tal:condition="cob">
    <td>comment1:</td>
    <td><input name="comment" tal:attributes="value python:getattr(cob,'versionComment','')" size="50"/>
    (versionComment of latest version)</td>
  </tr>
  <tr tal:condition="cob">
    <td>comment2:</td>
    <td><input name="vC" tal:attributes="value python:getattr(cob,'vComment','')" size="50"/>
    (vComment of latest version)</td>
  </tr>
  <tr>
    <td>default action:</td>
    <td><input name="defaultAction" tal:attributes="value python:getattr(here, 'defaultAction', 'history')" size="50"/>
    ('history', 'download' or 'view')</td>
  </tr>
</table>
<input type="submit" value="submit"></form>
</body>
</html>


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