view zpt/project/edit_template.zpt @ 169:2da62e93a1c6

fix editing related projects.
author casties
date Fri, 07 Jun 2013 12:47:11 +0200
parents 2dd8e3be4a8e
children 37c2c29ab7ed
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 xmlns="http://www.w3.org/1999/xhtml"
  metal:define-macro="page">
<head tal:define="global root here/getMPIWGProjectUrl; global onload nothing;">
<metal:block metal:define-slot="html_head"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="edit_css" type="text/css"/>  
</head>
<body tal:attributes="onload onload">
  <h3 tal:condition="not:here/isActiveProject">(!!Project is not visible!!)</h3>
  <h2 class="title">Edit project <i><tal:block metal:define-slot="project_title" tal:content="here/getProjectTitle"/></i></h2>
  <metal:block metal:define-slot="navsel"/>
  <div class="mainnav">
    <span tal:attributes="class python:test('basic'==menusel, 'mainmenusel', 'mainmenu')"><a 
      tal:attributes="href string:$root/editBasic">Basic information</a></span>
    <span tal:attributes="class python:test('description'==menusel, 'mainmenusel', 'mainmenu')"><a 
      tal:attributes="href string:$root/editDescription">Project description</a></span>
    <span tal:attributes="class python:test('images'==menusel, 'mainmenusel', 'mainmenu')"><a 
      tal:attributes="href string:$root/manageImages">Images</a></span>
    <span tal:attributes="class python:test('publications'==menusel, 'mainmenusel', 'mainmenu')"><a 
      tal:attributes="href string:$root/managePublications">Publications</a></span>
    <span tal:attributes="class python:test('relatedProjects'==menusel, 'mainmenusel', 'mainmenu')"><a 
      tal:attributes="href string:$root/manageRelatedProjects">Related projects</a></span>
    <span tal:attributes="class python:test('infoblocks'==menusel, 'mainmenusel', 'mainmenu')"><a 
      tal:attributes="href string:$root/manageInfoBlocks">Info blocks</a></span>
    <span tal:attributes="class python:test('themes'==menusel, 'mainmenusel', 'mainmenu')"><a 
      tal:attributes="href string:$root/tagTheProject">Tags</a></span>
    <span class="mainmenu"><a target="_blank" 
      tal:attributes="href python:here.getMPIWGProject().getUrl(baseUrl=here.en.MPIWGrootURL()+'/research/projects')">View</a></span>
  </div>
  <div class="content">
  <tal:block metal:define-slot="body"/>
  </div>
</body>
</html>