2020-05-04 04:53:28 +02:00
|
|
|
<div class='content-wrapper pool-edit'>
|
|
|
|
<form>
|
|
|
|
<ul class='input'>
|
|
|
|
<li class='names'>
|
|
|
|
<% if (ctx.canEditNames) { %>
|
|
|
|
<%= ctx.makeTextInput({
|
|
|
|
text: 'Names',
|
|
|
|
value: ctx.pool.names.join(' '),
|
|
|
|
required: true,
|
|
|
|
}) %>
|
|
|
|
<% } %>
|
|
|
|
</li>
|
|
|
|
<li class='category'>
|
|
|
|
<% if (ctx.canEditCategory) { %>
|
|
|
|
<%= ctx.makeSelect({
|
|
|
|
text: 'Category',
|
|
|
|
keyValues: ctx.categories,
|
|
|
|
selectedKey: ctx.pool.category,
|
|
|
|
required: true,
|
|
|
|
}) %>
|
|
|
|
<% } %>
|
|
|
|
</li>
|
|
|
|
<li class='description'>
|
|
|
|
<% if (ctx.canEditDescription) { %>
|
|
|
|
<%= ctx.makeTextarea({
|
|
|
|
text: 'Description',
|
|
|
|
value: ctx.pool.description,
|
|
|
|
}) %>
|
|
|
|
<% } %>
|
|
|
|
</li>
|
2020-05-04 09:09:33 +02:00
|
|
|
<li class='posts'>
|
|
|
|
<% if (ctx.canEditPosts) { %>
|
|
|
|
<%= ctx.makeTextInput({
|
|
|
|
text: 'Posts',
|
2020-05-04 23:44:16 +02:00
|
|
|
placeholder: 'space-separated post IDs',
|
2020-05-04 09:09:33 +02:00
|
|
|
value: ctx.pool.posts.map(post => post.id).join(' ')
|
|
|
|
}) %>
|
|
|
|
<% } %>
|
|
|
|
</li>
|
2020-05-04 04:53:28 +02:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<% if (ctx.canEditAnything) { %>
|
|
|
|
<div class='messages'></div>
|
|
|
|
|
|
|
|
<div class='buttons'>
|
|
|
|
<input type='submit' class='save' value='Save changes'>
|
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
</form>
|
|
|
|
</div>
|