Mercurial > hg > MPIWGWeb
annotate zpt/project/edit_images.zpt @ 64:b5ff783027d6
more work on projects.
author | casties |
---|---|
date | Fri, 03 May 2013 12:00:34 +0200 |
parents | 04fb655633ef |
children | 2dd8e3be4a8e |
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> |
60 | 7 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:images" /> |
8 <tal:block metal:fill-slot="body"> | |
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 | 11 <th /> |
12 <th>Image</th> | |
13 <th>Caption</th> | |
14 <th /> | |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
15 </tr> |
60 | 16 <tal:block tal:repeat="image images"> |
17 <tr tal:define="imgid image/getId"> | |
18 <td> | |
61 | 19 <a tal:attributes="href string:$root/manageImages?name=$imgid&op=up">up</a><br/> |
20 <a tal:attributes="href string:$root/manageImages?name=$imgid&op=down">down</a> | |
60 | 21 </td> |
61 | 22 <td> |
23 <img tal:attributes="src image/absolute_url" /><br/> | |
24 <span tal:content="string:(${image/width}x${image/height}px)"/> | |
25 </td> | |
60 | 26 <td tal:content="structure python:getattr(image,'caption','')" /> |
61 | 27 <td><a tal:attributes="href string:$root/$imgid/editImage">Edit</a><br /> <a |
28 tal:attributes="href string:$root/deleteImage?id=$imgid">Delete</a></td> | |
60 | 29 </tr> |
30 </tal:block> | |
31 </table> | |
32 <p> | |
61 | 33 The image for the project description should have a width of 220px. |
34 </p> | |
35 <p> | |
36 The last image in the list is used as the project thumbnail image (140x87px): <img align="middle" width="140" height="87" | |
60 | 37 tal:attributes="src here/getThumbUrl" /> |
38 </p> | |
39 | |
40 <h3>Add an Image</h3> | |
41 | |
42 <form action="addImage" method="post" enctype="multipart/form-data"> | |
43 <table> | |
44 <tr> | |
45 <th>Image</th> | |
46 <th>Caption</th> | |
47 </tr> | |
48 <tr> | |
61 | 49 <td valign="top"><input name="fileHd" type="file" len="50" /></td> |
50 <td valign="top"><textarea name="caption" rows="3" cols="60"></textarea></td> | |
60 | 51 </tr> |
52 </table> | |
53 <p> | |
54 <input type="submit" value="submit" /> | |
55 </p> | |
56 </form> | |
57 | |
58 <p> | |
61 | 59 (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 | 60 </p> |
61 </tal:block> | |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
62 </body> |
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
63 </html> |