1
0

Wrong place for !=, lol.

This commit is contained in:
Alexander Andreev 2023-05-23 03:02:20 +04:00
parent aeead5e378
commit f6db24b12a
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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