christmas/views/note.pug
2020-11-01 22:01:30 -05:00

30 lines
No EOL
834 B
Text

extends layout.pug
block content
a(href='..') <i class="fas fa-arrow-left"></i> Back to #{req.params.user}'s wishlist
form.inline(method='POST', action=`/wishlist/${req.params.user}/note/${req.params.id}`)
.columns
.column
.field
label.label Name
.control
input.input(name='name', value=item.name)
.column
.field
label.label URL
.control
input.input(name='url', value=item.url)
.column
.field
label.label Price
.control
input.input(name='price', value=item.price)
.field
label.label Note
.control
textarea.textarea(
name='note'
)= item.note
.field.inline
.control.inline
input.button.is-primary(type='submit' value='Save Item')