From 6148ddb2473f00fb74b135e00127bbadd2062861 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Thu, 13 Oct 2016 12:14:53 -0700 Subject: fixing style and layout for delete button --- management/editor/editor.go | 4 +++- system/admin/static/dashboard/css/admin.css | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/management/editor/editor.go b/management/editor/editor.go index 01a30f9..85214f0 100644 --- a/management/editor/editor.go +++ b/management/editor/editor.go @@ -46,7 +46,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) { addPostDefaultFieldsToEditorView(post, editor) submit := ` -
+
@@ -60,6 +60,8 @@ func Form(post Editable, fields ...Field) ([]byte, error) { e.preventDefault(); var action = form.attr('action'); action = action + '/delete'; + form.attr('action', action); + if (confirm("Ponzu: Please confirm:\n\nAre you sure you want to delete this post?\nThis cannot be undone.")) { form.submit(); } diff --git a/system/admin/static/dashboard/css/admin.css b/system/admin/static/dashboard/css/admin.css index 888dbf1..7da4154 100644 --- a/system/admin/static/dashboard/css/admin.css +++ b/system/admin/static/dashboard/css/admin.css @@ -154,6 +154,10 @@ footer p { color: #9e9e9e; } +.post-controls .save-post { + margin-left: 10px; +} + /* OVERRIDE Bootstrap + Materialize conflicts */ .iso-texteditor.input-field label { -- cgit v1.2.3