<html>
<body>
<tal:block tal:repeat="foundMD python:here.ZSQLInlineSearch(_table=here.imageCollectionConfig.getTable(),filename=here.getId().split('.')[0],_op_filename='ct')">
<h1> Update an Image at the Collection Folder</h1>
<p tal:content="here/getId"/>
<p>Old:
<span tal:replace="structure python:here.thumb()"/></p>
<form action="updateImage" method="post" enctype="multipart/form-data">
<p>Filename:<input type="file" name="_fileupload" size="30"></p>
<!--<p><input type="checkbox" name="_rename" checked>Rename to the new filename</p>-->
<hr>
<table>
<tr tal:repeat="field python:here.imageCollectionConfig.getFields().keys()">
<tal:x tal:condition="not:python:field==here.imageCollectionConfig.getKey()">
<td>
<tal:x replace="python:here.imageCollectionConfig.getFields()[field][0]"/>
</td>
<td>
<input size="70" tal:attributes="value python:getattr(foundMD,field);
name field;
"/>
</td>
</tal:x>
</tr>
</table>
<input type="hidden" name="-table" tal:attributes="value python:here.imageCollectionConfig.getTable()">
<input type="hidden" size="40" name="_identifyField"
tal:attributes="value python:getattr(foundMD,here.imageCollectionConfig.getKey())">
<input type="submit">
</form>
</tal:block>
</body>
</html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>