Set active a category of a post.
This commit is contained in:
parent
f6db24b12a
commit
73cd9cd05b
@ -54,7 +54,7 @@ block content
|
|||||||
form.edit
|
form.edit
|
||||||
select(name='category' required='')
|
select(name='category' required='')
|
||||||
each category in categories
|
each category in categories
|
||||||
if (category.ID == 1)
|
if (category.ID == post.Category.ID)
|
||||||
option(value=category.ID selected='') #{category.Name}
|
option(value=category.ID selected='') #{category.Name}
|
||||||
else
|
else
|
||||||
option(value=category.ID) #{category.Name}
|
option(value=category.ID) #{category.Name}
|
||||||
|
Loading…
Reference in New Issue
Block a user