source: WAeUP_SRP/trunk/skins/waeup_default/widget_passport_render.pt @ 2114

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

add passport widget

  • Property svn:keywords set to Id
File size: 1.9 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="change_file">
37          <input type="file" name="." size="24"
38                 tal:attributes="name name;
39                 onclick string:document.getElementById('${radio_name}_change').checked='checked'"
40                 />
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  </tal:block>
49</tal:block>
Note: See TracBrowser for help on using the repository browser.