comparison zpt/staff/edit_image.zpt @ 159:ee79f6ba8d01

clean up staff editing and some zpt forms.
author casties
date Thu, 06 Jun 2013 15:34:20 +0200
parents
children
comparison
equal deleted inserted replaced
158:86a5b3c4af4b 159:ee79f6ba8d01
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html metal:use-macro="here/mainEditFile/macros/page">
4 <body>
5 <tal:block metal:fill-slot="navsel" tal:define="global menusel string:image" />
6
7 <tal:block metal:fill-slot="body">
8 <form tal:attributes="action string:$root/editImage" method="post">
9 <p>
10 <img tal:define="url python:here.getPublishedImageUrl(width=165, showAlways=True)" tal:condition="url" tal:attributes="src url" />
11 </p>
12 <p tal:define="name string:image_p; value here/content/image_p;">
13 Show this photo on the homepage:
14 <span metal:use-macro="here/common_template/macros/yesno_input_radio"/>
15 </p>
16 <!--
17 <p>Filename:<input type="file" name="file" size="30"></p>
18 <p>Images should not be too big. Allowed formats: JPEG, TIFF or PNG. Files must have proper extension *.jpg, *.tif or *.png.</p>
19 -->
20 <p>Please contact the IT-support (support@mpiwg-berlin.mpg.de) to upload a picture for you.</p>
21 <p>
22 <input type="submit" />
23 </p>
24 </form>
25
26 </tal:block>
27 </body>
28 </html>