Version 1.1.1

This commit is contained in:
2026-01-28 15:57:24 +01:00
parent 105bcc8d7a
commit 06a59bc599
11 changed files with 547 additions and 197 deletions

View File

@@ -11,6 +11,7 @@
<h2 class="text-3xl font-semibold mb-6">Admin Dashboard</h2>
<form method="POST" class="space-y-6">
<input type="hidden" name="form_type" value="church_activation">
<div>
<h3 class="text-2xl font-semibold mb-4">Kerken</h3>
@@ -61,6 +62,77 @@
</section>
<section>
<h3 class="text-2xl font-semibold mb-4">SMTP instellingen (wachtwoord reset)</h3>
<div class="bg-white rounded-lg border border-gray-300 p-6 space-y-6">
<form method="POST" class="grid grid-cols-1 md:grid-cols-2 gap-6">
<input type="hidden" name="form_type" value="smtp_settings">
<div>
<label class="block mb-2 font-semibold text-gray-700">SMTP host</label>
<input type="text" name="smtp_host" value="{{ smtp_settings.host }}" class="w-full rounded-md border border-gray-300 p-3 shadow-sm">
</div>
<div>
<label class="block mb-2 font-semibold text-gray-700">SMTP port</label>
<input type="number" name="smtp_port" value="{{ smtp_settings.port }}" class="w-full rounded-md border border-gray-300 p-3 shadow-sm">
</div>
<div>
<label class="block mb-2 font-semibold text-gray-700">Gebruikersnaam</label>
<input type="text" name="smtp_username" value="{{ smtp_settings.username }}" class="w-full rounded-md border border-gray-300 p-3 shadow-sm">
</div>
<div>
<label class="block mb-2 font-semibold text-gray-700">Wachtwoord</label>
<input type="password" name="smtp_password" value="" placeholder="(leeg laten om niet te wijzigen)" class="w-full rounded-md border border-gray-300 p-3 shadow-sm">
</div>
<div>
<label class="block mb-2 font-semibold text-gray-700">Van email</label>
<input type="email" name="smtp_from_email" value="{{ smtp_settings.from_email }}" class="w-full rounded-md border border-gray-300 p-3 shadow-sm">
</div>
<div>
<label class="block mb-2 font-semibold text-gray-700">Van naam</label>
<input type="text" name="smtp_from_name" value="{{ smtp_settings.from_name }}" class="w-full rounded-md border border-gray-300 p-3 shadow-sm">
</div>
<div class="flex items-center gap-3">
<input type="checkbox" name="smtp_use_tls" {% if smtp_settings.use_tls %}checked{% endif %} class="h-5 w-5 text-blue-600">
<span class="text-gray-700 font-semibold">STARTTLS (TLS)</span>
</div>
<div class="flex items-center gap-3">
<input type="checkbox" name="smtp_use_ssl" {% if smtp_settings.use_ssl %}checked{% endif %} class="h-5 w-5 text-blue-600">
<span class="text-gray-700 font-semibold">SSL (SMTP_SSL)</span>
</div>
<div class="md:col-span-2 flex items-center gap-3">
<input type="checkbox" name="smtp_verify_tls" {% if smtp_settings.verify_tls %}checked{% endif %} class="h-5 w-5 text-blue-600">
<span class="text-gray-700 font-semibold">TLS certificaat verifiëren (aanbevolen)</span>
<span class="text-xs text-gray-500">(zet uit bij SSLCertVerificationError / self-signed certificaten)</span>
</div>
<div class="md:col-span-2 flex gap-3">
<button type="submit" class="bg-[#f7d91a] text-black px-6 py-3 rounded-md font-semibold shadow hover:bg-yellow-300 transition">SMTP opslaan</button>
</div>
</form>
<form method="POST" class="flex flex-col md:flex-row gap-3 items-start md:items-end">
<input type="hidden" name="form_type" value="smtp_test">
<div class="flex-1 w-full">
<label class="block mb-2 font-semibold text-gray-700">Test email naar</label>
<input type="email" name="smtp_test_to" placeholder="test@voorbeeld.nl" class="w-full rounded-md border border-gray-300 p-3 shadow-sm">
</div>
<button type="submit" class="bg-gray-800 text-white px-6 py-3 rounded-md font-semibold shadow hover:bg-gray-900 transition">Test email sturen</button>
</form>
</div>
</section>
<section>
<h3 class="text-2xl font-semibold mb-4">Gebruikers</h3>

View File

@@ -0,0 +1,31 @@
{% extends 'base.html' %}
{% block title %}Wachtwoord vergeten - Digitale Liturgie{% endblock %}
{% block content %}
<div class="space-y-8 max-w-6xl mx-auto px-4">
<div class="max-w-md mx-auto">
<h2 class="text-3xl font-semibold mb-6">Wachtwoord vergeten</h2>
<p class="text-gray-700 mb-6">
Vul je e-mailadres in. Als het bekend is, sturen we een link om je wachtwoord te resetten.
</p>
<form method="post" class="space-y-6">
<div>
<label for="email" class="block mb-3 font-semibold text-gray-700">E-mailadres</label>
<input type="email" id="email" name="email" required
class="w-full rounded-md border border-gray-300 p-4 text-lg placeholder-gray-400 shadow-sm focus:border-blue-600 focus:ring focus:ring-blue-300 focus:ring-opacity-50 transition">
</div>
<button type="submit" class="bg-[#f7d91a] text-black w-full rounded-md py-4 font-semibold shadow hover:bg-yellow-300 transition">Reset link versturen</button>
</form>
<div class="mt-6 text-center">
<a href="{{ url_for('login') }}" class="text-blue-600 hover:underline">Terug naar inloggen</a>
</div>
</div>
</div>
{% endblock %}

View File

@@ -21,6 +21,10 @@
<button type="submit" class="bg-[#f7d91a] text-black w-full rounded-md py-4 font-semibold shadow hover:bg-yellow-300 transition">Login</button>
</form>
<div class="mt-6 text-center">
<a href="{{ url_for('forgot_password') }}" class="text-blue-600 hover:underline">Wachtwoord vergeten?</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,29 @@
{% extends 'base.html' %}
{% block title %}Nieuw wachtwoord instellen - Digitale Liturgie{% endblock %}
{% block content %}
<div class="space-y-8 max-w-6xl mx-auto px-4">
<div class="max-w-md mx-auto">
<h2 class="text-3xl font-semibold mb-6">Nieuw wachtwoord instellen</h2>
<form method="post" class="space-y-6">
<div>
<label for="new_password" class="block mb-3 font-semibold text-gray-700">Nieuw wachtwoord</label>
<input type="password" id="new_password" name="new_password" required
class="w-full rounded-md border border-gray-300 p-4 text-lg placeholder-gray-400 shadow-sm focus:border-blue-600 focus:ring focus:ring-blue-300 focus:ring-opacity-50 transition">
</div>
<div>
<label for="confirm_password" class="block mb-3 font-semibold text-gray-700">Bevestig nieuw wachtwoord</label>
<input type="password" id="confirm_password" name="confirm_password" required
class="w-full rounded-md border border-gray-300 p-4 text-lg placeholder-gray-400 shadow-sm focus:border-blue-600 focus:ring focus:ring-blue-300 focus:ring-opacity-50 transition">
</div>
<button type="submit" class="bg-[#f7d91a] text-black w-full rounded-md py-4 font-semibold shadow hover:bg-yellow-300 transition">Wachtwoord opslaan</button>
</form>
</div>
</div>
{% endblock %}