modified: app.py
new file: templates/server_admin_dashboard.html new file: templates/server_giveaways.html
This commit is contained in:
29
templates/server_giveaways.html
Normal file
29
templates/server_giveaways.html
Normal 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>
|
||||
Reference in New Issue
Block a user