Update templates/index.html
Browse files- templates/index.html +22 -0
templates/index.html
CHANGED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Rover Control</title>
|
7 |
+
</head>
|
8 |
+
<body>
|
9 |
+
<h1>Control the Rover</h1>
|
10 |
+
<form method="POST" action="/command_for_the_rover">
|
11 |
+
<button type="submit" name="forward">Move Forward</button>
|
12 |
+
<button type="submit" name="backward">Move Backward</button>
|
13 |
+
<button type="submit" name="left">Turn Left</button>
|
14 |
+
<button type="submit" name="right">Turn Right</button>
|
15 |
+
<button type="submit" name="stop">Stop</button>
|
16 |
+
</form>
|
17 |
+
|
18 |
+
{% if message %}
|
19 |
+
<p>{{ message }}</p>
|
20 |
+
{% endif %}
|
21 |
+
</body>
|
22 |
+
</html>
|