56 lines
2.3 KiB
HTML
56 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Server Admin Dashboard</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">
|
|
<h1 class="text-center">Server Admin Dashboard for {{ g.guild_name }}</h1>
|
|
<p class="text-center">Manage server-specific settings for server <strong>{{ g.guild_id }}</strong>.</p>
|
|
|
|
<!-- Giveaway Management -->
|
|
<div class="card mt-4">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Giveaway Management</h5>
|
|
<p class="card-text">Manage and view all active giveaways for this server.</p>
|
|
<table class="table table-bordered mt-4">
|
|
<thead>
|
|
<tr>
|
|
<th>Name</th>
|
|
<th>Platform</th>
|
|
<th>Winner</th>
|
|
<th>Status</th>
|
|
<th>Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for giveaway in giveaways %}
|
|
<tr>
|
|
<td>{{ giveaway.name }}</td>
|
|
<td>{{ giveaway.platform }}</td>
|
|
<td>{{ giveaway.winner_dc_id }}</td>
|
|
<td>
|
|
{% if giveaway.aktiv %}
|
|
<span class="badge badge-success">Redeemed</span>
|
|
{% else %}
|
|
<span class="badge badge-warning">Not Redeemed</span>
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
<!-- Corrected link to the edit_giveaway route -->
|
|
<a href="{{ url_for('edit_giveaway', guild_id=g.guild_id, uuid=giveaway['uuid']) }}" class="btn btn-primary btn-sm">Edit</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|