summaryrefslogtreecommitdiff
path: root/client/html
diff options
context:
space:
mode:
authorRuin0x11 <ipickering2@gmail.com>2020-05-04 02:20:23 -0700
committerRuin0x11 <ipickering2@gmail.com>2020-05-04 02:20:23 -0700
commit8795279a73e976a3aadbb4b9067209a46f138733 (patch)
tree8d0742d03bd5c2847c5fd813fb3105be961c3b88 /client/html
parente6bf102bc03504d9abc584f15da70a5fed7fa950 (diff)
Add pool input box in post details
Diffstat (limited to 'client/html')
-rw-r--r--client/html/pool_input.tpl8
-rw-r--r--client/html/post_edit_sidebar.tpl6
2 files changed, 14 insertions, 0 deletions
diff --git a/client/html/pool_input.tpl b/client/html/pool_input.tpl
index e69de29..0c2a3fd 100644
--- a/client/html/pool_input.tpl
+++ b/client/html/pool_input.tpl
@@ -0,0 +1,8 @@
+<div class='pool-input'>
+ <div class='main-control'>
+ <input type='text' placeholder='type to add…'/>
+ <!-- <button>Add</button> -->
+ </div>
+
+ <ul class='compact-pools'></ul>
+</div>
diff --git a/client/html/post_edit_sidebar.tpl b/client/html/post_edit_sidebar.tpl
index ecc6569..458a6f0 100644
--- a/client/html/post_edit_sidebar.tpl
+++ b/client/html/post_edit_sidebar.tpl
@@ -87,6 +87,12 @@
</section>
<% } %>
+ <% if (ctx.canEditPoolPosts) { %>
+ <section class='pools'>
+ <%= ctx.makeTextInput({}) %>
+ </section>
+ <% } %>
+
<% if (ctx.canEditPostContent) { %>
<section class='post-content'>
<label>Content</label>