aboutsummaryrefslogtreecommitdiffstats
path: root/Web/Server/templates
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Web/Server/templates/index.html43
-rw-r--r--Web/Server/templates/upload.html37
2 files changed, 43 insertions, 37 deletions
diff --git a/Web/Server/templates/index.html b/Web/Server/templates/index.html
new file mode 100644
index 0000000..70a282b
--- /dev/null
+++ b/Web/Server/templates/index.html
@@ -0,0 +1,43 @@
+<html>
+ <head>
+ <link rel="stylesheet" href="/static/Server.css">
+ <script type="text/javascript" src="/static/Server.js"></script>
+ </head>
+ <body>
+ <title>ANDI'S PIE</title>
+ <div id="upload">
+ <h2>Select a file to upload</h2>
+ <p>
+ {% with messages = get_flashed_messages() %}
+ {% if messages %}
+ <ul class=flashes>
+ {% for message in messages %}
+ <li>{{ message }}</li>
+ {% endfor %}
+ </ul>
+ {% endif %}
+ {% endwith %}
+ </p>
+
+ <form method="post" action="/upload" enctype="multipart/form-data">
+ <dl>
+ <p>
+ <input type="file" name="file" autocomplete="off" required>
+ </p>
+ </dl>
+ <p>
+ <input type="submit" value="Submit" onclick="showLoad()">
+ </p>
+ </form>
+ </div>
+
+ <div id="message"></div>
+
+ {% if results %}
+ <form method="get" action="/results">
+ <button type="submit">Download!</button>
+ </form>
+ {% endif %}
+
+ </body>
+</html> \ No newline at end of file
diff --git a/Web/Server/templates/upload.html b/Web/Server/templates/upload.html
deleted file mode 100644
index 38c4a09..0000000
--- a/Web/Server/templates/upload.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<html>
- <head>
- <link rel="stylesheet" href="/static/Server.css">
- <script type="text/javascript" src="/static/Server.js"></script>
- </head>
- <body>
- <title>Python Flask File Upload Example</title>
- <h2>Select a file to upload</h2>
- <p id = "message">
- {% with messages = get_flashed_messages() %}
- {% if messages %}
- <ul class=flashes>
- {% for message in messages %}
- <li>{{ message }}</li>
- {% endfor %}
- </ul>
- {% endif %}
- {% endwith %}
- </p>
- <form method="post" action="/upload" enctype="multipart/form-data">
- <dl>
- <p>
- <input type="file" name="file" autocomplete="off" required>
- </p>
- </dl>
- <p>
- <input type="submit" value="Submit" onclick="showLoad()">
- </p>
- </form>
-
- {% if results %}
- <form method="get" action="/results">
- <button type="submit">Download!</button>
- </form>
- {% endif %}
- </body>
-</html> \ No newline at end of file