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
This commit is contained in:
SimolZimol
2024-10-25 09:56:14 +02:00
parent 488b0903fe
commit 2733d8971a
5 changed files with 80 additions and 222 deletions

View File

@@ -1,29 +1,43 @@
{% include 'navigation.html' %}
<div class="container mt-5">
<h1>Giveaways for Server {{ guild_id }}</h1>
<a href="{{ url_for('add_giveaway', guild_id=guild_id) }}" class="btn btn-primary">Add Giveaway</a>
<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 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>
<!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>