From 59aeab60c18c531be4b59e0e66fddbbe7c93ca58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=BCller?= Date: Mon, 18 Sep 2017 22:12:09 +0200 Subject: [PATCH] note editing implemented --- .../{public/new.html => templates/form.html} | 13 ++-- assets/templates/stats.html | 4 +- server.go | 29 +++++++-- storage.go | 60 +++++++++++++++---- 4 files changed, 82 insertions(+), 24 deletions(-) rename assets/{public/new.html => templates/form.html} (75%) diff --git a/assets/public/new.html b/assets/templates/form.html similarity index 75% rename from assets/public/new.html rename to assets/templates/form.html index 76ff8e2..9a2e314 100644 --- a/assets/public/new.html +++ b/assets/templates/form.html @@ -1,7 +1,8 @@ +{{define "Form"}} - NoteHub — Add note + NoteHub — {{if .ID}}Edit{{else}}Add{{end}} note @@ -9,13 +10,10 @@
- +
- + +