c4a483a57c
- Implemented sync_dev_hosts.sh for managing local hosts entries for development. - Created admin_instances.html for managing school instances, including creation and listing. - Developed admin_system.html for core services management, including restart and backup operations. - Added my_instance.html for users to view and manage their assigned instances. - Introduced provision_instance.sh for provisioning new instances with Docker, including Nginx configuration and SSL certificate handling.
593 lines
19 KiB
HTML
593 lines
19 KiB
HTML
|
|
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
<title>{% block title %}Digitale Schulverwaltung{% endblock %}</title>
|
|
{% block head %}
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Public+Sans:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
:root {
|
|
--bg-main: #f3f1ea;
|
|
--bg-soft: #e4e0d4;
|
|
--surface: #ffffff;
|
|
--text-main: #1f2e33;
|
|
--text-soft: #495d63;
|
|
--line: #d0d7d0;
|
|
--brand: #1c5a63;
|
|
--brand-strong: #143f46;
|
|
--accent: #b3672e;
|
|
--radius-md: 14px;
|
|
--shadow-sm: 0 10px 30px rgba(18, 40, 44, 0.08);
|
|
--shell-gutter: clamp(12px, 2.2vw, 34px);
|
|
--shell-max-width: 1240px;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
min-height: 100%;
|
|
font-family: "Public Sans", system-ui, sans-serif;
|
|
color: var(--text-main);
|
|
background: radial-gradient(circle at 88% -8%, #dbe4d9 0%, transparent 34%),
|
|
radial-gradient(circle at -5% 58%, #ece4d2 0%, transparent 40%),
|
|
var(--bg-main);
|
|
}
|
|
|
|
body {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-family: "Merriweather", Georgia, serif;
|
|
line-height: 1.16;
|
|
font-size: clamp(1.85rem, 4vw, 3.5rem);
|
|
}
|
|
|
|
h2 {
|
|
margin: 0;
|
|
font-family: "Merriweather", Georgia, serif;
|
|
line-height: 1.2;
|
|
font-size: clamp(1.5rem, 3vw, 2.5rem);
|
|
}
|
|
|
|
h3 {
|
|
margin: 0;
|
|
font-family: "Merriweather", Georgia, serif;
|
|
line-height: 1.24;
|
|
font-size: clamp(1.2rem, 2vw, 1.8rem);
|
|
}
|
|
|
|
h4 {
|
|
margin: 0;
|
|
font-family: "Merriweather", Georgia, serif;
|
|
line-height: 1.24;
|
|
font-size: clamp(1rem, 1.8vw, 1.5rem);
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
line-height: 1.6;
|
|
color: var(--text-soft);
|
|
font-size: clamp(1rem, 1.15vw, 1.12rem);
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
display: block;
|
|
}
|
|
|
|
.site-shell {
|
|
width: min(var(--shell-max-width), calc(100% - (var(--shell-gutter) * 2)));
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.site-nav {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 30;
|
|
backdrop-filter: blur(12px);
|
|
background: rgba(245, 242, 234, 0.9);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.site-nav-inner {
|
|
min-height: 82px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.brand {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.62rem;
|
|
font-family: "Merriweather", Georgia, serif;
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
letter-spacing: 0.03em;
|
|
color: var(--brand-strong);
|
|
}
|
|
|
|
.brand img {
|
|
width: 38px;
|
|
height: 38px;
|
|
border-radius: 10px;
|
|
object-fit: cover;
|
|
border: 1px solid #bccdc4;
|
|
box-shadow: 0 8px 16px rgba(19, 49, 54, 0.14);
|
|
background: #ffffff;
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1.1rem;
|
|
font-weight: 600;
|
|
color: var(--text-soft);
|
|
font-size: 0.98rem;
|
|
}
|
|
|
|
.nav-links a:hover {
|
|
color: var(--brand);
|
|
}
|
|
|
|
.nav-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.65rem;
|
|
}
|
|
|
|
.nav-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 999px;
|
|
border: 1px solid #bcd0de;
|
|
padding: 0.52rem 0.98rem;
|
|
font-weight: 700;
|
|
color: #1b4b52;
|
|
background: #ffffff;
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
|
|
.nav-btn:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 6px 16px rgba(20, 53, 58, 0.12);
|
|
}
|
|
|
|
.nav-btn.primary {
|
|
color: #ffffff;
|
|
border-color: #184f57;
|
|
background: linear-gradient(120deg, #286f78 0%, #194f56 100%);
|
|
}
|
|
|
|
.nav-dropdown {
|
|
position: relative;
|
|
}
|
|
|
|
.nav-dropdown > summary {
|
|
list-style: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.nav-dropdown > summary::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
|
|
.nav-dropdown > summary::after {
|
|
content: "▾";
|
|
margin-left: 0.45rem;
|
|
font-size: 0.72rem;
|
|
color: #5f747a;
|
|
}
|
|
|
|
.nav-dropdown[open] > summary::after {
|
|
content: "▴";
|
|
}
|
|
|
|
.dropdown-menu {
|
|
position: absolute;
|
|
right: 0;
|
|
top: calc(100% + 0.45rem);
|
|
min-width: 220px;
|
|
padding: 0.5rem;
|
|
border-radius: 12px;
|
|
border: 1px solid #ccd4cc;
|
|
background: #ffffff;
|
|
box-shadow: 0 12px 24px rgba(26, 45, 48, 0.14);
|
|
display: grid;
|
|
gap: 0.35rem;
|
|
z-index: 40;
|
|
}
|
|
|
|
.dropdown-menu a {
|
|
padding: 0.5rem 0.65rem;
|
|
border-radius: 8px;
|
|
font-weight: 600;
|
|
color: #214f55;
|
|
}
|
|
|
|
.dropdown-menu a:hover {
|
|
background: #f2f6f3;
|
|
}
|
|
|
|
.main-wrap {
|
|
flex: 1 0 auto;
|
|
padding: 2.2rem 0 3.5rem;
|
|
}
|
|
|
|
.flashes {
|
|
margin-bottom: 1rem;
|
|
display: grid;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.flash {
|
|
padding: 0.8rem 1rem;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--line);
|
|
background: var(--surface);
|
|
box-shadow: var(--shadow-sm);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.flash.success { border-left: 5px solid #0e9f6e; }
|
|
.flash.error { border-left: 5px solid #d3413e; }
|
|
.flash.info { border-left: 5px solid var(--brand); }
|
|
|
|
.cookie-banner {
|
|
position: fixed;
|
|
left: 50%;
|
|
bottom: 1rem;
|
|
transform: translateX(-50%);
|
|
width: min(900px, calc(100% - 1.5rem));
|
|
border: 1px solid #c6d0c7;
|
|
border-radius: 14px;
|
|
background: rgba(255, 255, 255, 0.98);
|
|
box-shadow: 0 16px 32px rgba(26, 45, 48, 0.2);
|
|
padding: 0.95rem;
|
|
z-index: 70;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.8rem;
|
|
animation: cookieEnter 0.35s ease;
|
|
}
|
|
|
|
.cookie-banner p {
|
|
margin: 0;
|
|
color: #315055;
|
|
font-size: 0.92rem;
|
|
}
|
|
|
|
.cookie-banner a {
|
|
color: #1b5b62;
|
|
text-decoration: underline;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.cookie-actions {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.cookie-btn {
|
|
border: 1px solid #1c5a63;
|
|
border-radius: 999px;
|
|
background: linear-gradient(120deg, #286f78 0%, #194f56 100%);
|
|
color: #ffffff;
|
|
font-weight: 700;
|
|
padding: 0.45rem 0.85rem;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cookie-btn.secondary {
|
|
border-color: #ccd5cc;
|
|
background: #ffffff;
|
|
color: #315055;
|
|
}
|
|
|
|
.cookie-banner.hidden {
|
|
display: none;
|
|
}
|
|
|
|
@keyframes cookieEnter {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateY(14px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 820px) {
|
|
.site-nav-inner {
|
|
min-height: 64px;
|
|
}
|
|
|
|
.nav-links {
|
|
display: none;
|
|
}
|
|
|
|
.nav-actions {
|
|
gap: 0.4rem;
|
|
}
|
|
|
|
.nav-btn {
|
|
padding: 0.42rem 0.72rem;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.dropdown-menu {
|
|
right: auto;
|
|
left: 0;
|
|
min-width: 200px;
|
|
}
|
|
|
|
.cookie-banner {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.cookie-actions {
|
|
width: 100%;
|
|
}
|
|
|
|
.cookie-btn {
|
|
width: 100%;
|
|
}
|
|
}
|
|
</style>
|
|
{% endblock %}
|
|
</head>
|
|
<body>
|
|
<nav class="site-nav">
|
|
<div class="site-shell site-nav-inner">
|
|
<a class="brand" href="{{ url_for('default') }}">
|
|
<img src="{{ url_for('static', filename='images/logo-1.jpeg') }}" alt="Invario Logo">
|
|
<span>Invario Schule</span>
|
|
</a>
|
|
<div class="nav-links" aria-label="Main Navigation">
|
|
<a href="{{ url_for('dienstleistungen') }}">Leistungen für Schulen</a>
|
|
<a href="{{ url_for('projekte') }}">Praxisbeispiele</a>
|
|
<a href="{{ url_for('team') }}">Team</a>
|
|
<a href="{{ url_for('kontakt') }}">Kontakt</a>
|
|
<a href="{{ url_for('inventarsystem') }}">Inventarsystem</a>
|
|
</div>
|
|
<div class="nav-actions">
|
|
{% if 'username' in session %}
|
|
<a class="nav-btn" href="{{ url_for('appointments') }}">Buchungsoption</a>
|
|
|
|
<details class="nav-dropdown">
|
|
<summary class="nav-btn">Nutzerbereich</summary>
|
|
<div class="dropdown-menu">
|
|
<a href="{{ url_for('my_licenses') }}">Meine Lizenzen</a>
|
|
<a href="{{ url_for('my_invoices') }}">Meine Rechnungen</a>
|
|
<a href="{{ url_for('my_instance_management') }}">Meine Instanz</a>
|
|
<a href="{{ url_for('user_chat') }}">Chat mit Admin</a>
|
|
<a href="{{ url_for('user_tickets') }}">Support Tickets</a>
|
|
</div>
|
|
</details>
|
|
|
|
{% if session.get('is_admin') %}
|
|
<details class="nav-dropdown">
|
|
<summary class="nav-btn">Admin</summary>
|
|
<div class="dropdown-menu">
|
|
<a href="{{ url_for('admin_dashboard') }}">Dashboard</a>
|
|
<a href="{{ url_for('admin_users') }}">Userverwaltung</a>
|
|
<a href="{{ url_for('admin_licenses') }}">Lizenzverwaltung</a>
|
|
<a href="{{ url_for('admin_license_keys') }}">Lizenz-Key Verwaltung</a>
|
|
<a href="{{ url_for('admin_invoices') }}">Rechnungsverwaltung</a>
|
|
<a href="{{ url_for('admin_chats') }}">Admin-Chat</a>
|
|
<a href="{{ url_for('admin_tickets') }}">Support-Center</a>
|
|
<a href="{{ url_for('admin_system_tools') }}">System-Tools</a>
|
|
<a href="{{ url_for('admin_blog') }}">Blog verwalten</a>
|
|
<a href="{{ url_for('admin_team') }}">Team Cards</a>
|
|
<a href="{{ url_for('admin_instances') }}">Schul-Instanzen</a>
|
|
</div>
|
|
</details>
|
|
{% endif %}
|
|
|
|
<a class="nav-btn" href="{{ url_for('logout') }}">Logout</a>
|
|
{% else %}
|
|
<a class="nav-btn" href="{{ url_for('blog') }}">Neuigkeiten</a>
|
|
<a class="nav-btn" href="{{ url_for('login') }}">Login</a>
|
|
<a class="nav-btn primary" href="{{ url_for('register') }}">Registrieren</a>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<main class="site-shell main-wrap">
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<div class="flashes">
|
|
{% for category, message in messages %}
|
|
<div class="flash {{ category }}">{{ message }}</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|
|
{% block content %}{% endblock %}
|
|
</main>
|
|
<footer class="site-footer">
|
|
<div class="site-shell footer-inner">
|
|
<div class="footer-content">
|
|
<div class="footer-section">
|
|
<h4>Über uns</h4>
|
|
<p>Digitale Verwaltungsabläufe für Bildungseinrichtungen in Deutschland.</p>
|
|
</div>
|
|
<div class="footer-section">
|
|
<h4>Schnelllinks</h4>
|
|
<ul class="footer-links">
|
|
<li><a href="{{ url_for('default') }}">Start</a></li>
|
|
<li><a href="{{ url_for('dienstleistungen') }}">Leistungsübersicht</a></li>
|
|
<li><a href="{{ url_for('team') }}">Team</a></li>
|
|
<li><a href="{{ url_for('blog') }}">Neuigkeiten</a></li>
|
|
{% if 'username' in session %}
|
|
<li><a href="{{ url_for('appointments') }}">Buchungsoption</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
<div class="footer-section">
|
|
<h4>Rechtliches</h4>
|
|
<ul class="footer-links">
|
|
<li><a href="{{ url_for('datenschutz') }}">Datenschutz</a></li>
|
|
<li><a href="{{ url_for('impressum') }}">Impressum</a></li>
|
|
<li><a href="{{ url_for('nutzungsbedingungen') }}">Nutzungsbedingungen</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="footer-bottom">
|
|
<p>© 2026 Invario. Alle Rechte vorbehalten.</p>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
.site-footer {
|
|
background: linear-gradient(135deg, var(--brand-strong) 0%, #1c5a63 100%);
|
|
color: #ffffff;
|
|
margin-top: auto;
|
|
padding: 3rem 0 1.5rem;
|
|
border-top: 1px solid var(--line);
|
|
}
|
|
|
|
.footer-inner {
|
|
position: relative;
|
|
z-index: 1;
|
|
display: grid;
|
|
gap: 2rem;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.footer-content {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
|
gap: 2rem;
|
|
}
|
|
|
|
.footer-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.footer-section h4 {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.footer-section p {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.footer-links {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.footer-links a {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.footer-links a:hover {
|
|
color: #ffffff;
|
|
}
|
|
|
|
.footer-bottom {
|
|
text-align: center;
|
|
padding-top: 1.5rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.footer-bottom p {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: 0.9rem;
|
|
margin: 0;
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
.footer-inner {
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.footer-content {
|
|
grid-template-columns: 1fr;
|
|
gap: 1.5rem;
|
|
}
|
|
}
|
|
</style>
|
|
</footer>
|
|
<div class="cookie-banner hidden" id="cookieBanner" role="dialog" aria-live="polite" aria-label="Cookie Hinweis">
|
|
<p>Wir verwenden Cookies, um die Website sicher und benutzerfreundlich zu betreiben. Mit "Cookies akzeptieren" wird die Nutzung bestätigt. Details in <a href="{{ url_for('datenschutz') }}">Datenschutz</a>.</p>
|
|
<div class="cookie-actions">
|
|
<button type="button" class="cookie-btn" id="cookieAcceptBtn">Cookies akzeptieren</button>
|
|
<button type="button" class="cookie-btn secondary" id="cookieDeclineBtn">Ablehnen und zu Ecosia</button>
|
|
</div>
|
|
</div>
|
|
<!-- Mobile compatibility scripts -->
|
|
<script src="{{ url_for('static', filename='js/mobile_compatibility.js') }}"></script>
|
|
<script src="{{ url_for('static', filename='js/ios_fixes.js') }}"></script>
|
|
<script>
|
|
(function () {
|
|
var banner = document.getElementById("cookieBanner");
|
|
var acceptBtn = document.getElementById("cookieAcceptBtn");
|
|
var declineBtn = document.getElementById("cookieDeclineBtn");
|
|
if (!banner || !acceptBtn || !declineBtn) {
|
|
return;
|
|
}
|
|
|
|
var consentKey = "cookie_consent_v1";
|
|
|
|
function hasConsent() {
|
|
return window.localStorage.getItem(consentKey) === "accepted" || document.cookie.indexOf("cookie_consent=accepted") !== -1;
|
|
}
|
|
|
|
function setConsent() {
|
|
window.localStorage.setItem(consentKey, "accepted");
|
|
document.cookie = "cookie_consent=accepted; Max-Age=" + (60 * 60 * 24 * 365) + "; Path=/; SameSite=Strict";
|
|
}
|
|
|
|
if (!hasConsent()) {
|
|
banner.classList.remove("hidden");
|
|
}
|
|
|
|
acceptBtn.addEventListener("click", function () {
|
|
setConsent();
|
|
banner.classList.add("hidden");
|
|
});
|
|
|
|
declineBtn.addEventListener("click", function () {
|
|
window.location.href = "https://www.ecosia.org";
|
|
});
|
|
})();
|
|
</script>
|
|
</body>
|
|
</html> |