modified: app.py
modified: templates/redeem_giveaway.html modified: templates/server_giveaways.html modified: templates/user_giveaways.html
This commit is contained in:
@@ -8,38 +8,19 @@
|
||||
</head>
|
||||
<body>
|
||||
{% include 'navigation.html' %}
|
||||
|
||||
<div class="container mt-5">
|
||||
<h1 class="text-center">Giveaway Prize</h1>
|
||||
<p class="text-center">Congratulations! You have won the giveaway for <strong>{{ giveaway.name }}</strong> on
|
||||
<strong>{{ giveaway.platform }}</strong>.</p>
|
||||
<h2>Redeem Giveaway - {{ giveaway.name }}</h2>
|
||||
<p><strong>Platform:</strong> {{ giveaway.platform }}</p>
|
||||
|
||||
{% if key %}
|
||||
<!-- Wenn der Key aufgedeckt wurde -->
|
||||
<div class="card mt-4">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Your Key</h5>
|
||||
<p class="card-text">{{ key }}</p>
|
||||
<div class="alert alert-success">
|
||||
<strong>Game Key:</strong> {{ key }}
|
||||
</div>
|
||||
</div>
|
||||
<a href="{{ url_for('user_giveaways') }}" class="btn btn-primary mt-4">Back to Giveaways</a>
|
||||
{% else %}
|
||||
<!-- Wenn der Key noch nicht aufgedeckt wurde -->
|
||||
<div class="card mt-4">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Claim Your Key</h5>
|
||||
<p class="card-text">Do you want to reveal your game key? Once revealed, it will be marked as claimed and cannot be undone.</p>
|
||||
|
||||
<form method="POST">
|
||||
<button type="submit" class="btn btn-success">Reveal Key</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<a href="{{ url_for('user_giveaways') }}" class="btn btn-secondary mt-4">Back to Giveaways</a>
|
||||
<form method="post">
|
||||
<button type="submit" class="btn btn-primary">Redeem Giveaway</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user