summaryrefslogtreecommitdiffstats
path: root/webapp/templates/admin_datastore_upgrade.html
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/templates/admin_datastore_upgrade.html')
-rw-r--r--webapp/templates/admin_datastore_upgrade.html45
1 files changed, 45 insertions, 0 deletions
diff --git a/webapp/templates/admin_datastore_upgrade.html b/webapp/templates/admin_datastore_upgrade.html
new file mode 100644
index 0000000000..33aae7fff5
--- /dev/null
+++ b/webapp/templates/admin_datastore_upgrade.html
@@ -0,0 +1,45 @@
+{%extends "admin_base.html"%}
+{%block title1%}Data Store Upgrade{%endblock%}
+{%block body%}
+
+<h2>Data Store Upgrade</h2>
+
+<div id="warning-message">
+<p>If you really mean to upgrade your data store enter
+<code>UPGRADE</code> into the box below.</p>
+
+<p><b><i><font color="rd">
+Once started, there is no going back from this operation.
+</font></i></b></p>
+</div>
+
+<p id="active-message" style="display:none">
+<font color="red"><blink>Upgrading... please wait ...</blink></font>
+</p>
+
+<form
+ name="upgrade_form"
+ method="POST"
+ action="{%url codereview.views.admin_datastore_upgrade%}">
+<table>
+{{form}}
+<tr><td><input type="submit" value="Upgrade" /></td></tr>
+</table>
+</form>
+
+<script type="text/javascript"><!--
+if (document.upgrade_form.really.value == 'UPGRADE') {
+ var hide;
+
+ hide = document.getElementById('warning-message');
+ hide.style.display = 'none';
+
+ hide = document.getElementById('active-message');
+ hide.style.display = 'inline';
+
+ setTimeout('document.upgrade_form.submit()', 500);
+}
+// -->
+</script>
+
+{%endblock%}