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> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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"> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<style>
.container {
margin-top: 50px;
}
</style>
</head> </head>
<body> <body>
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> <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"> <div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav ml-auto"> <ul class="navbar-nav ml-auto">
<li class="nav-item"> <li class="nav-item">
@@ -29,32 +23,25 @@
</div> </div>
</nav> </nav>
<!-- Giveaways List --> <div class="container mt-5">
<div class="container"> <h1 class="text-center">Your Won Giveaways</h1>
<h1 class="text-center">Giveaways You've Won</h1>
<div class="row mt-5">
<div class="col-md-12">
{% if giveaways %} {% if giveaways %}
<table class="table table-bordered"> <table class="table table-striped">
<thead class="thead-dark"> <thead>
<tr> <tr>
<th>ID</th>
<th>Platform</th> <th>Platform</th>
<th>Name</th> <th>Game</th>
<th>Game Key</th> <th>Redeem</th>
<th>Actions</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{% for giveaway in giveaways %} {% for giveaway in giveaways %}
<tr> <tr>
<td>{{ giveaway.id }}</td>
<td>{{ giveaway.platform }}</td> <td>{{ giveaway.platform }}</td>
<td>{{ giveaway.name }}</td> <td>{{ giveaway.name }}</td>
<td>{{ giveaway.game_key }}</td>
<td> <td>
<form method="POST" action="{{ url_for('redeem_giveaway', giveaway_id=giveaway.id) }}"> <form method="POST" action="{{ url_for('redeem_giveaway', giveaway_uuid=giveaway.uuid) }}">
<button type="submit" class="btn btn-success">Redeem Prize</button> <button type="submit" class="btn btn-success">Redeem</button>
</form> </form>
</td> </td>
</tr> </tr>
@@ -65,11 +52,7 @@
<p class="text-center">You have not won any giveaways yet.</p> <p class="text-center">You have not won any giveaways yet.</p>
{% endif %} {% endif %}
</div> </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> </body>
</html> </html>