Mercurial > hg > MPIWGWeb
annotate zpt/project/edit_images.zpt @ 145:195c4f6faa0c
more style
author | casties |
---|---|
date | Fri, 31 May 2013 20:59:30 +0200 |
parents | 06d7a5859a20 |
children | 7fe39dcfb6c1 |
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> | |
96
2dd8e3be4a8e
add project image link. fix edit image template bug.
casties
parents:
61
diff
changeset
|
14 <th>Link</th> |
60 | 15 <th /> |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
16 </tr> |
60 | 17 <tal:block tal:repeat="image images"> |
18 <tr tal:define="imgid image/getId"> | |
19 <td> | |
61 | 20 <a tal:attributes="href string:$root/manageImages?name=$imgid&op=up">up</a><br/> |
21 <a tal:attributes="href string:$root/manageImages?name=$imgid&op=down">down</a> | |
60 | 22 </td> |
61 | 23 <td> |
24 <img tal:attributes="src image/absolute_url" /><br/> | |
25 <span tal:content="string:(${image/width}x${image/height}px)"/> | |
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" /> |
2dd8e3be4a8e
add project image link. fix edit image template bug.
casties
parents:
61
diff
changeset
|
28 <td tal:content="structure image/getLink" /> |
61 | 29 <td><a tal:attributes="href string:$root/$imgid/editImage">Edit</a><br /> <a |
30 tal:attributes="href string:$root/deleteImage?id=$imgid">Delete</a></td> | |
60 | 31 </tr> |
32 </tal:block> | |
33 </table> | |
34 <p> | |
97 | 35 The image for the project description should have a width of 230px. |
36 Images without a caption will not be shown in the project description. | |
61 | 37 </p> |
38 <p> | |
125 | 39 The last image in the list is used as the project thumbnail image: |
40 <img align="middle" width="120" height="75" | |
41 tal:attributes="src here/getThumbUrl" /> <br/> | |
42 Please provide a thumbnail of 120x75px. | |
60 | 43 </p> |
44 | |
45 <h3>Add an Image</h3> | |
46 | |
47 <form action="addImage" method="post" enctype="multipart/form-data"> | |
48 <table> | |
49 <tr> | |
50 <th>Image</th> | |
51 <th>Caption</th> | |
52 </tr> | |
53 <tr> | |
61 | 54 <td valign="top"><input name="fileHd" type="file" len="50" /></td> |
55 <td valign="top"><textarea name="caption" rows="3" cols="60"></textarea></td> | |
60 | 56 </tr> |
57 </table> | |
58 <p> | |
59 <input type="submit" value="submit" /> | |
60 </p> | |
61 </form> | |
62 | |
63 <p> | |
61 | 64 (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 | 65 </p> |
66 </tal:block> | |
0
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
67 </body> |
bca61e893fcc
first checkin of MPIWGWeb r2 branch from CVS into mercurial
casties
parents:
diff
changeset
|
68 </html> |