48 lines
2.2 KiB
HTML
48 lines
2.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Upload Content</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<div class="container py-5">
|
|
<h1 class="text-center mb-4">Upload Content</h1>
|
|
<form method="POST" enctype="multipart/form-data">
|
|
<div class="mb-3">
|
|
<label for="target_type" class="form-label">Target Type:</label>
|
|
<select name="target_type" id="target_type" class="form-select" required>
|
|
<option value="player">Player</option>
|
|
<option value="group">Group</option>
|
|
</select>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="target_id" class="form-label">Target ID:</label>
|
|
<select name="target_id" id="target_id" class="form-select" required>
|
|
<optgroup label="Players">
|
|
{% for player in players %}
|
|
<option value="{{ player.id }}">{{ player.username }}</option>
|
|
{% endfor %}
|
|
</optgroup>
|
|
<optgroup label="Groups">
|
|
{% for group in groups %}
|
|
<option value="{{ group.id }}">{{ group.name }}</option>
|
|
{% endfor %}
|
|
</optgroup>
|
|
</select>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="files" class="form-label">Files:</label>
|
|
<input type="file" name="files" id="files" class="form-control" multiple required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="duration" class="form-label">Duration (seconds):</label>
|
|
<input type="number" name="duration" id="duration" class="form-control" required>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Upload</button>
|
|
</form>
|
|
<a href="{{ url_for('dashboard') }}" class="btn btn-secondary mt-3">Back to Dashboard</a>
|
|
</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html>
|