125 lines
5.7 KiB
HTML
125 lines
5.7 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Dashboard{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="dashboard-wrapper" style="max-width: 1200px; margin: 30px auto;">
|
|
<div class="dashboard-container" style="display: flex; justify-content: space-between; gap: 20px;">
|
|
<style>
|
|
.dashboard-box {
|
|
background: rgba(255, 255, 255, 0.6);
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
width: 100%;
|
|
max-width: 300px;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
.dashboard-box h3 {
|
|
margin-bottom: 15px;
|
|
}
|
|
.dashboard-box form, .dashboard-box a {
|
|
margin-bottom: 10px;
|
|
width: 100%;
|
|
}
|
|
.dashboard-box button, .dashboard-box a {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
|
|
<div class="dashboard-box">
|
|
<h3>Administration</h3>
|
|
{% if 'user_management' in session['permissions'] %}
|
|
<form action="{{ url_for('user_management') }}" method="get">
|
|
<button type="submit" style="background-color: #1ac583;">👤 User Management</button>
|
|
</form>
|
|
{% endif %}
|
|
{% if 'delete_requests' in session['permissions'] %}
|
|
<form action="{{ url_for('delete_requests') }}" method="get">
|
|
<button type="submit" style="background-color: #ff0000;">🗑️ Delete-Requests</button>
|
|
</form>
|
|
{% endif %}
|
|
{% if 'logs' in session['permissions'] %}
|
|
<form action="{{ url_for('logs') }}" method="get">
|
|
<button type="submit" style="background-color: #007BFF;">📜 Logs</button>
|
|
</form>
|
|
{% endif %}
|
|
{% if 'changelogs' in session['permissions'] %}
|
|
<form action="{{ url_for('add_changelog') }}" method="get">
|
|
<button type="submit" style="background-color: #FFD700;">📝 Add-Changelog</button>
|
|
</form>
|
|
{% endif %}
|
|
<form action="{{ url_for('view_changelogs') }}" method="get">
|
|
<button type="submit" style="background-color: #00bfff;">📋 Changelogs</button>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="dashboard-box">
|
|
<h3>Private Tools</h3>
|
|
{% if 'discord_bots' in session['permissions'] %}
|
|
<form action="{{ url_for('dc_bots') }}" method="get">
|
|
<button type="submit" style="background-color: #0b55c4;">🤖 Discord Bots</button>
|
|
</form>
|
|
{% endif %}
|
|
{% if 'appointments' in session['permissions'] %}
|
|
<form action="{{ url_for('appointments') }}" method="get">
|
|
<button type="submit" style="background-color: #1ac583;">📅 Termin Planer</button>
|
|
</form>
|
|
{% endif %}
|
|
{% if 'view_license_keys' in session['permissions'] %}
|
|
<form action="{{ url_for('license_keys') }}" method="get">
|
|
<button type="submit" style="background-color: #4d0c97;">🛡️ ML Cheat Scanner</button>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<div class="dashboard-box">
|
|
<h3>Moonlab Tools</h3>
|
|
{% if 'intranet' in session['permissions'] %}
|
|
<form action="https://intra.moon-lab.de" method="get" target="_blank">
|
|
<button type="submit" style="background-color: #4b0082;">🌐 Moonlab-Intranet</button>
|
|
</form>
|
|
{% endif %}
|
|
{% if 'create_event_feedback' in session['permissions'] %}
|
|
<form action="{{ url_for('event_feedback') }}" method="get">
|
|
<button type="submit" style="background-color: #007BFF;">📝 Event Feedback</button>
|
|
</form>
|
|
{% endif %}
|
|
{% if 'view_event_feedback' in session['permissions'] %}
|
|
<form action="{{ url_for('view_event_feedbacks') }}" method="get">
|
|
<button type="submit" style="background-color: #007BFF;">📊 Event Feedback ansehen</button>
|
|
</form>
|
|
{% endif %}
|
|
{% if "verify_age" in session["permissions"] %}
|
|
<form action="{{ url_for('verify_age') }}" method="get">
|
|
<button type="submit" style="background-color: #5de700;">🎂 Altersüberprüfung</button>
|
|
</form>
|
|
{% endif %}
|
|
{% if 'events' in session['permissions'] %}
|
|
<form action="{{ url_for('events') }}" method="get">
|
|
<button type="submit" style="background-color: #ff00ff;">🎉 Events</button>
|
|
</form>
|
|
{% endif %}
|
|
{% if 'ip_checker' in session['permissions'] %}
|
|
<form action="{{ url_for('ip_checker') }}" method="get">
|
|
<button type="submit" style="background-color: #ff8c00;">🌍 IP Checker</button>
|
|
</form>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<div style="display: flex; justify-content: center; gap: 20px; margin-top: 20px;">
|
|
<form action="{{ url_for('logout') }}" method="get">
|
|
<button type="submit" style="background-color: #ff4d4d;">🚪 Logout</button>
|
|
</form>
|
|
<form action="{{ url_for('settings') }}" method="get">
|
|
<button type="submit" style="background-color: #4b0082;">⚙️ Einstellungen</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|