eggification
[Photo.git] / Products / Photo / dtml / imageEdit.dtml
diff --git a/Products/Photo/dtml/imageEdit.dtml b/Products/Photo/dtml/imageEdit.dtml
new file mode 100644 (file)
index 0000000..6268783
--- /dev/null
@@ -0,0 +1,131 @@
+<dtml-var manage_page_header>
+<dtml-var manage_tabs>
+
+
+<p class="form-help">
+You can update the data for this &dtml-kind; using the form below. 
+Select a data file from your local computer by clicking the <em>browse</em> 
+button and click <em>upload</em> to update the contents of the &dtml-kind;.
+</p>
+
+<form action="&dtml-URL1;/manage_edit" method="post"
+  enctype="multipart/form-data">
+<table cellpadding="2" cellspacing="0" width="100%" border="0">
+<tr>
+  <td align="left" valign="top">
+  <div class="form-optional">
+  Title
+  </div>
+  </td>
+  <td align="left" valign="top">
+  <input type="text" name="title" size="40" value="<dtml-if 
+   title>&dtml-title;</dtml-if>">
+  </td>
+</tr>
+
+<tr>
+  <td align="left" valign="top">
+  <div class="form-label">
+  Content Type
+  </div>
+  </td>
+  <td align="left" valign="top">
+  <input type="text" name="content_type:required" size="40" value="<dtml-if 
+   content_type>&dtml-content_type;</dtml-if>">
+  </td>
+</tr>
+
+<tr>
+  <td align="left" valign="top">
+  <div class="form-label">
+  Preview
+  </div>
+  </td>
+  <td align="left" valign="top">
+    <dtml-if "_.same_type(height, 1) and height and height > 250">
+    <dtml-var "tag(scale=250.0 / height)">
+    <dtml-elif "_.same_type(height, 's') and height and _.int(height) > 250">
+    <dtml-var "tag(scale=250.0 / _.int(height))">
+    <dtml-else>
+    <dtml-var tag>
+    </dtml-if>
+  </td>
+</tr>
+
+<tr>
+  <td align="left" valign="top">
+  <div class="form-label">
+  Last Modified
+  </div>
+  </td>
+  <td align="left" valign="top">
+  <div class="form-text">
+  <dtml-var bobobase_modification_time fmt="%Y-%m-%d %H:%M">
+  </div>
+  </td>
+</tr>
+
+<tr>
+  <td align="left" valign="top">
+  <div class="form-label">
+  File Size
+  </div>
+  </td>
+  <td align="left" valign="top">
+  <div class="form-text">
+  <dtml-var size thousands_commas> bytes
+  </div>
+  </td>
+</tr>
+
+<tr>
+  <td></td>
+  <td align="left" valign="top">
+  <div class="form-element">
+  <dtml-if wl_isLocked>
+   <em>Locked by WebDAV</em>
+  <dtml-else>
+   <input class="form-element" type="submit" name="submit"
+    value="Save Changes">
+  </dtml-if>
+  </div>
+  </td>
+</tr>
+
+</table>
+</form>
+
+<form action="&dtml-URL1;/manage_upload" method="post"
+  enctype="multipart/form-data">
+<table cellpadding="2" cellspacing="0" width="100%" border="0">
+<tr>
+  <td align="left" valign="top">
+  <br />
+  <div class="form-label">
+  File Data
+  </div>
+  </td>
+  <td align="left" valign="top">
+  <br />
+  <input type="file" name="file" size="25" />
+  </td>
+</tr>
+
+<tr>
+  <td></td>
+  <td align="left" valign="top">
+  <div class="form-element">
+  <dtml-if wl_isLocked>
+   <em>Locked by WebDAV</em>
+  <dtml-else>
+   <input class="form-element" type="submit" name="submit"
+    value="Upload">
+  </dtml-if>
+  </div>
+  </td>
+</tr>
+
+</table>
+</form>
+
+<dtml-var manage_page_footer>