Mercurial > hg > MPIWGWeb
view zpt/project/image/edit_basic.zpt @ 96:2dd8e3be4a8e
add project image link. fix edit image template bug.
author | casties |
---|---|
date | Thu, 16 May 2013 15:58:28 +0200 |
parents | 63184d71c014 |
children |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html metal:use-macro="here/edit_template/macros/page"> <head> </head> <body> <tal:block metal:fill-slot="navsel" tal:define="global menusel string:images" /> <tal:block metal:fill-slot="body"> <h2>Edit Image</h2> <form action="editImage" method="post" enctype="multipart/form-data"> <h3>Image</h3> <div> <img tal:attributes="src here/absolute_url"/> </div> <p>Upload new image:<input type="file" name="file" len="50"/></p> <h3>Caption</h3> <p>(shown below image)</p> <div> <textarea tal:content="structure python:getattr(here,'caption','')" name="caption" rows="3" cols="60"></textarea> </div> <h3>Link</h3> <p>(optional, URL of larger image)</p> <div> <input type="text" size="60" name="link" tal:attributes="value here/getLink"/> </div> <p> <input type="submit" value="submit"/> </p> </form> <h3><a href="../manageImages">Back to image list</a></h3> </tal:block> </body> </html>