From e71849040101b13561865470894c6e92de5cb89e Mon Sep 17 00:00:00 2001 From: Sam Wing Date: Sat, 16 Nov 2019 23:01:00 -0500 Subject: [PATCH] note delete in wishlist/note --- views/note.pug | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/views/note.pug b/views/note.pug index bebf91c..c00d0a8 100644 --- a/views/note.pug +++ b/views/note.pug @@ -1,13 +1,18 @@ extends layout.pug 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 label.label Note .control textarea.textarea( name='note' - ) - .field - .control - input.button.is-primary(type='submit' value='Add Note') \ No newline at end of file + )= req.query.current + .field.inline + .control.inline + 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') \ No newline at end of file