Files
Discord-ai-chatbot/templates/server_giveaways.html
SimolZimol 2733d8971a modified: templates/global_admin_dashboard.html
modified:   templates/server_admin_dashboard.html
	modified:   templates/server_giveaways.html
	modified:   templates/user_dashboard.html
	modified:   templates/user_landing_page.html
2024-10-25 09:56:14 +02:00

44 lines
1.5 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 class="text-center">Giveaways for Server {{ guild_id }}</h1>
<a href="{{ url_for('add_giveaway', guild_id=guild_id) }}" class="btn btn-primary mb-4">Add Giveaway</a>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th>Platform</th>
<th>Winner</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>
<a href="{{ url_for('edit_giveaway', giveaway_id=giveaway.id, guild_id=guild_id) }}" class="btn btn-warning">Edit</a>
<a href="{{ url_for('delete_giveaway', giveaway_id=giveaway.id, guild_id=guild_id) }}" class="btn btn-danger">Delete</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</body>
</html>