Oh, forgot about other posts in mindflow admin.
This commit is contained in:
parent
51b69e87cf
commit
67c6902217
@ -40,11 +40,13 @@ block content
|
|||||||
a(href=`#${post.PostID()}`)
|
a(href=`#${post.PostID()}`)
|
||||||
h3= post.Category.Name + ": " + post.Title
|
h3= post.Category.Name + ": " + post.Title
|
||||||
form.edit
|
form.edit
|
||||||
select(name='category')
|
select(name='category' required='')
|
||||||
option(value='' selected='') -- Change to category --
|
each category in categories
|
||||||
option(value='1') Update
|
if (category.ID == 1)
|
||||||
option(value='2') Diary
|
option(value=category.ID selected='') #{category.Name}
|
||||||
option(value='0') New category
|
else
|
||||||
|
option(value=category.ID) #{category.Name}
|
||||||
|
option(value='0') -- New category --
|
||||||
input(type='text', placeholder='New category name' name='new-category')
|
input(type='text', placeholder='New category name' name='new-category')
|
||||||
input(type='hidden', name='post-id' value=post.ID)
|
input(type='hidden', name='post-id' value=post.ID)
|
||||||
input(type='hidden', name='old-category' value=post.Category.ID)
|
input(type='hidden', name='old-category' value=post.Category.ID)
|
||||||
|
Loading…
Reference in New Issue
Block a user