Spaces:
Sleeping
Sleeping
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Data Files</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css"> | |
| </head> | |
| <body class="bg-dark text-white"> | |
| <div class="container mt-5"> | |
| <h1 class="text-center">Upload or Overwrite Data Files</h1> | |
| <!-- Upload Form --> | |
| <form action="{{ url_for('upload_data_file') }}" method="POST" enctype="multipart/form-data" class="mt-4"> | |
| <div class="mb-3"> | |
| <input type="file" name="file" class="form-control" required> | |
| </div> | |
| <button type="submit" class="btn btn-success">Upload</button> | |
| </form> | |
| <hr> | |
| <h2 class="mt-5">Uploaded Data Files</h2> | |
| <!-- List of Uploaded Files --> | |
| <ul class="list-group mt-3"> | |
| {% if files %} | |
| {% for file in files %} | |
| <li class="list-group-item d-flex justify-content-between align-items-center bg-secondary text-white"> | |
| {{ file }} | |
| <a href="{{ url_for('download_files', filename=file) }}" class="btn btn-sm btn-primary">Download</a> | |
| </li> | |
| {% endfor %} | |
| {% else %} | |
| <li class="list-group-item bg-secondary text-white">No files found.</li> | |
| {% endif %} | |
| </ul> | |
| </div> | |
| </body> | |
| </html> | |