UBS/views/admin/import.ejs
2024-12-22 17:16:53 -07:00

41 lines
1.6 KiB
Plaintext

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/assets/css/bootstrap.min.css">
<title>UBS Admin - New ban</title>
</head>
<body class="bg-dark text-light">
<div class="container">
<div class="row justify-content-center mt-5">
<div class="col-md-6 col-lg-4">
<div class="card bg-dark text-light shadow">
<div class="card-body p-4">
<h2 class="text-center mb-4">Mass Ban (Import)</h2>
<div class="alert" id="message" style="display: none;"></div>
<div class="alert alert-warning">
The import system does <strong>NOT</strong> have deduplication for CSV files. Please be sure to remove duplicate entries from your list <strong>BEFORE</strong> uploading!
</div>
<form id="banForm">
<div class="mb-3">
<label for="fileType" class="form-label">Select File Type</label>
<select class="form-select" id="fileType" name="fileType" required>
<option value="csv">CSV</option>
<option value="mfd">ModForDummies</option>
</select>
</div>
<div class="mb-3">
<label for="fileInput" class="form-label">Upload File</label>
<input type="file" class="form-control" id="fileInput" name="fileInput" accept=".csv, .txt" required>
</div>
<button type="submit" class="btn btn-primary w-100">Submit</button>
</form>
</div>
</div>
</div>
<script src="/assets/js/bootstrap.bundle.min.js"></script>
<script src="/assets/js/admin/import.js"></script>
</body>
</html>