note delete in wishlist/note
This commit is contained in:
parent
285979d777
commit
e718490401
1 changed files with 10 additions and 5 deletions
|
@ -1,13 +1,18 @@
|
||||||
extends layout.pug
|
extends layout.pug
|
||||||
|
|
||||||
block content
|
block content
|
||||||
form(method='POST', action=`/wishlist/${req.params.user}/note/${req.params.id}`)
|
form.inline(method='POST', action=`/wishlist/${req.params.user}/note/${req.params.id}`)
|
||||||
.field
|
.field
|
||||||
label.label Note
|
label.label Note
|
||||||
.control
|
.control
|
||||||
textarea.textarea(
|
textarea.textarea(
|
||||||
name='note'
|
name='note'
|
||||||
)
|
)= req.query.current
|
||||||
.field
|
.field.inline
|
||||||
.control
|
.control.inline
|
||||||
input.button.is-primary(type='submit' value='Add Note')
|
input.button.is-primary(type='submit' value='Save Note')
|
||||||
|
if req.query.current
|
||||||
|
form.inline(method='POST', action=``, style='margin-left: 1em;')
|
||||||
|
.field.inline
|
||||||
|
.control.inline
|
||||||
|
input.button.is-danger(type='submit', value='Delete Note')
|
Loading…
Reference in a new issue