Wrong place for !=, lol.
This commit is contained in:
parent
aeead5e378
commit
f6db24b12a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user