view zpt/project/related_publication/edit_basic.zpt @ 61:04fb655633ef

more cleaning up projects.
author casties
date Thu, 02 May 2013 18:32:01 +0200
parents zpt/edit_publicationForm.zpt@bca61e893fcc
children b5ff783027d6
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_MPIWGProject_main/macros/page">
<head>
</head>
<body>
<tal:block metal:fill-slot="navsel" tal:define="global menusel string:publications" />
<tal:block metal:fill-slot="body">
  <h3>Edit a project 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>
    
  <p>Link</p>
  	<input size="100" tal:attributes="value python:getattr(here,'link','')" name="link">
  
  <h4>Image</h4>
  <p>Only images of MPIWG book pages are displayed. The link above has to be a link to a MPIWG book page.</p>
  
  <tal:x tal:define="hasbook here/hasLinkToBookPage; bookid here/getBookId" tal:condition="bookid">
    <p tal:define="book python:here.books[bookid]" >
  	 <img tal:attributes="src book/getImageUrl" width="150"/>
    </p>
  </tal:x>
  <p tal:condition="not:here/hasLinkToBookPage">
   Link is not a MPIWG book page.
  </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>
  
  <h3><a href="managePublications">Back to publication list</a></h3>
</tal:block>
</body>
</html>