templates

This commit is contained in:
alex 2024-12-04 13:39:09 +05:00
parent d6934329de
commit 127351bb6d
2 changed files with 40 additions and 0 deletions

20
templates/search.html Normal file
View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Search Tracking</title>
</head>
<body>
<h2>Search Tracking Number</h2>
<p><strong>Uploaded File:</strong> {{ uploaded_file_name }}</p>
<form action="/search" method="post">
<label for="tracking_no">Enter Tracking No:</label>
<input type="text" name="tracking_no" id="tracking_no" required>
<br><br>
<button type="submit">Search</button>
</form>
<hr>
{{ result_html|safe }}
</body>
</html>

20
templates/upload.html Normal file
View File

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Upload File</title>
</head>
<body>
<h2>Upload Excel File</h2>
<form action="/" method="post" enctype="multipart/form-data">
<label for="file">Choose file:</label>
<input type="file" name="file" id="file" required>
<br><br>
<button type="submit">Upload</button>
</form>
{% if error %}
<p style="color: red;">{{ error }}</p>
{% endif %}
</body>
</html>