source: WAeUP_SRP/base/skins/waeup_default/widget_passport_render.pt @ 2242

Last change on this file since 2242 was 2120, checked in by joachim, 17 years ago

error when image too big, delete button gone

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1<tal:block define="mode options/mode;
2  id here/getWidgetId;
3  fields here/fields;
4  current_filename options/current_filename;
5  empty_file options/empty_file;
6  session_file options/session_file;
7  mimetype options/mimetype;
8  size options/size;
9  content_url options/content_url;
10  last_modified options/last_modified;
11  image_width options/width;
12  image_height options/height;
13  image_tag options/image_tag;"
14  >
15  <span tal:condition="python:0" >
16    <img tal:condition="python: mode == 'view' and not empty_file"
17         tal:replace="structure image_tag" />
18  </span>
19  <span tal:condition="python: mode == 'view' and not empty_file">
20    <img tal:condition="python:not empty_file and not session_file"
21         tal:replace="structure image_tag" />
22  </span>
23  <tal:block condition="python: mode == 'edit'">
24    <metal:block use-macro="here/widget_file_render/macros/file_size_max_view" />
25    <metal:block define-macro="image_title_edit">
26      <span tal:condition="python:0">
27        <metal:block use-macro="here/widget_file_render/macros/file_title_edit">
28        </metal:block>
29      </span>
30    </metal:block>
31    <img tal:condition="python:not empty_file and not session_file"
32         tal:replace="structure image_tag" />
33    <metal:block define-macro="image_edit">
34      <metal:block use-macro="here/widget_file_render/macros/file_edit">
35        <metal:block fill-slot="keep_file" />
36        <metal:block fill-slot="delete_file" />
37        <metal:block fill-slot="change_file">
38          <input type="file" name="." size="24"
39                 tal:attributes="name name;"/>
40          <tal:block condition="python:1">
41            <input type="hidden" value="img_auto_size"
42                   tal:attributes="name string:${name}_resize" />
43          </tal:block>
44        </metal:block>
45      </metal:block>
46    </metal:block>
47  </tal:block>
48</tal:block>
Note: See TracBrowser for help on using the repository browser.