diff options
author | Raspberry Pi <raspberrypi@umn.edu> | 2019-11-21 16:15:35 -0600 |
---|---|---|
committer | Raspberry Pi <raspberrypi@umn.edu> | 2019-11-21 16:15:35 -0600 |
commit | 85b09cd608f0c0a4c7e7c84555f8d053d324e64c (patch) | |
tree | 15ea472af07615c756e53582958e54ae37ff8b2b /Web/Server/templates | |
parent | Rework directory structure. Modify result file printing to match requirements... (diff) | |
parent | requirements (diff) | |
download | ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar.gz ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar.bz2 ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar.lz ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar.xz ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.tar.zst ee4511w-85b09cd608f0c0a4c7e7c84555f8d053d324e64c.zip |
Merge branch 'master' of https://github.umn.edu/damic014/ee4950-inverted-pendulum
Diffstat (limited to '')
-rw-r--r-- | Web/Server/templates/index.html | 43 |
1 files changed, 43 insertions, 0 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 |