source: WAeUP_SRP/trunk/skins/waeup_layout/widget_passport_render.pt @ 17722

Last change on this file since 17722 was 2344, checked in by Henrik Bettermann, 17 years ago

some fixes in Widgets.py and in application_pde.xml

DateTime? Widgets must never been required!

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   
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         
34    <metal:block define-macro="image_edit">
35      <metal:block use-macro="here/widget_file_render/macros/file_edit">
36        <metal:block fill-slot="keep_file" />
37        <metal:block fill-slot="delete_file" />
38        <metal:block fill-slot="change_file">
39          <input type="file" name="." size="24"
40                 tal:attributes="name name;"/>
41          <tal:block condition="python:1">
42            <input type="hidden" value="img_auto_size"
43                   tal:attributes="name string:${name}_resize" />
44          </tal:block>
45        </metal:block>
46      </metal:block>
47    </metal:block>
48  <metal:block use-macro="here/widget_file_render/macros/file_size_max_view" />
49 
50  </tal:block>
51</tal:block>
Note: See TracBrowser for help on using the repository browser.