From 35a8d1e9dda22c8a40ae86e466fa840decf1e678 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 17 Oct 2016 16:54:16 -0700 Subject: modifying form to support more browsers w/o input[type=time] --- management/editor/editor.go | 68 +++++++++++++++++++++++-------------------- management/manager/manager.go | 6 ++-- 2 files changed, 39 insertions(+), 35 deletions(-) diff --git a/management/editor/editor.go b/management/editor/editor.go index 8f8f4a2..49e412c 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -45,39 +45,43 @@ func Form(post Editable, fields ...Field) ([]byte, error) { editor.ViewBuf.Write([]byte(``)) publishTime := ` -
- - +
+
+ + +
+
+ + +
+
+ + +
-
- - -
-
- - -
-
@
-
- - -
-
- - + +
+
+ + +
+
+ + +
` diff --git a/management/manager/manager.go b/management/manager/manager.go index 62d7935..8f4ea05 100644 --- a/management/manager/manager.go +++ b/management/manager/manager.go @@ -51,9 +51,9 @@ const managerHTML = ` return { hour: publish_time_hh, minute: publish_time_mm, - year: publish_time_yyyy, - month: publish_time_mm, - day: publish_time_dd + year: publish_date_yyyy, + month: publish_date_mm, + day: publish_date_dd } }, time; -- cgit v1.2.3