modified: templates/user_giveaways.html

This commit is contained in:
SimolZimol
2024-09-12 15:37:37 +02:00
parent a22cb644b9
commit 72eb412f09

View File

@@ -4,19 +4,13 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Giveaways</title>
<title>User 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>
<a class="navbar-brand" href="#">Giveaways</a>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto">
<li class="nav-item">
@@ -29,32 +23,25 @@
</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">
<div class="container mt-5">
<h1 class="text-center">Your Won Giveaways</h1>
{% if giveaways %}
<table class="table table-bordered">
<thead class="thead-dark">
<table class="table table-striped">
<thead>
<tr>
<th>ID</th>
<th>Platform</th>
<th>Name</th>
<th>Game Key</th>
<th>Actions</th>
<th>Game</th>
<th>Redeem</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 method="POST" action="{{ url_for('redeem_giveaway', giveaway_uuid=giveaway.uuid) }}">
<button type="submit" class="btn btn-success">Redeem</button>
</form>
</td>
</tr>
@@ -65,11 +52,7 @@
<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>