summaryrefslogtreecommitdiff
path: root/management/editor/editor.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-10-17 20:36:01 -0700
committerSteve Manuel <nilslice@gmail.com>2016-10-17 20:36:01 -0700
commitf57103d3a6a1c94e3e1aca82d0743ae871fff8d9 (patch)
tree4f1ab54d1cabbbd240504879cecef0b5f02887a3 /management/editor/editor.go
parent69eec0c5b40c95eefd891d32452b7b9b64db75b9 (diff)
adding inputs timestamp & updated into defaults for editor
Diffstat (limited to 'management/editor/editor.go')
-rw-r--r--management/editor/editor.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go
index eff3274..2c51d5d 100644
--- a/management/editor/editor.go
+++ b/management/editor/editor.go
@@ -146,6 +146,18 @@ func addPostDefaultFieldsToEditorView(p Editable, e *Editor) {
"placeholder": "Will be set automatically",
}),
},
+ Field{
+ View: Input("Timestamp", p, map[string]string{
+ "type": "hidden",
+ "class": "timestamp __ponzu",
+ }),
+ },
+ Field{
+ View: Input("Updated", p, map[string]string{
+ "type": "hidden",
+ "class": "updated __ponzu",
+ }),
+ },
}
for _, f := range defaults {