annotate zpt/project/edit_basic.zpt @ 57:84879a3f91a6

getLastArrivals
author dwinter
date Tue, 30 Apr 2013 22:34:00 +0200
parents e30a4bd074db
children dc41deabc8f8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
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
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
7 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:basic" />
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
8 <tal:block metal:fill-slot="body">
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
9 <form method="post" action="editMPIWGProject">
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
10 <input type="hidden" name="fromEdit" value="yes" />
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
11 <table>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
12 <tr>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
13 <td><b>Project Title</b></td>
50
e30a4bd074db more cleaning up projects.
casties
parents: 49
diff changeset
14 <td><input name="WEB_title" tal:attributes="value python:here.getProjectTitle()" size="80" /></td>
22
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
15 </tr>
50
e30a4bd074db more cleaning up projects.
casties
parents: 49
diff changeset
16 <tal:block tal:repeat="field here/getEditableFields">
22
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
17 <tr>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
18 <td><b tal:content="python:here.fieldLabels[field]" /></td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
19 <td><input tal:attributes="name field; value python:here.getContent(field)" size=80 /></td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
20 </tr>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
21 </tal:block>
50
e30a4bd074db more cleaning up projects.
casties
parents: 49
diff changeset
22 <tr tal:define="hasChildren here/getSubProjects">
22
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
23 <td>Project is visible</td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
24 <tal:x tal:condition="python:hasChildren and here.isActiveProject()">
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
25 <td>visible (status cannot be changed, because the project has visible children.) <input
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
26 tal:attributes="name python:'active'" value="true" type="hidden"></td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
27 </tal:x>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
28 <tal:x tal:condition="python:(not hasChildren) or (hasChildren and not here.isActiveProject())">
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
29 <td tal:condition="python:here.isActiveProject()"><input tal:attributes="name python:'active'" value="true" checked
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
30 type="checkbox"></td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
31 <td tal:condition="not:python:here.isActiveProject()"><input tal:attributes="name python:'active'" value="true"
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
32 type="checkbox"> <tal:x tal:condition="python: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
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
34 </tal:x></td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
35 </tal:x>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
36 </tr>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
37 <tr>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
38 <td>Started at:</td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
39 <td><input tal:attributes="name python:'startedAt';
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
40 value python:here.getStartedAt()" type="text" len="15" />
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
41 (format dd.mm.yyyy or mm.yyyy or yyyy)</td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
42 </tr>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
43 <tr>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
44 <td>Completed at:</td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
45 <td><input tal:attributes="name python:'completedAt';
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
46 value python:here.getCompletedAt()"
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
47 type="text" len="15" /> (format dd.mm.yyyy or mm.yyyy or yyyy)</td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
48 </tr>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
49
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
50 </table>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
51
0
bca61e893fcc first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff changeset
52
22
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
53 <h2>Names</h2>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
54 <table tal:define="global count python:0">
49
e40ff9829108 improved old project inline image handling.
casties
parents: 35
diff changeset
55 <tr>
e40ff9829108 improved old project inline image handling.
casties
parents: 35
diff changeset
56 <th>Name in project</th><th>MPIWG member object</th>
e40ff9829108 improved old project inline image handling.
casties
parents: 35
diff changeset
57 </tr>
22
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
58 <tr tal:repeat="identifiedName python:options.get('identifiedNames',{}).items()">
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
59 <tal:x tal:define="global count python:count+1" />
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
60 <td><input type="hidden"
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
61 tal:attributes="value python:here.decode(identifiedName[0]); name python:'responsibleScientist_name_%s'%count" /> <span
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
62 tal:replace="python:identifiedName[0]" /> <!-- <pre tal:content="python:repr(identifiedName)"/> --></td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
63 <td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
64 <table>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
65 <tr tal:repeat="member python:identifiedName[1]">
35
38cbbeaf266b more work on projects.
casties
parents: 33
diff changeset
66 <td tal:content="python:member.key" />
38cbbeaf266b more work on projects.
casties
parents: 33
diff changeset
67 <td tal:content="python:member.e_mail" />
38cbbeaf266b more work on projects.
casties
parents: 33
diff changeset
68 <td><input type="checkbox"
38cbbeaf266b more work on projects.
casties
parents: 33
diff changeset
69 tal:attributes="name python:'responsibleScientist_key_%s'%count; value python:member.key;
33
01b5265264b6 more work on projects.
casties
parents: 22
diff changeset
70 checked python:here.isResponsibleScientist(member.key)" />
35
38cbbeaf266b more work on projects.
casties
parents: 33
diff changeset
71 </td>
22
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
72 </tr>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
73 </table>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
74 </td>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
75 </tr>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
76 </table>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
77 <p>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
78 <input type="submit" value="change" />
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
79 </p>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
80 </form>
5ed0b0c21fe5 started to clean up MPIWGProject.
casties
parents: 0
diff changeset
81
0
bca61e893fcc first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff changeset
82 </tal:block>
bca61e893fcc first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff changeset
83 </body>
bca61e893fcc first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff changeset
84 </html>