Mercurial > hg > MPIWGWeb
annotate zpt/project/edit_basic.zpt @ 260:4eddd388d490 new_pro_struct
more work on subproject thumbs.
author | casties |
---|---|
date | Thu, 07 Aug 2014 17:50:04 +0200 |
parents | 7288e7729960 |
children | 79f3f6492ec9 |
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> | |
61 | 14 <td><input name="WEB_title" tal:attributes="value here/getProjectTitle" size="80" /></td> |
22 | 15 </tr> |
50 | 16 <tal:block tal:repeat="field here/getEditableFields"> |
22 | 17 <tr> |
60 | 18 <td><b tal:content="python:here.getFieldLabels()[field]" /></td> |
22 | 19 <td><input tal:attributes="name field; value python:here.getContent(field)" size=80 /></td> |
20 </tr> | |
21 </tal:block> | |
50 | 22 <tr tal:define="hasChildren here/getSubProjects"> |
22 | 23 <td>Project is visible</td> |
24 <tal:x tal:condition="python:hasChildren and here.isActiveProject()"> | |
25 <td>visible (status cannot be changed, because the project has visible children.) <input | |
26 tal:attributes="name python:'active'" value="true" type="hidden"></td> | |
27 </tal:x> | |
28 <tal:x tal:condition="python:(not hasChildren) or (hasChildren and not here.isActiveProject())"> | |
29 <td tal:condition="python:here.isActiveProject()"><input tal:attributes="name python:'active'" value="true" checked | |
30 type="checkbox"></td> | |
31 <td tal:condition="not:python:here.isActiveProject()"><input tal:attributes="name python:'active'" value="true" | |
60 | 32 type="checkbox"> <tal:x tal:condition="hasChildren"> |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
33 WARNING: This project is not visible, but has visible children. |
22 | 34 </tal:x></td> |
35 </tal:x> | |
36 </tr> | |
37 <tr> | |
38 <td>Started at:</td> | |
39 <td><input tal:attributes="name python:'startedAt'; | |
260 | 40 value python:here.getStartedAt()" type="text" size="10" /> |
22 | 41 (format dd.mm.yyyy or mm.yyyy or yyyy)</td> |
42 </tr> | |
43 <tr> | |
44 <td>Completed at:</td> | |
45 <td><input tal:attributes="name python:'completedAt'; | |
46 value python:here.getCompletedAt()" | |
260 | 47 type="text" size="10" /> (format dd.mm.yyyy or mm.yyyy or yyyy)</td> |
22 | 48 </tr> |
257 | 49 <tr> |
50 <td>Type of project page:</td> | |
51 <td><input name="projectType" tal:attributes="value here/getProjectType" | |
260 | 52 type="text" size="20" /></td> |
257 | 53 </tr> |
22 | 54 </table> |
55 | |
56 <h2>Names</h2> | |
63 | 57 <table tal:define="global count python:0; |
58 identifiedNames python:here.identifyNames(here.getResponsibleScientists());"> | |
49 | 59 <tr> |
60 <th>Name in project</th><th>MPIWG member object</th> | |
61 </tr> | |
63 | 62 <tr tal:condition="identifiedNames" tal:repeat="identifiedName identifiedNames/items"> |
22 | 63 <tal:x tal:define="global count python:count+1" /> |
64 <td><input type="hidden" | |
60 | 65 tal:attributes="value python:identifiedName[0]; name python:'responsibleScientist_name_%s'%count" /> <span |
22 | 66 tal:replace="python:identifiedName[0]" /> <!-- <pre tal:content="python:repr(identifiedName)"/> --></td> |
67 <td> | |
68 <table> | |
69 <tr tal:repeat="member python:identifiedName[1]"> | |
35 | 70 <td tal:content="python:member.key" /> |
71 <td tal:content="python:member.e_mail" /> | |
72 <td><input type="checkbox" | |
73 tal:attributes="name python:'responsibleScientist_key_%s'%count; value python:member.key; | |
33 | 74 checked python:here.isResponsibleScientist(member.key)" /> |
35 | 75 </td> |
22 | 76 </tr> |
77 </table> | |
78 </td> | |
79 </tr> | |
80 </table> | |
81 <p> | |
82 <input type="submit" value="change" /> | |
83 </p> | |
84 </form> | |
85 | |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
86 </tal:block> |
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
87 </body> |
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
88 </html> |