Files
Discord-ai-chatbot/templates/user_giveaways.html
SimolZimol d3de7aa098 modified: templates/admin_dashboard.html
modified:   templates/admin_giveaways.html
	modified:   templates/user_dashboard.html
	modified:   templates/user_giveaways.html
2024-09-12 14:38:16 +02:00

76 lines
2.7 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Giveaways</title>
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<style>
.container {
margin-top: 50px;
}
</style>
</head>
<body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Multus Bot - My Giveaways</a>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
<a class="nav-link" href="{{ url_for('user_dashboard') }}">User Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ url_for('logout') }}">Logout</a>
</li>
</ul>
</div>
</nav>
<!-- Giveaways List -->
<div class="container">
<h1 class="text-center">Giveaways You've Won</h1>
<div class="row mt-5">
<div class="col-md-12">
{% if giveaways %}
<table class="table table-bordered">
<thead class="thead-dark">
<tr>
<th>ID</th>
<th>Platform</th>
<th>Name</th>
<th>Game Key</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for giveaway in giveaways %}
<tr>
<td>{{ giveaway.id }}</td>
<td>{{ giveaway.platform }}</td>
<td>{{ giveaway.name }}</td>
<td>{{ giveaway.game_key }}</td>
<td>
<form method="POST" action="{{ url_for('redeem_giveaway', giveaway_id=giveaway.id) }}">
<button type="submit" class="btn btn-success">Redeem Prize</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
<p class="text-center">You have not won any giveaways yet.</p>
{% endif %}
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>