Mercurial > hg > MPIWGWeb
diff zpt/project/edit_images.zpt @ 61:04fb655633ef
more cleaning up projects.
author | casties |
---|---|
date | Thu, 02 May 2013 18:32:01 +0200 |
parents | dc41deabc8f8 |
children | 2dd8e3be4a8e |
line wrap: on
line diff
--- a/zpt/project/edit_images.zpt Thu May 02 11:26:57 2013 +0200 +++ b/zpt/project/edit_images.zpt Thu May 02 18:32:01 2013 +0200 @@ -16,20 +16,24 @@ <tal:block tal:repeat="image images"> <tr tal:define="imgid image/getId"> <td> - <a tal:attributes="href python:here.absolute_url()+'/manageImages?imageName='+imgid+'&op=up'">up</a><br/> - <a tal:attributes="href python:here.absolute_url()+'/manageImages?imageName='+imgid+'&op=down'">down</a> + <a tal:attributes="href string:$root/manageImages?name=$imgid&op=up">up</a><br/> + <a tal:attributes="href string:$root/manageImages?name=$imgid&op=down">down</a> </td> - <td tal:condition="not:python:image.height==''" tal:content="structure python:image.tag(scale=250.0 / image.height)" /> - <td tal:condition="python:image.height==''" tal:content="python:image.height" /> + <td> + <img tal:attributes="src image/absolute_url" /><br/> + <span tal:content="string:(${image/width}x${image/height}px)"/> + </td> <td tal:content="structure python:getattr(image,'caption','')" /> - <td><a tal:attributes="href python:imgid+'/editImage'">Edit</a><br /> <a - tal:attributes="href python:'deleteImage?id='+imgid">Delete</a></td> + <td><a tal:attributes="href string:$root/$imgid/editImage">Edit</a><br /> <a + tal:attributes="href string:$root/deleteImage?id=$imgid">Delete</a></td> </tr> </tal:block> </table> - <p> - The last image in the list is used as the project thumbnail image (140x87px). Preview: <img width="140" height="87" + The image for the project description should have a width of 220px. + </p> + <p> + The last image in the list is used as the project thumbnail image (140x87px): <img align="middle" width="140" height="87" tal:attributes="src here/getThumbUrl" /> </p> @@ -42,8 +46,8 @@ <th>Caption</th> </tr> <tr> - <td><input name="fileHd" type="file" len="50" /></td> - <td><textarea name="caption" rows="3" cols="60"></textarea></td> + <td valign="top"><input name="fileHd" type="file" len="50" /></td> + <td valign="top"><textarea name="caption" rows="3" cols="60"></textarea></td> </tr> </table> <p> @@ -52,7 +56,7 @@ </form> <p> - (if the marginal image from your current project description is not in this list, click <a href="copyImageToMargin">here</a>.) + (if the marginal image from your current project description is not in this list, click <a tal:attributes="href string:$root/copyImageToMargin">here</a>.) </p> </tal:block> </body>