summaryrefslogtreecommitdiff
path: root/share/www/dialog
diff options
context:
space:
mode:
Diffstat (limited to 'share/www/dialog')
-rw-r--r--share/www/dialog/_compact_database.html28
-rw-r--r--share/www/dialog/_create_database.html33
-rw-r--r--share/www/dialog/_create_document.html31
-rw-r--r--share/www/dialog/_delete_database.html27
-rw-r--r--share/www/dialog/_delete_document.html26
-rw-r--r--share/www/dialog/_save_view_as.html35
-rw-r--r--share/www/dialog/_upload_attachment.html36
7 files changed, 216 insertions, 0 deletions
diff --git a/share/www/dialog/_compact_database.html b/share/www/dialog/_compact_database.html
new file mode 100644
index 00000000..efa5d345
--- /dev/null
+++ b/share/www/dialog/_compact_database.html
@@ -0,0 +1,28 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post">
+ <h2>Compact Database</h2>
+ <fieldset>
+ <p class="help">
+ Compacting a database removes deleted documents and previous revisions.
+ It is an <strong>irreversible operation</strong> and my take
+ a while to complete for large databases.
+ </p>
+ </fieldset>
+ <div class="buttons">
+ <button type="submit">Compact</button>
+ <button type="button" class="cancel">Cancel</button>
+ </div>
+</form>
diff --git a/share/www/dialog/_create_database.html b/share/www/dialog/_create_database.html
new file mode 100644
index 00000000..5c909a7a
--- /dev/null
+++ b/share/www/dialog/_create_database.html
@@ -0,0 +1,33 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post">
+ <h2>Create New Database</h2>
+ <fieldset>
+ <p class="help">
+ Please enter the name of the database. Note that only lowercase
+ characters (<tt>a-z</tt>), digits (<tt>0-9</tt>), or any of the
+ characters <tt>_</tt>, <tt>$</tt>, <tt>(</tt>, <tt>)</tt>, <tt>+</tt>,
+ <tt>-</tt>, and <tt>/</tt> are allowed.
+ </p>
+ <table summary=""><tbody><tr>
+ <th><label>Database Name:</label></th>
+ <td><input type="text" name="name" size="24"></td>
+ </tr></table>
+ </fieldset>
+ <div class="buttons">
+ <button type="submit">Create</button>
+ <button type="button" class="cancel">Cancel</button>
+ </div>
+</form>
diff --git a/share/www/dialog/_create_document.html b/share/www/dialog/_create_document.html
new file mode 100644
index 00000000..fc9eef02
--- /dev/null
+++ b/share/www/dialog/_create_document.html
@@ -0,0 +1,31 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post">
+ <h2>Create New Document</h2>
+ <fieldset>
+ <p class="help">
+ Please enter a unique ID of the document, or leave the field empty to get
+ an auto-generated ID.
+ </p>
+ <table summary=""><tbody><tr>
+ <th><label>Document ID:</label></th>
+ <td><input type="text" name="docid" size="32"></td>
+ </tr></table>
+ </fieldset>
+ <div class="buttons">
+ <button type="submit">Create</button>
+ <button type="button" class="cancel">Cancel</button>
+ </div>
+</form>
diff --git a/share/www/dialog/_delete_database.html b/share/www/dialog/_delete_database.html
new file mode 100644
index 00000000..16be8f30
--- /dev/null
+++ b/share/www/dialog/_delete_database.html
@@ -0,0 +1,27 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post">
+ <h2>Delete Database</h2>
+ <fieldset>
+ <p class="help">
+ Are you sure you want to delete this database? Note that this is an
+ <strong>irreversible operation</strong>!
+ </p>
+ </fieldset>
+ <div class="buttons">
+ <button type="submit">Delete</button>
+ <button type="button" class="cancel">Cancel</button>
+ </div>
+</form>
diff --git a/share/www/dialog/_delete_document.html b/share/www/dialog/_delete_document.html
new file mode 100644
index 00000000..6b5497a4
--- /dev/null
+++ b/share/www/dialog/_delete_document.html
@@ -0,0 +1,26 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post">
+ <h2>Delete Document</h2>
+ <fieldset>
+ <p class="help">
+ Are you sure you want to delete this document?
+ </p>
+ </fieldset>
+ <div class="buttons">
+ <button type="submit">Delete</button>
+ <button type="button" class="cancel">Cancel</button>
+ </div>
+</form>
diff --git a/share/www/dialog/_save_view_as.html b/share/www/dialog/_save_view_as.html
new file mode 100644
index 00000000..a7f10785
--- /dev/null
+++ b/share/www/dialog/_save_view_as.html
@@ -0,0 +1,35 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post" id="view-save-as" onload="initForm(this)">
+ <h2>Save View As&hellip;</h2>
+ <fieldset>
+ <p class="help">
+ You can save this function code as a permanent view in the database. Just
+ enter or select the design document and the name of the view below. Note
+ that if you choose an existing view, it will be overwritten!
+ </p>
+ <table summary=""><tbody><tr>
+ <th><label for="input_docid">Design Document:</label></th>
+ <td><tt>_design/</tt><input type="text" id="input_docid" name="docid" size="20"></td>
+ </tr><tr>
+ <th><label for="input_name">View Name:<label></th>
+ <td><input type="text" id="input_name" name="name" size="30"></td>
+ </tr></table>
+ </fieldset>
+ <div class="buttons">
+ <button type="submit">Save</button>
+ <button type="button" class="cancel">Cancel</button>
+ </div>
+</form>
diff --git a/share/www/dialog/_upload_attachment.html b/share/www/dialog/_upload_attachment.html
new file mode 100644
index 00000000..941fcc47
--- /dev/null
+++ b/share/www/dialog/_upload_attachment.html
@@ -0,0 +1,36 @@
+<!--
+
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software distributed
+under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
+CONDITIONS OF ANY KIND, either express or implied. See the License for the
+specific language governing permissions and limitations under the License.
+
+-->
+<form action="" method="post" id="upload-form">
+ <h2>Upload Attachment</h2>
+ <fieldset>
+ <p class="help">
+ 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.
+ </p>
+ <table summary=""><tbody><tr>
+ <th><label>File:</label></th>
+ <td><input type="file" name="_attachments"></td>
+ </tr><tr>
+ <td id="progress" colspan="2">&nbsp;</td>
+ </tr></table>
+ </fieldset>
+ <div class="buttons">
+ <input type="hidden" name="_rev" value="">
+ <button type="submit">Upload</button>
+ <button type="button" class="cancel">Cancel</button>
+ </div>
+</form>