note delete in wishlist/note

This commit is contained in:
Sam Wing 2019-11-16 23:01:00 -05:00
parent 285979d777
commit e718490401

View file

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