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