1: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3: <html metal:use-macro="here/edit_MPIWGProject_main/macros/page">
4: <head>
5: </head>
6: <body>
7: <tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" />
8: <tal:block metal:fill-slot="body">
9: <h3>Edit a publication</h3>
10:
11: <form action="editPublication" method="post" enctype="multipart/form-data">
12: <p>Bibliographical entry</p>
13: <textarea tal:content="structure python:getattr(here,'text','')" name="text" rows="3" cols="80"></textarea>
14:
15: <p>Link</p>
16: <input size="100" tal:attributes="value python:getattr(here,'link','')" name="link">
17:
18: <h4>Images</h4>
19: <p>To display images on the you should use book pages. The link above has to be a link to a book page.</p>
20:
21: <tal:x tal:condition="python:here.hasLinkToBookPage()" tal:define="url python:here.getImageUrls()">
22: <p>Image 1 (e.g. Cover)</p>
23:
24: <p tal:condition="python:len(url)>0">
25: <img tal:attributes="src python:url[0]" height="100"/>
26: </p>
27:
28: <p>Image 2 (e.g. Table of Contents)</p>
29: <p tal:condition="python:len(url)>1">
30: <img tal:attributes="src python:url[1]" height="100"/>
31: </p>
32:
33: </tal:x>
34: <p tal:condition="not:python:here.hasLinkToBookPage()">
35: Link is not a link to a bookPage
36: </p>
37:
38:
39: <!--
40: <p>Image 1 (e.g. Cover)</p>
41: <p tal:condition="python:hasattr(here,'publicationImage1')">
42: <img tal:attributes="src python:here.publicationImage1.absolute_url()" height="100"/>
43: </p>
44: <p>Upload new image:<input type="file" name="image1" len="50"/></p>
45: <p>Image 2 (e.g. Table of Contents)</p>
46: <p tal:condition="python:hasattr(here,'publicationImage2')">
47: <img tal:attributes="src python:here.publicationImage2.absolute_url()" height="100"/>
48: </p>
49: <p>Upload new image:<input type="file" name="image2" len="50"/></p>
50:
51: -->
52: <h3>Descriptive Text</h3>
53: <p>
54: <textarea tal:content="structure python:getattr(here,'description','')" name="description" rows="10" cols="80"></textarea>
55: </p>
56: <p><input type="submit" value="submit"/></p>
57: </form>
58:
59: <h3><a href="managePublications">Back to publication list</a></h3>
60: </tal:block>
61: </body>
62: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>