-
-
Notifications
You must be signed in to change notification settings - Fork 320
/
Copy pathupdate.blade.php
122 lines (107 loc) · 3.69 KB
/
update.blade.php
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Error - Database File Versions mismatch</title>
<!-- Fonts -->
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<!-- Styles -->
<style>
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Nunito', sans-serif;
font-weight: 100;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
flex-flow: row wrap;;
justify-content: center;
align-content: center;
}
.position-ref {
position: relative;
}
.code {
font-size: 36px;
border-right: 2px solid;
padding: 0 15px 0 15px;
text-align: center;
}
.message {
font-size: 18px;
text-align: left;
}
.form {
width: 100%;
padding-top: 18px;
text-align: center;
}
input {
border: #646b6f 1px solid;
border-radius: 5px;
-webkit-transition: all 0.30s ease-in-out;
-moz-transition: all 0.30s ease-in-out;
-ms-transition: all 0.30s ease-in-out;
-o-transition: all 0.30s ease-in-out;
outline: none;
}
input:hover, input:focus {
border: #aaa;
box-shadow: 0 0 5px rgba(81, 203, 238, 1);
border: 1px solid rgba(81, 203, 238, 1);
}
button {
border: #646b6f 1px solid;
background: #fff;
border-radius: 5px;
padding-left: 10px;
padding-right: 10px;
}
button:hover {
color: #fff;
background: #646b6f;
cursor: pointer;
}
/* Inserting this collapsed row between two flex items will make
* the flex item that comes after it break to a new row */
.break {
flex-basis: 100%;
height: 0; margin: 0; border: 0;
}
</style>
</head>
<body>
<div class="flex-center position-ref full-height">
<div class="code">{{ $code }}</div>
<div class="message" style="padding: 10px;">{!! $message !!}</div>
<div class="form">
<form method="POST" action="{{ route('migrate') }}">
@csrf
<input name="username" type="text" placeholder="admin username">
<input name="password" type="password" placeholder="admin password">
<button type="submit" class="submit">Migrate!</button>
</form>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function(event) {
document.querySelector("form").addEventListener("submit", function(e){
document.querySelector("form").hidden = true;
var text = document.createElement("div");
text.innerHTML = "Migration started. <b>DO NOT REFRESH THE PAGE</b>.";
document.querySelector(".form").appendChild(text);
// e.preventDefault(); //stop form from submitting
});
});
</script>
</body>
</html>