summaryrefslogtreecommitdiff
path: root/views/editor.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2017-01-04 15:26:51 -0800
committerAaron Parecki <aaron@parecki.com>2017-01-04 15:26:51 -0800
commitacafb9192a6402a3f3d60d5e6af11cb4576fc96c (patch)
treed70737a0ee528cff04673ff6b66a1667fbd302bf /views/editor.php
parente7fe68f73e441778f80683383ddb2ffe7a48f85c (diff)
add tags, slug and status field to quill editor
Diffstat (limited to 'views/editor.php')
-rw-r--r--views/editor.php29
1 files changed, 22 insertions, 7 deletions
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 -->