From 855d0862f9e6494f80b58856cd458f716edaa9e7 Mon Sep 17 00:00:00 2001 From: Anatolii Grynchuk Date: Sat, 2 May 2026 02:35:01 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20save=20button=20not=20submitting=20?= =?UTF-8?q?=E2=80=94=20form=20id=20+=20form=3D=20attribute=20on=20submit?= =?UTF-8?q?=20button;=20migrator=20connection=20string=20in=20dev=20compos?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - _EditorLayout renders FormActions section outside
in the DOM - Added id='templateForm' to form, form='templateForm' to submit button (HTML5 form association) - Added migrator env override in docker-compose.Development.yml so connection string is not read from \ Ref: IT-628 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Views/AdminTemplates/Edit.cshtml | 4 ++-- docker/environments/docker-compose.Development.yml | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HrynCo.NotificationService.Web/Views/AdminTemplates/Edit.cshtml b/HrynCo.NotificationService.Web/Views/AdminTemplates/Edit.cshtml index 611dbbf..27103ef 100644 --- a/HrynCo.NotificationService.Web/Views/AdminTemplates/Edit.cshtml +++ b/HrynCo.NotificationService.Web/Views/AdminTemplates/Edit.cshtml @@ -6,7 +6,7 @@ ViewData["EditorTitle"] = Model.PageTitle; } - + @Html.AntiForgeryToken() @@ -65,7 +65,7 @@ @section FormActions { - + ✖ Cancel }
diff --git a/docker/environments/docker-compose.Development.yml b/docker/environments/docker-compose.Development.yml index 2b5ccbf..ca5399b 100644 --- a/docker/environments/docker-compose.Development.yml +++ b/docker/environments/docker-compose.Development.yml @@ -1,4 +1,8 @@ services: + migrator: + environment: + - App__ConnectionString=Host=db;Port=5432;Database=notification_service;Username=postgres;Password=postgres + api: environment: - ASPNETCORE_ENVIRONMENT=Development