Annotation of MPIWGWeb/zpt/edit_MPIWGBasisNeu.zpt, revision 1.1.2.10
1.1.2.4 casties 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">
1.1.2.1 dwinter 4: <head>
5: </head>
6: <body>
1.1.2.4 casties 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>
1.1.2.8 casties 35: <!-- <tr>
1.1.2.7 dwinter 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>
1.1.2.9 dwinter 43: </tr>
44: -->
1.1.2.6 dwinter 45: <tr tal:define="hasChildren python:here.hasChildren()">
1.1.2.5 dwinter 46: <td>Project is active</td>
47: <tal:x tal:condition="python:hasChildren and here.isActiveProject()" >
48: <td>active (status cannot be changed, because the project has active 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">
1.1.2.9 dwinter 55: Completed at:
56: <input tal:attributes="name python:'completedAt';
57: value python:here.getCompletedAt()"
58: type="text" len="15">
59: (format dd.mm.yyyy or mm.yyyy or yyyy)
1.1.2.5 dwinter 60: </td>
61: <td tal:condition="not:python:here.isActiveProject()">
62: <input tal:attributes="name python:'active'" value="true" type="checkbox">
1.1.2.9 dwinter 63: <input tal:attributes="name python:'completedAt';
64: value python:here.getCompletedAt()"
65: type="text" len="15">
66:
67: (format dd.mm.yyyy or mm.yyyy or yyyy)
1.1.2.5 dwinter 68: <tal:x tal:condition="python:hasChildren" >
69: WARNING: This project is not active, but has active children.
70: </tal:x>
71: </td>
72: </tal:x>
73: </tr>
1.1.2.4 casties 74: </table>
1.1.2.10! dwinter 75:
! 76:
! 77: <h2>Names</h2>
! 78: <table tal:define="global count python:0">
! 79:
! 80: <tr tal:repeat="identifiedName python:options.get('identifiedNames',{}).items()">
! 81: <tal:x tal:define="global count python:count+1"/>
! 82: <td><input type="hidden" tal:attributes="value python:identifiedName[0];
! 83: name python:'responsibleScientist_name_%s'%count"/>
! 84: <span tal:replace="python:identifiedName[0]"/></td>
! 85: <td>
! 86: <table>
! 87: <tr tal:repeat="member python:identifiedName[1]">
! 88: <tal:y define="memberObj member/getObject">
! 89: <td tal:content="python:memberObj.getKey()"/>
! 90: <td tal:content="python:memberObj.getId()"/>
! 91: <tal:x condition="python:here.isResponsibleScientist(memberObj.getKey())">
! 92: <td><input type="checkbox" tal:attributes="name python:'responsibleScientist_key_%s'%count;
! 93: value memberObj/getKey"
! 94: checked/></td>
! 95:
! 96: </tal:x>
! 97: <tal:x condition="not:python:here.isResponsibleScientist(memberObj.getKey())">
! 98: <td><input type="checkbox" tal:attributes="name python:'responsibleScientist_key_%s'%count;
! 99: value memberObj/getKey"
! 100: /></td>
! 101:
! 102: </tal:x>
! 103:
! 104: </tal:y>
! 105: </tr>
! 106: </table>
! 107:
! 108: </td>
! 109: </tr>
! 110:
! 111: </table>
! 112: <p><input type="submit" value="change"/></p>
1.1.2.4 casties 113: </form>
1.1.2.10! dwinter 114:
1.1.2.4 casties 115: </tal:block>
1.1.2.1 dwinter 116: </body>
117: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>