summaryrefslogtreecommitdiff
path: root/client/html/pool_create.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'client/html/pool_create.tpl')
-rw-r--r--client/html/pool_create.tpl42
1 files changed, 42 insertions, 0 deletions
diff --git a/client/html/pool_create.tpl b/client/html/pool_create.tpl
new file mode 100644
index 0000000..3c04545
--- /dev/null
+++ b/client/html/pool_create.tpl
@@ -0,0 +1,42 @@
+<div class='content-wrapper pool-create'>
+ <form>
+ <ul class='input'>
+ <li class='names'>
+ <%= ctx.makeTextInput({
+ text: 'Names',
+ value: '',
+ required: true,
+ }) %>
+ </li>
+ <li class='category'>
+ <%= ctx.makeSelect({
+ text: 'Category',
+ keyValues: ctx.categories,
+ selectedKey: 'default',
+ required: true,
+ }) %>
+ </li>
+ <li class='description'>
+ <%= ctx.makeTextarea({
+ text: 'Description',
+ value: '',
+ }) %>
+ </li>
+ <li class='posts'>
+ <%= ctx.makeTextInput({
+ text: 'Posts',
+ value: '',
+ placeholder: 'space-separated post IDs',
+ }) %>
+ </li>
+ </ul>
+
+ <% if (ctx.canCreate) { %>
+ <div class='messages'></div>
+
+ <div class='buttons'>
+ <input type='submit' class='save' value='Create pool'>
+ </div>
+ <% } %>
+ </form>
+</div>