File:  [Repository] / MPIWGWeb / zpt / Attic / edit_MPIWGBasisNeu.zpt
Revision 1.1.2.12: download - view: text, annotated - select for diffs - revision graph
Tue Sep 2 12:00:06 2008 UTC (15 years, 9 months ago) by dwinter
Branches: r2

CLOSED - # 22: ErgŠnze persšnliche homepage um das HinzufŸgen von weiteren Dokumenten / Links
https://itgroup.mpiwg-berlin.mpg.de:8080/tracs/webpage/ticket/22

    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:basis" />
    8: <tal:block metal:fill-slot="body">
    9:   <form method="POST" action="editMPIWGProject">
   10:   <input type="hidden" name="fromEdit" value="yes" />
   11:   <table>
   12:     <tr>
   13:       <td><b>Project Title</b></td>
   14:       <td>
   15:         <input tal:attributes="name python:'WEB_title'; value python:here.getContent('WEB_title')" size="80"/>
   16:       </td>
   17:     </tr>
   18:     <tal:block tal:repeat="field here/getDataFields">
   19:       <tr>
   20:         <td><b tal:content="python:here.fieldLabels[field]"/></td>
   21:         <td><input tal:attributes="name field; value python:here.getContent(field)" size=80 /></td>
   22:       </tr>
   23:       <tr tal:condition="python:here.isCheckField(field)">
   24:         <td/>
   25:         <td><tal:block tal:define="checkList python:here.giveCheckList(here,field)">
   26:           <tal:block repeat="item checkList/keys">
   27:             <span tal:replace="item" />: 
   28:             <tal:block tal:condition="python:len(checkList[item])>0">found</tal:block> 
   29:             <tal:block tal:condition="not:python:len(checkList[item])>0"><font color="#ff0000">not found</font></tal:block>
   30:           </tal:block>
   31:           <br>
   32:         </tal:block></td>
   33:       </tr>
   34:     </tal:block>
   35: <!--    <tr>
   36:      <td><b>Historical names (new)</b><br/>
   37:      Please names enter as <br>
   38:       LASTNAME,FIRSTNAME <br/>or LASTNAME,FIRSTNAME MIDDLE.. <br> with 
   39:      <em>no space</em> before FIRSTNAME
   40:      </td>
   41:      <td><textarea name="historicalNames" tal:content="python:'\n'.join(here.getNamesInProject(here.getId()))" rows="10" cols="30">NAMES</textarea>
   42:      </td>
   43:     </tr> 
   44:     -->
   45:         <tr tal:define="hasChildren python:here.hasChildren()">
   46:     	<td>Project is visible</td>
   47:     	 <tal:x tal:condition="python:hasChildren and here.isActiveProject()" >
   48: 	      <td>visible (status cannot be changed, because the project has visible children.)
   49: 	       <input tal:attributes="name python:'active'" value="true" type="hidden">
   50: 	      </td>
   51: 	     </tal:x>
   52:     	 <tal:x tal:condition="python:(not hasChildren) or (hasChildren and not here.isActiveProject())">
   53: 	      <td tal:condition="python:here.isActiveProject()" >
   54: 			<input tal:attributes="name python:'active'" value="true" checked type="checkbox">
   55: 		
   56: 	      </td>
   57: 	      <td tal:condition="not:python:here.isActiveProject()">
   58: 		    <input tal:attributes="name python:'active'" value="true" type="checkbox">
   59: 	    	<tal:x tal:condition="python:hasChildren" >
   60: 			 	 WARNING: This project is not visible, but has visible children.
   61: 			</tal:x>
   62: 	      </td>
   63: 	    </tal:x>
   64: 	 </tr>
   65: 	 <tr>
   66: 	 	<td>Completed at:</td>
   67: 	 	<td>
   68: 			<input tal:attributes="name python:'completedAt';
   69: 								   value python:here.getCompletedAt()"
   70: 								   type="text" len="15"/>
   71: 			(format dd.mm.yyyy or mm.yyyy or yyyy)
   72: 			</td>
   73: 	</tr>
   74: 		 <tr>
   75: 	 	<td>Startet at:</td>
   76: 	 	<td>
   77: 			<input tal:attributes="name python:'startedAt';
   78: 								   value python:here.getStartedAt()"
   79: 								   type="text" len="15"/>
   80: 			(format dd.mm.yyyy or mm.yyyy or yyyy)
   81: 			</td>
   82: 	</tr>
   83: 	 	
   84:   </table>
   85:  
   86:   
   87:   <h2>Names</h2>
   88:   <table tal:define="global count python:0">
   89:  
   90: <tr tal:repeat="identifiedName python:options.get('identifiedNames',{}).items()">
   91: 		<tal:x tal:define="global count python:count+1"/>
   92:   		<td><input type="hidden" tal:attributes="value python:here.decode(identifiedName[0]);
   93:   												 name python:'responsibleScientist_name_%s'%count"/>
   94:   			<span tal:replace="python:identifiedName[0]"/></td>
   95:   		<td>
   96:   		<table>
   97:   		<tr tal:repeat="member python:identifiedName[1]">
   98:   		 	<tal:y define="memberObj member/getObject">
   99:   				<td tal:content="python:here.decode(memberObj.getKey())"/>
  100:   				<td tal:content="python:memberObj.getId()"/>
  101:   				<tal:x condition="python:here.isResponsibleScientist(memberObj.getKey())">
  102:   					<td><input type="checkbox" tal:attributes="name python:'responsibleScientist_key_%s'%count;
  103:   																			value python:here.decode(memberObj.getKey())"
  104:   												checked/></td>
  105:   					
  106:  				</tal:x>
  107:  				<tal:x condition="not:python:here.isResponsibleScientist(memberObj.getKey())">
  108:   					<td><input type="checkbox"  tal:attributes="name python:'responsibleScientist_key_%s'%count;
  109:   																			value python:here.decode(memberObj.getKey())"
  110:   												/></td>
  111:   				
  112:  				</tal:x>
  113:   			
  114:   			</tal:y>
  115:   		</tr>
  116:   		</table>
  117:   		
  118:   		</td>
  119: 	</tr>
  120: 
  121:   	</table>	
  122:   	<p><input type="submit" value="change"/></p>
  123:   </form>
  124:   	
  125:   </tal:block>
  126: </body>
  127: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>