version 1.1.2.2, 2005/09/15 12:57:41
|
version 1.1.2.8, 2010/09/13 11:23:58
|
Line 1
|
Line 1
|
<html> |
<!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_MPIWGProject_main/macros/page"> |
<head> |
<head> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
|
</head> |
</head> |
<body> |
<body> |
<h2>Edit Publication</h2> |
<tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" /> |
<form action="editPublication" method="post"> |
<tal:block metal:fill-slot="body"> |
|
<h3>Edit a publication</h3> |
|
|
|
<form action="editPublication" method="post" enctype="multipart/form-data"> |
|
<p>Bibliographical entry</p> |
<textarea tal:content="structure python:getattr(here,'text','')" name="text" rows="3" cols="80"></textarea> |
<textarea tal:content="structure python:getattr(here,'text','')" name="text" rows="3" cols="80"></textarea> |
<br> |
|
<input type="submit" value="submit"> |
<p>Link</p> |
|
<input size="100" tal:attributes="value python:getattr(here,'link','')" name="link"> |
|
|
|
<h4>Images</h4> |
|
<p>To display images on the you should use book pages. The link above has to be a link to a book page.</p> |
|
|
|
<tal:x tal:condition="python:here.hasLinkToBookPage()" tal:define="url python:here.getImageUrls()"> |
|
<p>Image 1 (e.g. Cover)</p> |
|
|
|
<p tal:condition="python:len(url)>0"> |
|
<img tal:attributes="src python:url[0]" height="100"/> |
|
</p> |
|
|
|
<p>Image 2 (e.g. Table of Contents)</p> |
|
<p tal:condition="python:len(url)>1"> |
|
<img tal:attributes="src python:url[1]" height="100"/> |
|
</p> |
|
|
|
</tal:x> |
|
<p tal:condition="not:python:here.hasLinkToBookPage()"> |
|
Link is not a link to a bookPage |
|
</p> |
|
|
|
|
|
<!-- |
|
<p>Image 1 (e.g. Cover)</p> |
|
<p tal:condition="python:hasattr(here,'publicationImage1')"> |
|
<img tal:attributes="src python:here.publicationImage1.absolute_url()" height="100"/> |
|
</p> |
|
<p>Upload new image:<input type="file" name="image1" len="50"/></p> |
|
<p>Image 2 (e.g. Table of Contents)</p> |
|
<p tal:condition="python:hasattr(here,'publicationImage2')"> |
|
<img tal:attributes="src python:here.publicationImage2.absolute_url()" height="100"/> |
|
</p> |
|
<p>Upload new image:<input type="file" name="image2" len="50"/></p> |
|
|
|
--> |
|
<h3>Descriptive Text</h3> |
|
<p> |
|
<textarea tal:content="structure python:getattr(here,'description','')" name="description" rows="10" cols="80"></textarea> |
|
</p> |
|
<p><input type="submit" value="submit"/></p> |
</form> |
</form> |
|
|
|
<h3><a href="managePublications">Back to publication list</a></h3> |
|
</tal:block> |
</body> |
</body> |
</html> |
</html> |