From 39a847ce13295290e43ef92784fa7fc27a842aa2 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 28 Sep 2024 03:19:04 +0200 Subject: Added Idea CRD - Also added sending back errors to the template for displaying what went wrong. - Renamed Description to Text - Added Delete operation for an idea - Removed Store type because it had no real value --- ideas.html | 21 +++++++++- main.go | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++----------- 2 files changed, 128 insertions(+), 24 deletions(-) diff --git a/ideas.html b/ideas.html index 284924d..89cb4bc 100644 --- a/ideas.html +++ b/ideas.html @@ -38,14 +38,33 @@ color: #bcbcbc; } +.error { + color: red; +} + + {{ with .Error }} +

{{.}}

+ {{ end}} +
+
+
+
+ +
+
+
+
+ +
+