Wrong place for !=, lol.
This commit is contained in:
parent
aeead5e378
commit
f6db24b12a
@ -42,7 +42,7 @@ block content
|
|||||||
option(value='0') -- New category --
|
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='text', placeholder='Title' name='title' required='')
|
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
|
button(type="submit") Add
|
||||||
section
|
section
|
||||||
if (len(posts) > 0)
|
if (len(posts) > 0)
|
||||||
@ -63,7 +63,7 @@ block content
|
|||||||
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)
|
||||||
input(type='text', placeholder='Title' name='title' value=post.Title required='')
|
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='edit-post') Edit
|
||||||
button(name='delete-post') Delete
|
button(name='delete-post') Delete
|
||||||
footer
|
footer
|
||||||
|
Loading…
Reference in New Issue
Block a user