106 lines
3.5 KiB
HTML
106 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Lizenzdaten anzeigen</title>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
<link rel="icon" href="/static/logo.png" type="image/png">
|
|
<style>
|
|
body {
|
|
background-image: url('/static/background.png');
|
|
background-size: cover;
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
height: 100vh;
|
|
margin: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
overflow: hidden;
|
|
}
|
|
.content {
|
|
background: rgba(255, 255, 255, 0.8);
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
width: 80%;
|
|
max-width: 800px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
text-align: center;
|
|
}
|
|
.content form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.content form label {
|
|
margin-top: 10px;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
.content form input,
|
|
.content form textarea,
|
|
.content form select {
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin-top: 5px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
.content form button {
|
|
background-color: #007BFF;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 15px;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
margin-top: 20px;
|
|
}
|
|
.content form button:hover {
|
|
background-color: #0056b3;
|
|
}
|
|
.delete-button {
|
|
background-color: #FF0000;
|
|
color: white;
|
|
border: none;
|
|
padding: 10px 15px;
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
margin-top: 20px;
|
|
}
|
|
.delete-button:hover {
|
|
background-color: #CC0000;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
{% include "top_bar.html" %}
|
|
<div class="content">
|
|
<h2>Lizenzdaten für {{ license_data['ingame_name'] }}</h2>
|
|
<p><strong>Lizenzschlüssel:</strong> {{ license_data['license_key'] }}</p>
|
|
<p><strong>Status:</strong> {{ license_data['status'] }}</p>
|
|
<p><strong>Name:</strong> {{ license_data['ingame_name'] }}</p>
|
|
<p><strong>Gefundene Ordner:</strong></p>
|
|
<ul>
|
|
{% for folder in license_data["found_folders"] %}
|
|
<li>{{ folder }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
{% if 'delete_requests' in session['permissions'] %}
|
|
<form action="{{ url_for('delete_license', license_key=license_data['license_key']) }}" method="post" style="display:inline;">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit" class="delete-button">Löschen</button>
|
|
</form>
|
|
{% else %}
|
|
<form action="{{ url_for('request_delete_license', license_key=license_data['license_key']) }}" method="post" style="display:inline;">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit" class="delete-button">Löschanfrage stellen</button>
|
|
</form>
|
|
{% endif %}
|
|
<a href="/get_data" class="black-button">Zurück</a>
|
|
</div>
|
|
</body>
|
|
</html>
|