modified: app.py
modified: templates/edit_giveaway.html
This commit is contained in:
@@ -1,57 +1,39 @@
|
||||
<!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('server_giveaways', guild_id=guild_id) }}">Back to Giveaways</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ url_for('logout') }}">Logout</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
{% include 'navigation.html' %}
|
||||
<div class="container mt-5">
|
||||
<h1 class="text-center">Edit Giveaway: {{ giveaway.name }}</h1>
|
||||
<form method="POST">
|
||||
<h2>Edit Giveaway - {{ giveaway.name }}</h2>
|
||||
<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 }}">
|
||||
<input type="text" class="form-control" id="platform" name="platform" value="{{ giveaway.platform }}" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="name">Giveaway Name</label>
|
||||
<input type="text" class="form-control" id="name" name="name" value="{{ giveaway.name }}">
|
||||
<label for="name">Name</label>
|
||||
<input type="text" class="form-control" id="name" name="name" value="{{ giveaway.name }}" required>
|
||||
</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 }}">
|
||||
<input type="text" class="form-control" id="game_key" name="game_key" value="{{ giveaway.game_key }}" required>
|
||||
</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 }}">
|
||||
<input type="text" class="form-control" id="winner_dc_id" name="winner_dc_id" value="{{ giveaway.winner_dc_id }}">
|
||||
</div>
|
||||
<div class="form-group form-check">
|
||||
<div class="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>
|
||||
<button type="submit" class="btn btn-primary mt-3">Save Changes</button>
|
||||
<a href="{{ url_for('server_admin_dashboard', guild_id=guild_id) }}" class="btn btn-secondary mt-3">Back to Dashboard</a>
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user