Version 1.1.1
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user