_current_filename n'existe plus avec zope-2.12. On remlace par son implémentation.
[Photo.git] / dtml / imageEdit.dtml
1 <dtml-var manage_page_header>
2 <dtml-var manage_tabs>
3
4
5 <p class="form-help">
6 You can update the data for this &dtml-kind; using the form below.
7 Select a data file from your local computer by clicking the <em>browse</em>
8 button and click <em>upload</em> to update the contents of the &dtml-kind;.
9 </p>
10
11 <form action="&dtml-URL1;/manage_edit" method="post"
12 enctype="multipart/form-data">
13 <table cellpadding="2" cellspacing="0" width="100%" border="0">
14 <tr>
15 <td align="left" valign="top">
16 <div class="form-optional">
17 Title
18 </div>
19 </td>
20 <td align="left" valign="top">
21 <input type="text" name="title" size="40" value="<dtml-if
22 title>&dtml-title;</dtml-if>">
23 </td>
24 </tr>
25
26 <tr>
27 <td align="left" valign="top">
28 <div class="form-label">
29 Content Type
30 </div>
31 </td>
32 <td align="left" valign="top">
33 <input type="text" name="content_type:required" size="40" value="<dtml-if
34 content_type>&dtml-content_type;</dtml-if>">
35 </td>
36 </tr>
37
38 <tr>
39 <td align="left" valign="top">
40 <div class="form-label">
41 Preview
42 </div>
43 </td>
44 <td align="left" valign="top">
45 <dtml-if "_.same_type(height, 1) and height and height > 250">
46 <dtml-var "tag(scale=250.0 / height)">
47 <dtml-elif "_.same_type(height, 's') and height and _.int(height) > 250">
48 <dtml-var "tag(scale=250.0 / _.int(height))">
49 <dtml-else>
50 <dtml-var tag>
51 </dtml-if>
52 </td>
53 </tr>
54
55 <tr>
56 <td align="left" valign="top">
57 <div class="form-label">
58 Last Modified
59 </div>
60 </td>
61 <td align="left" valign="top">
62 <div class="form-text">
63 <dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
64 </div>
65 </td>
66 </tr>
67
68 <tr>
69 <td align="left" valign="top">
70 <div class="form-label">
71 File Size
72 </div>
73 </td>
74 <td align="left" valign="top">
75 <div class="form-text">
76 <dtml-var size thousands_commas> bytes
77 </div>
78 </td>
79 </tr>
80
81 <tr>
82 <td></td>
83 <td align="left" valign="top">
84 <div class="form-element">
85 <dtml-if wl_isLocked>
86 <em>Locked by WebDAV</em>
87 <dtml-else>
88 <input class="form-element" type="submit" name="submit"
89 value="Save Changes">
90 </dtml-if>
91 </div>
92 </td>
93 </tr>
94
95 </table>
96 </form>
97
98 <form action="&dtml-URL1;/manage_upload" method="post"
99 enctype="multipart/form-data">
100 <table cellpadding="2" cellspacing="0" width="100%" border="0">
101 <tr>
102 <td align="left" valign="top">
103 <br />
104 <div class="form-label">
105 File Data
106 </div>
107 </td>
108 <td align="left" valign="top">
109 <br />
110 <input type="file" name="file" size="25" />
111 </td>
112 </tr>
113
114 <tr>
115 <td></td>
116 <td align="left" valign="top">
117 <div class="form-element">
118 <dtml-if wl_isLocked>
119 <em>Locked by WebDAV</em>
120 <dtml-else>
121 <input class="form-element" type="submit" name="submit"
122 value="Upload">
123 </dtml-if>
124 </div>
125 </td>
126 </tr>
127
128 </table>
129 </form>
130
131 <dtml-var manage_page_footer>