Files
Discord-ai-chatbot/templates/server_giveaways.html
SimolZimol 7d3493b3c5 modified: templates/admin_giveaways.html
modified:   templates/edit_giveaway.html
	modified:   templates/edit_user.html
	new file:   templates/footer.html
	modified:   templates/global_admin_dashboard.html
	modified:   templates/leaderboard.html
	modified:   templates/logs.html
	modified:   templates/redeem_giveaway.html
	modified:   templates/server_admin_dashboard.html
	modified:   templates/server_giveaways.html
	modified:   templates/settings.html
	modified:   templates/user_dashboard.html
	modified:   templates/user_giveaways.html
	modified:   templates/user_landing_page.html
	modified:   templates/user_server_data.html
	modified:   templates/users.html
2025-08-24 00:43:13 +02:00

44 lines
1.4 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 Giveaways</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>Giveaways for Server {{ g.guild_id }}</h1>
<table class="table mt-4">
<thead>
<tr>
<th>Name</th>
<th>Platform</th>
<th>Winner</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for giveaway in g.giveaways %}
<tr>
<td>{{ giveaway.name }}</td>
<td>{{ giveaway.platform }}</td>
<td>{{ giveaway.winner_dc_id }}</td>
<td>
<a href="{{ url_for('edit_giveaway', guild_id=guild_id, uuid=giveaway['uuid']) }}" class="btn btn-primary">Edit Giveaway</a>
<a href="{{ url_for('delete_giveaway', giveaway_id=giveaway.id, guild_id=g.guild_id) }}" class="btn btn-danger">Delete</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% include 'footer.html' %}
</body>
</html>