Ajout de l'accesseur xmp:CreateDate qui est désormais utilisé pour la date de prise...
[Photo.git] / dtml / fileEdit.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 file object 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
9 file. You may also edit the file content directly if the content is a
10 text type and small enough to be edited in a text area.
11 </p>
12
13 <form action="&dtml-URL1;" method="post" enctype="multipart/form-data">
14 <table cellpadding="2" cellspacing="0" width="100%" border="0">
15 <tr>
16 <td align="left" valign="top">
17 <div class="form-optional">
18 Title
19 </div>
20 </td>
21 <td align="left" valign="top">
22 <input type="text" name="title" size="40" value="<dtml-if
23 title>&dtml-title;</dtml-if>">
24 </td>
25 </tr>
26
27 <tr>
28 <td align="left" valign="top">
29 <div class="form-label">
30 Content Type
31 </div>
32 </td>
33 <td align="left" valign="top">
34 <input type="text" name="content_type:required" size="40" value="<dtml-if
35 content_type>&dtml-content_type;</dtml-if>">
36 </td>
37 </tr>
38
39 <tr>
40 <td align="left" valign="top">
41 <div class="form-optional">
42 Precondition
43 </div>
44 </td>
45 <td align="left" valign="top">
46 <input type="text" name="precondition" size="40" value="<dtml-if
47 precondition>&dtml-precondition;</dtml-if>">
48 </td>
49 </tr>
50
51 <dtml-let ct=getContentType>
52 <dtml-if "(ct.startswith('text') or ct.endswith('javascript'))
53 and this().get_size() < 65536">
54 <tr>
55 <td align="left" valign="top" colspan="2">
56 <div style="width: 100%;">
57 <dtml-let cols="REQUEST.get('dtpref_cols', '100%')"
58 rows="REQUEST.get('dtpref_rows', '20')">
59 <dtml-if "cols[-1]=='%'">
60 <textarea name="filedata:text" wrap="off" style="width: &dtml-cols;;"
61 <dtml-else>
62 <textarea name="filedata:text" wrap="off" cols="&dtml-cols;"
63 </dtml-if>
64 rows="&dtml-rows;"><dtml-var __str__ html_quote></textarea>
65 </dtml-let>
66 </div>
67 </td>
68 </tr>
69 <dtml-else>
70 <tr>
71 <td align="left" valign="top">
72 <div class="form-label">
73 Last Modified
74 </div>
75 </td>
76 <td align="left" valign="top">
77 <div class="form-text">
78 <dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
79 </div>
80 </td>
81 </tr>
82 <tr>
83 <td align="left" valign="top">
84 <div class="form-label">
85 File Size
86 </div>
87 </td>
88 <td align="left" valign="top">
89 <div class="form-text">
90 <dtml-var size thousands_commas> bytes
91 </div>
92 </td>
93 </tr>
94 </dtml-if>
95 </dtml-let>
96
97 <tr>
98 <td></td>
99 <td align="left" valign="top">
100 <div class="form-element">
101 <dtml-if wl_isLocked>
102 <em>Locked by WebDAV</em>
103 <dtml-else>
104 <input class="form-element" type="submit" name="manage_edit:method"
105 value="Save Changes">
106 </dtml-if>
107 </div>
108 </td>
109 </tr>
110
111 <tr>
112 <td align="left" valign="top">
113 <br />
114 <div class="form-label">
115 File Data
116 </div>
117 </td>
118 <td align="left" valign="top">
119 <br />
120 <input type="file" name="file" size="25" />
121 </td>
122 </tr>
123
124 <tr>
125 <td></td>
126 <td align="left" valign="top">
127 <div class="form-element">
128 <dtml-if wl_isLocked>
129 <em>Locked by WebDAV</em>
130 <dtml-else>
131 <input class="form-element" type="submit" name="manage_upload:method"
132 value="Upload">
133 </dtml-if>
134 </div>
135 </td>
136 </tr>
137
138 </table>
139 </form>
140
141 <dtml-var manage_page_footer>
142