modified: app.py modified: bot.py new file: templates/admin_giveaways.html new file: templates/edit_giveaway.html new file: templates/user_giveaways.html
58 lines
2.5 KiB
HTML
58 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Edit Giveaway</title>
|
|
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
|
|
</head>
|
|
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
|
<a class="navbar-brand" href="#">Multus Bot - Edit Giveaway</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('admin_giveaways') }}">Back to Giveaways</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="{{ url_for('logout') }}">Logout</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container mt-5">
|
|
<h1 class="text-center">Edit Giveaway: {{ giveaway.name }}</h1>
|
|
<form method="POST">
|
|
<div class="form-group">
|
|
<label for="platform">Platform</label>
|
|
<input type="text" class="form-control" id="platform" name="platform" value="{{ giveaway.platform }}">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="name">Giveaway Name</label>
|
|
<input type="text" class="form-control" id="name" name="name" value="{{ giveaway.name }}">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="game_key">Game Key</label>
|
|
<input type="text" class="form-control" id="game_key" name="game_key" value="{{ giveaway.game_key }}">
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="winner_dc_id">Winner Discord ID</label>
|
|
<input type="number" class="form-control" id="winner_dc_id" name="winner_dc_id" value="{{ giveaway.winner_dc_id }}">
|
|
</div>
|
|
<div class="form-group form-check">
|
|
<input type="checkbox" class="form-check-input" id="aktiv" name="aktiv" {% if giveaway.aktiv %}checked{% endif %}>
|
|
<label class="form-check-label" for="aktiv">Active</label>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary">Save Changes</button>
|
|
</form>
|
|
</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>
|