diff --git a/app/Livewire/Forms/ApplicationForm.php b/app/Livewire/Forms/ApplicationForm.php index ffdb495..998665e 100644 --- a/app/Livewire/Forms/ApplicationForm.php +++ b/app/Livewire/Forms/ApplicationForm.php @@ -9,6 +9,6 @@ class ApplicationForm extends Form { #[Validate('nullable|string')] public $reason = ''; - #[Validate('boolean|in:true')] + #[Validate('boolean')] public $check = false; } diff --git a/resources/views/pages/association/profile.blade.php b/resources/views/pages/association/profile.blade.php index 9ae6a6e..7bc034e 100644 --- a/resources/views/pages/association/profile.blade.php +++ b/resources/views/pages/association/profile.blade.php @@ -172,6 +172,10 @@ $listenForPayment = function () { $save = function ($type) { $this->form->validate(); + if (!$this->form->check) { + $this->js('alert("Du musst den Statuten zustimmen.")'); + return; + } $this->currentPleb ->update([ @@ -322,7 +326,6 @@ $loadEvents = function () {

Aktueller Status

-