From 110729602a4c2c6904c7f9d6da015a425ef469ee Mon Sep 17 00:00:00 2001 From: darius Date: Tue, 25 Feb 2025 23:14:46 +0100 Subject: [PATCH] added id to edit --- web/components/projectList.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/components/projectList.go b/web/components/projectList.go index c65b17f..eb23732 100644 --- a/web/components/projectList.go +++ b/web/components/projectList.go @@ -56,8 +56,7 @@ func EditProject(project *ent.Project) g.Node { b.ImgSq64, ), ), - b.Label("ID: "+strconv.Itoa(project.ID)), - b.Textarea(strconv.Itoa(project.ID), b.Rows(1), e.Name("project_id")), + b.Textarea(strconv.Itoa(project.ID), b.Rows(1), e.Name("project_id"), e.Type("hidden")), b.Label("Name"), b.Textarea(project.Name, b.Rows(1), e.Name("project_name")), b.Subtitle(