summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--management/editor/editor.go4
-rw-r--r--system/admin/config/config.go4
2 files changed, 6 insertions, 2 deletions
diff --git a/management/editor/editor.go b/management/editor/editor.go
index d069047..3b26adb 100644
--- a/management/editor/editor.go
+++ b/management/editor/editor.go
@@ -52,7 +52,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) {
editor.ViewBuf.Write([]byte(`<tr class="col s4 default-fields"><td>`))
publishTime := `
-<div class="row">
+<div class="row content-only __ponzu">
<div class="input-field col s6">
<label class="active">MM</label>
<select class="month __ponzu browser-default">
@@ -80,7 +80,7 @@ func Form(post Editable, fields ...Field) ([]byte, error) {
</div>
</div>
-<div class="row">
+<div class="row content-only __ponzu">
<div class="input-field col s3">
<label class="active">HH</label>
<input value="" class="hour __ponzu" maxlength="2" type="text" placeholder="HH" />
diff --git a/system/admin/config/config.go b/system/admin/config/config.go
index c5ef1cd..c83c311 100644
--- a/system/admin/config/config.go
+++ b/system/admin/config/config.go
@@ -97,6 +97,10 @@ func (c *Config) MarshalEditor() ([]byte, error) {
right: '0px'
});
+ var contentOnly = $('.content-only.__ponzu');
+ contentOnly.hide();
+ contentOnly.find('input, textarea, select').attr('name', '');
+
// adjust layout of td so save button is in same location as usual
fields.find('td').css('float', 'right');