Mercurial > hg > MPIWGWeb
annotate zpt/project/edit_basic.zpt @ 35:38cbbeaf266b
more work on projects.
responsibleScientistsList has new format.
author | casties |
---|---|
date | Thu, 25 Apr 2013 21:39:57 +0200 |
parents | 01b5265264b6 |
children | e40ff9829108 |
rev | line source |
---|---|
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
22 | 3 <html metal:use-macro="here/edit_template/macros/page"> |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
4 <head> |
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
5 </head> |
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
6 <body> |
22 | 7 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:basic" /> |
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><input tal:attributes="name python:'WEB_title'; value python:here.getContent('WEB_title')" size="80" /></td> | |
15 </tr> | |
16 <tal:block tal:repeat="field here/getDataFields"> | |
17 <tr> | |
18 <td><b tal:content="python:here.fieldLabels[field]" /></td> | |
19 <td><input tal:attributes="name field; value python:here.getContent(field)" size=80 /></td> | |
20 </tr> | |
21 <tr tal:condition="python:here.isCheckField(field)"> | |
22 <td /> | |
23 <td><tal:block tal:define="checkList python:here.giveCheckList(here,field)"> | |
24 <tal:block repeat="item checkList/keys"> | |
25 <span tal:replace="item" />: | |
26 <tal:block tal:condition="python:len(checkList[item])>0">found</tal:block> | |
27 <tal:block tal:condition="not:python:len(checkList[item])>0"> | |
28 <font color="#ff0000">not found</font> | |
29 </tal:block> | |
30 </tal:block> | |
31 <br /> | |
32 </tal:block></td> | |
33 </tr> | |
34 </tal:block> | |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
35 <tr tal:define="hasChildren python:here.hasChildren()"> |
22 | 36 <td>Project is visible</td> |
37 <tal:x tal:condition="python:hasChildren and here.isActiveProject()"> | |
38 <td>visible (status cannot be changed, because the project has visible children.) <input | |
39 tal:attributes="name python:'active'" value="true" type="hidden"></td> | |
40 </tal:x> | |
41 <tal:x tal:condition="python:(not hasChildren) or (hasChildren and not here.isActiveProject())"> | |
42 <td tal:condition="python:here.isActiveProject()"><input tal:attributes="name python:'active'" value="true" checked | |
43 type="checkbox"></td> | |
44 <td tal:condition="not:python:here.isActiveProject()"><input tal:attributes="name python:'active'" value="true" | |
45 type="checkbox"> <tal:x tal:condition="python:hasChildren"> | |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
46 WARNING: This project is not visible, but has visible children. |
22 | 47 </tal:x></td> |
48 </tal:x> | |
49 </tr> | |
50 <tr> | |
51 <td>Started at:</td> | |
52 <td><input tal:attributes="name python:'startedAt'; | |
53 value python:here.getStartedAt()" type="text" len="15" /> | |
54 (format dd.mm.yyyy or mm.yyyy or yyyy)</td> | |
55 </tr> | |
56 <tr> | |
57 <td>Completed at:</td> | |
58 <td><input tal:attributes="name python:'completedAt'; | |
59 value python:here.getCompletedAt()" | |
60 type="text" len="15" /> (format dd.mm.yyyy or mm.yyyy or yyyy)</td> | |
61 </tr> | |
62 | |
63 </table> | |
64 | |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
65 |
22 | 66 <h2>Names</h2> |
67 <table tal:define="global count python:0"> | |
68 <tr tal:repeat="identifiedName python:options.get('identifiedNames',{}).items()"> | |
69 <tal:x tal:define="global count python:count+1" /> | |
70 <td><input type="hidden" | |
71 tal:attributes="value python:here.decode(identifiedName[0]); name python:'responsibleScientist_name_%s'%count" /> <span | |
72 tal:replace="python:identifiedName[0]" /> <!-- <pre tal:content="python:repr(identifiedName)"/> --></td> | |
73 <td> | |
74 <table> | |
75 <tr tal:repeat="member python:identifiedName[1]"> | |
35 | 76 <td tal:content="python:member.key" /> |
77 <td tal:content="python:member.e_mail" /> | |
78 <td><input type="checkbox" | |
79 tal:attributes="name python:'responsibleScientist_key_%s'%count; value python:member.key; | |
33 | 80 checked python:here.isResponsibleScientist(member.key)" /> |
35 | 81 </td> |
22 | 82 </tr> |
83 </table> | |
84 </td> | |
85 </tr> | |
86 </table> | |
87 <p> | |
88 <input type="submit" value="change" /> | |
89 </p> | |
90 </form> | |
91 | |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
92 </tal:block> |
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
93 </body> |
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
94 </html> |