modified: app.py

new file:   templates/server_admin_dashboard.html
	new file:   templates/server_giveaways.html
This commit is contained in:
SimolZimol
2024-10-24 15:33:27 +02:00
parent 45dc6c10af
commit b793dd0503
3 changed files with 117 additions and 37 deletions

View File

@@ -0,0 +1,29 @@
{% 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>