view zpt/edit_publicationForm.zpt @ 37:9b38ba45773b

?berarbeitung MPIWGStaff neue editfunktionen
author dwinter
date Fri, 26 Apr 2013 17:19:08 +0200
parents bca61e893fcc
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_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 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>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>
  
  <h3><a href="managePublications">Back to publication list</a></h3>
</tal:block>
</body>
</html>