diff --git a/web/templates/mindflow_admin.pug b/web/templates/mindflow_admin.pug index 132467a..f334f4a 100755 --- a/web/templates/mindflow_admin.pug +++ b/web/templates/mindflow_admin.pug @@ -42,7 +42,7 @@ block content option(value='0') -- New category -- input(type='text', placeholder='New category name' name='new-category') input(type='text', placeholder='Title' name='title' required='') - textarea(placeholder='Body post' name!='body' required='') + textarea(placeholder='Body post' name='body' required='') button(type="submit") Add section if (len(posts) > 0) @@ -63,7 +63,7 @@ block content input(type='hidden', name='post-id' value=post.ID) input(type='hidden', name='old-category' value=post.Category.ID) input(type='text', placeholder='Title' name='title' value=post.Title required='') - textarea(placeholder='Body post' name='body' required='')= post.Body + textarea(placeholder='Body post' name='body' required='')!= post.Body button(name='edit-post') Edit button(name='delete-post') Delete footer