mirror of
https://github.com/FAUSheppy/tmnf-replay-server.git
synced 2025-12-06 07:01:37 +01:00
wip: buttons and upload errors
This commit is contained in:
3
templates/home-button.html
Normal file
3
templates/home-button.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<button class="mt-4 mb-4 btn btn-secondary" onclick="window.location.href='/'">
|
||||
Back
|
||||
</button>
|
||||
@@ -2,6 +2,7 @@
|
||||
{% include "head.html" %}
|
||||
</head>
|
||||
<body>
|
||||
{% include "upload-button.html" %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
|
||||
@@ -2,5 +2,7 @@
|
||||
{% include "head.html" %}
|
||||
</head>
|
||||
<body>
|
||||
{% include "upload-button.html" %}
|
||||
{% include "home-button.html" %}
|
||||
{% include "datatable.html" %}
|
||||
</body>
|
||||
|
||||
3
templates/upload-button.html
Normal file
3
templates/upload-button.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<button class="mt-4 mb-4 btn btn-secondary" onclick="window.location.href='/upload'">
|
||||
Upload
|
||||
</button>
|
||||
17
templates/upload-post.html
Normal file
17
templates/upload-post.html
Normal file
@@ -0,0 +1,17 @@
|
||||
<head>
|
||||
{% include "head.html" %}
|
||||
</head>
|
||||
<body>
|
||||
{% include "home-button.html" %}
|
||||
<div class="mb-5 container">
|
||||
{% for r in results %}
|
||||
<b>{{ r[0] }}</b>
|
||||
{% if r[1] %}
|
||||
<i style="color: red;">{{ r[1] }}</i>
|
||||
{% else %}
|
||||
<i style="color: green;">Success</i>
|
||||
{% endif %}
|
||||
<br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</body>
|
||||
@@ -1,5 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
{% include 'home-button.html' %}
|
||||
<form action="/upload" method="POST" enctype="multipart/form-data">
|
||||
<input type="file" name="file[]" multiple=""/>
|
||||
<input type="submit"/>
|
||||
|
||||
Reference in New Issue
Block a user