wip: buttons and upload errors

This commit is contained in:
2023-06-10 23:34:03 +02:00
parent b820c601f4
commit 589023e2ae
7 changed files with 51 additions and 10 deletions

View File

@@ -0,0 +1,3 @@
<button class="mt-4 mb-4 btn btn-secondary" onclick="window.location.href='/'">
Back
</button>

View File

@@ -2,6 +2,7 @@
{% include "head.html" %}
</head>
<body>
{% include "upload-button.html" %}
<table>
<thead>
<tr>

View File

@@ -2,5 +2,7 @@
{% include "head.html" %}
</head>
<body>
{% include "upload-button.html" %}
{% include "home-button.html" %}
{% include "datatable.html" %}
</body>

View File

@@ -0,0 +1,3 @@
<button class="mt-4 mb-4 btn btn-secondary" onclick="window.location.href='/upload'">
Upload
</button>

View 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>

View File

@@ -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"/>