feat: soft-delete for teamer accounts

addresses #869dv9br3
This commit is contained in:
Björn Fromme committed 2026-08-11 12:26:13 +02:00
1 parent 388ecf9603
commit d654ce77fb
45 files changed
+1151 -7

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
<?php
namespace App\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\CheckboxType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Validator\Constraints\IsTrue;
class DeleteAccountType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options): void
{
// deleting one's own account cannot be undone without asking the office, so it
// takes a deliberate second step rather than a single click
$builder->add('confirmed', CheckboxType::class, [
'label' => 'Ja, ich möchte meinen Account endgültig löschen',
'mapped' => false,
'constraints' => [
new IsTrue([
'message' => 'Bitte bestätige die Löschung',
]),
],
]);
}
}
+4
View File
@@ -59,6 +59,10 @@ class TeamerFilterType extends AbstractType
'label' => 'inaktive Teamer:innen anzeigen',
'required' => false,
])
->add('includeDeleted', CheckboxType::class, [
'label' => 'gelöschte Teamer:innen anzeigen',
'required' => false,
])
->add('apply', SubmitType::class, [
'label' => 'filtern',
])