776deaec97
- Added a quick admin link section in the admin dashboard for managing team cards. - Updated the admin licenses template to correct German language spelling. - Improved the appointments template with conditional rendering for test package options. - Enhanced the base template with a logo image and adjusted brand styling. - Updated the license management template for consistent German language usage. - Removed the tutorial template and replaced it with a new admin team management template. - Introduced a new admin team management page allowing for the addition, editing, and deletion of team members.
157 lines
4.7 KiB
HTML
157 lines
4.7 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}Buchungsoptionen{% endblock %}
|
|
|
|
{% block head %}
|
|
{{ super() }}
|
|
<style>
|
|
.packages-hero {
|
|
background: linear-gradient(140deg, #f6f2e6 0%, #e8efe4 55%, #dfe9ef 100%);
|
|
border: 1px solid #ced8d1;
|
|
border-radius: 18px;
|
|
padding: 1.4rem;
|
|
box-shadow: 0 14px 34px rgba(16, 36, 47, 0.08);
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.packages-hero h1 {
|
|
color: #173f57;
|
|
font-size: clamp(1.65rem, 3.2vw, 2.45rem);
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
|
|
.packages-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 0.9rem;
|
|
}
|
|
|
|
.package-card {
|
|
background: #ffffff;
|
|
border: 1px solid #d5e0e8;
|
|
border-radius: 16px;
|
|
padding: 1rem;
|
|
box-shadow: 0 10px 24px rgba(23, 44, 57, 0.05);
|
|
display: grid;
|
|
gap: 0.7rem;
|
|
}
|
|
|
|
.package-name {
|
|
margin: 0;
|
|
color: #184560;
|
|
font-size: 1.35rem;
|
|
}
|
|
|
|
.package-headline {
|
|
color: #3a6177;
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.feature-list {
|
|
margin: 0;
|
|
padding-left: 1.1rem;
|
|
color: #456274;
|
|
display: grid;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.package-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.55rem;
|
|
}
|
|
|
|
.btn {
|
|
border: 1px solid #0d4f77;
|
|
background: linear-gradient(120deg, #0d6294 0%, #0b476a 100%);
|
|
color: #ffffff;
|
|
border-radius: 999px;
|
|
padding: 0.45rem 0.88rem;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
font: inherit;
|
|
}
|
|
|
|
.btn.secondary {
|
|
border-color: #9ab5c8;
|
|
background: #f2f8fc;
|
|
color: #275a78;
|
|
}
|
|
|
|
.notice {
|
|
margin-top: 1rem;
|
|
background: #ffffff;
|
|
border: 1px solid #d4e0e9;
|
|
border-radius: 14px;
|
|
padding: 0.9rem;
|
|
color: #274f65;
|
|
}
|
|
|
|
.notice strong {
|
|
color: #173f57;
|
|
}
|
|
|
|
@media (max-width: 980px) {
|
|
.packages-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<section class="packages-hero">
|
|
<h1>Buchungsoptionen als Softwarepakete</h1>
|
|
<p>Alle Pakete sind frei einsehbar, auch ohne Admin. Die Testversion kann nur mit aktivem Konto gestartet werden.</p>
|
|
<p>Jedes Paket basiert auf derselben Sicherheitsarchitektur mit Rollenrechten, geschützten Sessions und nachvollziehbaren Aktionen.</p>
|
|
</section>
|
|
|
|
<section class="packages-grid">
|
|
{% for package in software_packages %}
|
|
<article class="package-card">
|
|
<h2 class="package-name">{{ package.name }}</h2>
|
|
<p class="package-headline">{{ package.headline }}</p>
|
|
<ul class="feature-list">
|
|
{% for feature in package.features %}
|
|
<li>{{ feature }}</li>
|
|
{% endfor %}
|
|
</ul>
|
|
<div class="package-actions">
|
|
{% if 'username' in session %}
|
|
{% if package.slug == 'test' %}
|
|
<form method="POST" action="{{ url_for('start_test_package') }}">
|
|
<input type="hidden" name="package" value="{{ package.slug }}">
|
|
<button class="btn" type="submit">Testversion starten</button>
|
|
</form>
|
|
{% else %}
|
|
<form method="POST" action="{{ url_for('book_option_package') }}">
|
|
<input type="hidden" name="package" value="{{ package.slug }}">
|
|
<button class="btn" type="submit">Option buchen</button>
|
|
</form>
|
|
{% endif %}
|
|
{% else %}
|
|
{% if package.slug == 'test' %}
|
|
<a class="btn secondary" href="{{ url_for('login') }}">Mit Konto testen</a>
|
|
{% else %}
|
|
<a class="btn secondary" href="{{ url_for('login') }}">Mit Konto buchen</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</article>
|
|
{% endfor %}
|
|
</section>
|
|
|
|
<section class="notice">
|
|
{% if 'username' in session %}
|
|
{% if active_test_license %}
|
|
<p><strong>Aktive Testversion:</strong> {{ active_test_license.plan }} | Key: {{ active_test_license.license_key }} | Gültig bis: {{ active_test_license.valid_until }}</p>
|
|
{% else %}
|
|
<p><strong>Hinweis:</strong> Für Ihr Konto ist noch keine Testversion aktiv. Starten Sie oben die Testversion beim Paket Testversion.</p>
|
|
{% endif %}
|
|
{% else %}
|
|
<p><strong>Hinweis:</strong> Bitte einloggen oder registrieren, um die Testversion zu starten.</p>
|
|
{% endif %}
|
|
</section>
|
|
{% endblock %}
|