aboutsummaryrefslogtreecommitdiffstats
path: root/Web/Server/templates/index.html
diff options
context:
space:
mode:
authorDat Nguyen <nguy2854@umn.edu>2019-11-29 21:59:28 -0600
committerDat Nguyen <nguy2854@umn.edu>2019-11-29 21:59:28 -0600
commit374ca77b2a7a093537515607d5f10226fef06e29 (patch)
tree2614e695354d0139e294132c8febe116880f492a /Web/Server/templates/index.html
parentImprove logging: add timestamps for each log. Add a new function to add other... (diff)
downloadee4511w-374ca77b2a7a093537515607d5f10226fef06e29.tar
ee4511w-374ca77b2a7a093537515607d5f10226fef06e29.tar.gz
ee4511w-374ca77b2a7a093537515607d5f10226fef06e29.tar.bz2
ee4511w-374ca77b2a7a093537515607d5f10226fef06e29.tar.lz
ee4511w-374ca77b2a7a093537515607d5f10226fef06e29.tar.xz
ee4511w-374ca77b2a7a093537515607d5f10226fef06e29.tar.zst
ee4511w-374ca77b2a7a093537515607d5f10226fef06e29.zip
some aesthetics
Diffstat (limited to 'Web/Server/templates/index.html')
-rw-r--r--Web/Server/templates/index.html69
1 files changed, 29 insertions, 40 deletions
diff --git a/Web/Server/templates/index.html b/Web/Server/templates/index.html
index 70a282b..1350fdd 100644
--- a/Web/Server/templates/index.html
+++ b/Web/Server/templates/index.html
@@ -1,43 +1,32 @@
-<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>
+{% extends "base.html" %}
+
+{% block content %}
+ <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="submit" value="Submit" onclick="showLoad()">
+ <input id="choose_file" type="file" name="file" autocomplete="off" required>
</p>
- </form>
- </div>
-
- <div id="message"></div>
-
- {% if results %}
- <form method="get" action="/results">
- <button type="submit">Download!</button>
- </form>
- {% endif %}
+ </dl>
+ <p>
+ <input id="submit" type="submit" value="Submit" onclick="showLoad()">
+ </p>
+ </form>
+ </div>
+
+ <div id="message"></div>
- </body>
-</html> \ No newline at end of file
+{% endblock %}