summaryrefslogtreecommitdiffstats
path: root/webapp/templates/admin_datastore_upgrade.html
blob: 33aae7fff5b7c1b7ec2923c324e5456ca2a9d845 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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%}