40 lines
1.9 KiB
HTML
40 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Edit Giveaway</title>
|
|
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
{% include 'navigation.html' %}
|
|
<div class="container mt-5">
|
|
<h2>Edit Giveaway - {{ giveaway.name }}</h2>
|
|
<form method="post">
|
|
<div class="form-group">
|
|
<label for="platform">Platform</label>
|
|
<input type="text" class="form-control" id="platform" name="platform" value="{{ giveaway.platform }}" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="name">Name</label>
|
|
<input type="text" class="form-control" id="name" name="name" value="{{ giveaway.name }}" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="game_key">Game Key</label>
|
|
<input type="text" class="form-control" id="game_key" name="game_key" value="{{ giveaway.game_key }}" required>
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="winner_dc_id">Winner Discord ID</label>
|
|
<input type="text" class="form-control" id="winner_dc_id" name="winner_dc_id" value="{{ giveaway.winner_dc_id }}">
|
|
</div>
|
|
<div class="form-check">
|
|
<input type="checkbox" class="form-check-input" id="aktiv" name="aktiv" {% if giveaway.aktiv %}checked{% endif %}>
|
|
<label class="form-check-label" for="aktiv">Active</label>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary mt-3">Save Changes</button>
|
|
<a href="{{ url_for('server_admin_dashboard', guild_id=guild_id) }}" class="btn btn-secondary mt-3">Back to Dashboard</a>
|
|
</form>
|
|
</div>
|
|
</body>
|
|
</html>
|