149 lines
4.6 KiB
HTML
149 lines
4.6 KiB
HTML
{% if session['theme'] == 'darkmode' %}
|
|
{% extends "base_dark.html" %}
|
|
{% else %}
|
|
{% extends "base.html" %}
|
|
{% endif %}
|
|
|
|
{% block title %}License Keys{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if session['theme'] == 'darkmode' %}
|
|
<style>
|
|
.license-container {
|
|
background: rgba(20, 20, 20, 0.95);
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.7);
|
|
max-width: 800px;
|
|
width: 100%;
|
|
min-height: 300px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
text-align: center;
|
|
}
|
|
.license-container form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.license-container form label {
|
|
margin-top: 10px;
|
|
width: 100%;
|
|
text-align: left;
|
|
color: #00fff7;
|
|
}
|
|
.license-container form input,
|
|
.license-container form textarea,
|
|
.license-container form select {
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin-top: 5px;
|
|
border: 1px solid #333;
|
|
border-radius: 4px;
|
|
background: #222;
|
|
color: #fff;
|
|
}
|
|
.license-btn-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
align-items: center;
|
|
}
|
|
.license-btn-row .neon-button {
|
|
width: 220px;
|
|
min-width: 120px;
|
|
max-width: 100%;
|
|
}
|
|
</style>
|
|
<div style="display:flex; flex-direction:column; align-items:center; width:100%;">
|
|
<div class="license-container">
|
|
<h2>License Keys</h2>
|
|
<div class="license-btn-row">
|
|
{% if 'create_license_key' in session['permissions'] %}
|
|
<form action="{{ url_for('create_license_key') }}" method="get">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit" class="neon-button neon1"><span>License Key erstellen</span></button>
|
|
</form>
|
|
{% endif %}
|
|
<form action="{{ url_for('get_data') }}" method="get">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit" class="neon-button neon2"><span>Datenbank Einträge</span></button>
|
|
</form>
|
|
<form action="{{ url_for('dashboard') }}" method="get">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit" class="neon-button neon3"><span>Zurück</span></button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<style>
|
|
.license-container {
|
|
background: rgba(255,255,255,0.9);
|
|
padding: 30px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
|
max-width: 800px;
|
|
width: 100%;
|
|
min-height: 300px;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
text-align: center;
|
|
}
|
|
.license-container form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.license-container form label {
|
|
margin-top: 10px;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
.license-container form input,
|
|
.license-container form textarea,
|
|
.license-container form select {
|
|
width: 100%;
|
|
padding: 10px;
|
|
margin-top: 5px;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
.license-btn-row {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-top: 20px;
|
|
align-items: center;
|
|
}
|
|
.license-btn-row button {
|
|
width: 220px;
|
|
min-width: 120px;
|
|
max-width: 100%;
|
|
}
|
|
</style>
|
|
<div style="display:flex; flex-direction:column; align-items:center; width:100%;">
|
|
<div class="license-container">
|
|
<h2>License Keys</h2>
|
|
<div class="license-btn-row">
|
|
{% if 'create_license_key' in session['permissions'] %}
|
|
<form action="{{ url_for('create_license_key') }}" method="get">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit">License Key erstellen</button>
|
|
</form>
|
|
{% endif %}
|
|
<form action="{{ url_for('get_data') }}" method="get">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit">Datenbank Einträge</button>
|
|
</form>
|
|
<form action="{{ url_for('dashboard') }}" method="get">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
<button type="submit">Zurück</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|