christmas/views/note.pug

40 lines
1.3 KiB
Text
Raw Normal View History

2018-11-30 13:44:06 -08:00
extends layout.pug
block content
2019-11-16 20:01:08 -08:00
a(href='..') <i class="fas fa-arrow-left"></i> Back to #{req.params.user}'s wishlist
2020-11-07 12:54:53 -08:00
form(id='refreshform', method='POST', action=`${_CC.config.base}wishlist/${req.params.user}/refresh/${req.params.id}`)
form.inline(method='POST', action=`${_CC.config.base}wishlist/${req.params.user}/note/${req.params.id}`)
2019-11-18 12:07:57 -08:00
.columns
.column
.field
label.label Name
.control
input.input(name='name', value=item.name)
2019-11-18 12:07:57 -08:00
.column
.field
label.label URL
.control
input.input(name='url', value=item.url)
2020-11-01 19:01:30 -08:00
.column
.field
label.label Price
.control
input.input(name='price', value=item.price)
2020-11-02 14:43:57 -08:00
.column
.field
label.label Image URL
.control
input.input(name='image', value=item.image)
2020-11-07 12:54:53 -08:00
.column.is-narrow
.field
label.label Get Product Data
input.is-ghost.button(type='submit', value='Refresh Data' style='width: 100%;', form='refreshform')
2018-11-30 13:44:06 -08:00
.field
label.label Note
2018-11-30 13:55:55 -08:00
.control
2018-11-30 13:44:06 -08:00
textarea.textarea(
name='note'
)= item.note
2019-11-16 20:01:00 -08:00
.field.inline
.control.inline
2019-11-18 12:07:57 -08:00
input.button.is-primary(type='submit' value='Save Item')