From f582d21c99f725ab6565bb58593646ba41cceb52 Mon Sep 17 00:00:00 2001 From: developer Date: Wed, 15 Apr 2026 15:04:44 +0800 Subject: [PATCH] =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D0=B0=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BA=D0=BB?= =?UTF-8?q?=D0=B8=D0=B5=D0=BD=D1=82=D0=BE=D0=B2:=20=D1=81=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B0=D0=BD=20=D0=B2=D1=8B=D0=B1=D0=BE=D1=80=20=D0=BD?= =?UTF-8?q?=D0=B5=D1=81=D0=BA=D0=BE=D0=BB=D1=8C=D0=BA=D0=B8=D1=85=20=D0=B6?= =?UTF-8?q?=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Http/Livewire/ClientCreateLivewire.php | 4 ++ .../Views/livewire/form.blade.php | 45 +++++++++++++----- resources/css/form.css | 46 +++++++++++++++++++ resources/views/layouts/app.blade.php | 2 +- resources/views/user/dashboard.blade.php | 17 +------ vite.config.js | 1 + 6 files changed, 87 insertions(+), 28 deletions(-) create mode 100644 resources/css/form.css diff --git a/app/Modules/ClientCreateForm/Http/Livewire/ClientCreateLivewire.php b/app/Modules/ClientCreateForm/Http/Livewire/ClientCreateLivewire.php index b9e8715..b7062f7 100644 --- a/app/Modules/ClientCreateForm/Http/Livewire/ClientCreateLivewire.php +++ b/app/Modules/ClientCreateForm/Http/Livewire/ClientCreateLivewire.php @@ -161,6 +161,10 @@ public function addPhoneForCurrentContact() $this->contacts[$this->currentContactIndex]['phones'][] = ''; } } + + public function removeObject($complexId) { + unset($this->selectedObjects[$complexId]); + } public function updated($propertyName) { $this->status = FormStatus::IN_PROCESS; diff --git a/app/Modules/ClientCreateForm/Views/livewire/form.blade.php b/app/Modules/ClientCreateForm/Views/livewire/form.blade.php index 750e5fb..459b23c 100644 --- a/app/Modules/ClientCreateForm/Views/livewire/form.blade.php +++ b/app/Modules/ClientCreateForm/Views/livewire/form.blade.php @@ -1,8 +1,8 @@ -
-
+
+
Загрузка формы...
@@ -23,7 +23,7 @@ @endif @if($availableAgents && $complexes) -
+
@if ($status == FormStatus::NEW || $status == FormStatus::IN_PROCESS || $status == FormStatus::READY)