annotate zpt/project/edit_images.zpt @ 219:5ffb9e7167b6

thesaurus auf project seinte
author dwinter
date Thu, 24 Oct 2013 14:47:07 +0200
parents 7fe39dcfb6c1
children
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>
60
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
7 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:images" />
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
8 <tal:block metal:fill-slot="body">
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
9 <table tal:define="images here/getImageList" tal:condition="images">
0
bca61e893fcc first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff changeset
10 <tr>
60
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
11 <th />
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
12 <th>Image</th>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
13 <th>Caption</th>
96
2dd8e3be4a8e add project image link. fix edit image template bug.
casties
parents: 61
diff changeset
14 <th>Link</th>
60
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
15 <th />
0
bca61e893fcc first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff changeset
16 </tr>
60
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
17 <tal:block tal:repeat="image images">
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
18 <tr tal:define="imgid image/getId">
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
19 <td>
61
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
20 <a tal:attributes="href string:$root/manageImages?name=$imgid&op=up">up</a><br/>
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
21 <a tal:attributes="href string:$root/manageImages?name=$imgid&op=down">down</a>
60
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
22 </td>
61
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
23 <td>
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
24 <img tal:attributes="src image/absolute_url" /><br/>
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
25 <span tal:content="string:(${image/width}x${image/height}px)"/>
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
26 </td>
96
2dd8e3be4a8e add project image link. fix edit image template bug.
casties
parents: 61
diff changeset
27 <td tal:content="structure image/getCaption" />
172
7fe39dcfb6c1 improved editing project images.
casties
parents: 125
diff changeset
28 <td><a tal:define="link image/getLink" tal:condition="link" tal:attributes="href link" tal:content="link"/></td>
61
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
29 <td><a tal:attributes="href string:$root/$imgid/editImage">Edit</a><br /> <a
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
30 tal:attributes="href string:$root/deleteImage?id=$imgid">Delete</a></td>
60
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
31 </tr>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
32 </tal:block>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
33 </table>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
34 <p>
97
7b96a85552aa fix bugs in project editing.
casties
parents: 96
diff changeset
35 The image for the project description should have a width of 230px.
7b96a85552aa fix bugs in project editing.
casties
parents: 96
diff changeset
36 Images without a caption will not be shown in the project description.
61
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
37 </p>
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
38 <p>
125
06d7a5859a20 info about project thumbnail.
casties
parents: 97
diff changeset
39 The last image in the list is used as the project thumbnail image:
06d7a5859a20 info about project thumbnail.
casties
parents: 97
diff changeset
40 <img align="middle" width="120" height="75"
06d7a5859a20 info about project thumbnail.
casties
parents: 97
diff changeset
41 tal:attributes="src here/getThumbUrl" /> <br/>
06d7a5859a20 info about project thumbnail.
casties
parents: 97
diff changeset
42 Please provide a thumbnail of 120x75px.
60
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
43 </p>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
44
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
45 <h3>Add an Image</h3>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
46
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
47 <form action="addImage" method="post" enctype="multipart/form-data">
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
48 <table>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
49 <tr>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
50 <th>Image</th>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
51 <th>Caption</th>
172
7fe39dcfb6c1 improved editing project images.
casties
parents: 125
diff changeset
52 <th>Link(optional)</th>
60
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
53 </tr>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
54 <tr>
172
7fe39dcfb6c1 improved editing project images.
casties
parents: 125
diff changeset
55 <td valign="top"><input name="fileHd" type="file"/></td>
61
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
56 <td valign="top"><textarea name="caption" rows="3" cols="60"></textarea></td>
172
7fe39dcfb6c1 improved editing project images.
casties
parents: 125
diff changeset
57 <td valign="top"><input name="link" type="text"/></td>
60
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
58 </tr>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
59 </table>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
60 <p>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
61 <input type="submit" value="submit" />
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
62 </p>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
63 </form>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
64
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
65 <p>
61
04fb655633ef more cleaning up projects.
casties
parents: 60
diff changeset
66 (if the marginal image from your current project description is not in this list, click <a tal:attributes="href string:$root/copyImageToMargin">here</a>.)
60
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
67 </p>
dc41deabc8f8 more work on projects. more cleanup.
casties
parents: 22
diff changeset
68 </tal:block>
0
bca61e893fcc first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff changeset
69 </body>
bca61e893fcc first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff changeset
70 </html>