From acafb9192a6402a3f3d60d5e6af11cb4576fc96c Mon Sep 17 00:00:00 2001
From: Aaron Parecki <aaron@parecki.com>
Date: Wed, 4 Jan 2017 15:26:51 -0800
Subject: add tags, slug and status field to quill editor

---
 views/editor.php | 29 ++++++++++++++++++++++-------
 1 file changed, 22 insertions(+), 7 deletions(-)

(limited to 'views/editor.php')

diff --git a/views/editor.php b/views/editor.php
index 78b1858..f1d2250 100644
--- a/views/editor.php
+++ b/views/editor.php
@@ -67,14 +67,29 @@
   <div class="dropdown-content action-publish">
 
     <div style="float:right"><button class="btn btn-medium" id="publish-confirm">Publish Now</button></div>
-    <div style="clear:right;"></div>
+    <div style="clear:right; margin-bottom: 4px;"></div>
+
+    <table id="publish-fields">
+      <tr>
+        <td>Tags:</td>
+        <td><input type="text" class="form-field-small" placeholder="comma separated" id="post-tags"></td>
+      </tr>
+      <tr>
+        <td>Slug:</td>
+        <td><input type="text" class="form-field-small" id="post-slug"></td>
+      </tr>
+      <tr>
+        <td>Status:</td>
+        <td>
+          <select id="post-status" class="form-select-small">
+            <option value="published">Published</option>
+            <option value="draft">Draft</option>
+          </select>
+          <a href="/docs/post-status" class="small hidden" target="_blank" id="published-status-warning">read this first!</a>
+        </td>
+      </tr>
+    </table>
 
-    <div class="helptext" id="publish-help">
-      <div style="font-size:0.8em;">
-        Clicking "Publish Now" will send a request to your Micropub endpoint.<br><br>
-        The request will include two fields, "name" and "content", where the content will be the full HTML for this post.
-      </div>
-    </div>
 
     <div class="helptext hidden" id="publish-in-progress">
       Posting... <!-- TODO replace this with a CSS animated spinner -->
-- 
cgit v1.2.3