startup page seting
This commit is contained in:
37
templates/upload_content.html
Normal file
37
templates/upload_content.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!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_name in groups.keys() %}
|
||||
<option value="{{ group_name }}">{{ 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>
|
||||
Reference in New Issue
Block a user