Add the ability to suggest items for someone else without pledging for it (#29)
* add suggest button to wishlist * make suggest button work * remove delete-on-unpledge logic
This commit is contained in:
parent
0e6420f714
commit
b94afc3579
3 changed files with 6 additions and 3 deletions
|
@ -215,9 +215,12 @@ block content
|
|||
name='note',
|
||||
placeholder=lang('WISHLIST_OPTIONAL')
|
||||
)
|
||||
.field
|
||||
.field.is-grouped
|
||||
.control
|
||||
input.button(type='submit' value=(req.user._id === req.params.user ? lang('WISHLIST_ADD') : lang('WISHLIST_PLEDGE_ITEM')))
|
||||
if req.user._id !== req.params.user
|
||||
.control
|
||||
input.inline.button(type='submit', value=lang('WISHLIST_SUGGEST'), name='suggest')
|
||||
script(src=`${_CC.config.base}js/wishlist.js`)
|
||||
|
||||
block print
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue