From 796a66de5f10b219c5ed196a8c97ed4bd3a227a2 Mon Sep 17 00:00:00 2001 From: Christopher Lenz Date: Sat, 30 Aug 2008 21:09:31 +0000 Subject: Implement attachment uploading in Futon. git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@690590 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/browse/_upload_attachment.html | 36 ++++++++++++++++++++++++++++++++ share/www/browse/document.html | 3 +++ 2 files changed, 39 insertions(+) create mode 100644 share/www/browse/_upload_attachment.html (limited to 'share/www/browse') diff --git a/share/www/browse/_upload_attachment.html b/share/www/browse/_upload_attachment.html new file mode 100644 index 00000000..941fcc47 --- /dev/null +++ b/share/www/browse/_upload_attachment.html @@ -0,0 +1,36 @@ + +
+

Upload Attachment

+
+

+ Please select the file you want to upload as an attachment to this + document. Please note that this will result in the immediate creation of + a new revision of the document, so it's not necessary to save the + document after the upload. +

+ + + + + +
 
+
+
+ + + +
+
diff --git a/share/www/browse/document.html b/share/www/browse/document.html index 98d8ec48..09136533 100644 --- a/share/www/browse/document.html +++ b/share/www/browse/document.html @@ -23,6 +23,7 @@ specific language governing permissions and limitations under the License. + @@ -61,6 +62,7 @@ specific language governing permissions and limitations under the License. $("#toolbar button.save").click(page.saveDocument); $("#toolbar button.add").click(page.addField); + $("#toolbar button.load").click(page.uploadAttachment); $("#toolbar button.delete").click(page.deleteDocument); }); @@ -76,6 +78,7 @@ specific language governing permissions and limitations under the License. -- cgit v1.2.3