38 lines
1.2 KiB
HTML
38 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Upload Content</title>
|
|
</head>
|
|
<body>
|
|
<h1>Upload Content</h1>
|
|
<form method="POST" enctype="multipart/form-data">
|
|
<label>Target Type:</label>
|
|
<select name="target_type" required>
|
|
<option value="player">Player</option>
|
|
<option value="group">Group</option>
|
|
</select><br>
|
|
|
|
<label>Target ID:</label>
|
|
<select name="target_id" 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><br>
|
|
|
|
<label>Files:</label>
|
|
<input type="file" name="files" multiple required><br>
|
|
<label>Duration (seconds):</label>
|
|
<input type="number" name="duration" required><br>
|
|
<button type="submit">Upload</button>
|
|
</form>
|
|
<a href="{{ url_for('dashboard') }}">Back to Dashboard</a>
|
|
</body>
|
|
</html>
|