File:  [Repository] / MPIWGWeb / zpt / Attic / edit_MPIWGBasisNeu.zpt
Revision 1.1.2.7: download - view: text, annotated - select for diffs - revision graph
Wed Nov 8 14:47:13 2006 UTC (17 years, 7 months ago) by dwinter
Branches: r2
new editing for historical names

    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:         <tr tal:define="hasChildren python:here.hasChildren()">
   45:     	<td>Project is active</td>
   46:     	 <tal:x tal:condition="python:hasChildren and here.isActiveProject()" >
   47: 	      <td>active (status cannot be changed, because the project has active children.)
   48: 	       <input tal:attributes="name python:'active'" value="true" type="hidden">
   49: 	      </td>
   50: 	     </tal:x>
   51:     	 <tal:x tal:condition="python:(not hasChildren) or (hasChildren and not here.isActiveProject())">
   52: 	      <td tal:condition="python:here.isActiveProject()" >
   53: 			<input tal:attributes="name python:'active'" value="true" checked type="checkbox">
   54: 	      </td>
   55: 	      <td tal:condition="not:python:here.isActiveProject()">
   56: 		    <input tal:attributes="name python:'active'" value="true" type="checkbox">
   57: 	    	<tal:x tal:condition="python:hasChildren" >
   58: 			 	 WARNING: This project is not active, but has active children.
   59: 			</tal:x>
   60: 	      </td>
   61: 	    </tal:x>
   62: 	 </tr>
   63:   </table>
   64:   <p><input type="submit" value="change"/></p>
   65:   </form>
   66:   </tal:block>
   67: </body>
   68: </html>

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