Profile Pictures!
This commit is contained in:
parent
8e79266da4
commit
5ac965eac4
19 changed files with 103 additions and 32 deletions
20
views/profile-password.pug
Normal file
20
views/profile-password.pug
Normal file
|
@ -0,0 +1,20 @@
|
|||
extends layout.pug
|
||||
|
||||
block content
|
||||
form(method='POST')
|
||||
.field
|
||||
label.label Old Password (Required if changing password)
|
||||
.control.has-icons-left
|
||||
input.input(type='password', name='oldPassword', placeholder='pa$$word!')
|
||||
span.icon.is-small.is-left
|
||||
i.fas.fa-lock
|
||||
.field
|
||||
label.label New Password (Leave blank if not changing password)
|
||||
.control.has-icons-left
|
||||
input.input(type='password', name='newPassword', placeholder='pa$$word!')
|
||||
span.icon.is-small.is-left
|
||||
i.fas.fa-lock
|
||||
.field
|
||||
.control
|
||||
input.button.is-primary(type='submit' value='Save')
|
||||
|
|
@ -1,20 +1,31 @@
|
|||
extends layout.pug
|
||||
|
||||
block content
|
||||
form(method='POST')
|
||||
.field
|
||||
label.label Old Password (Required if changing password)
|
||||
.control.has-icons-left
|
||||
input.input(type='password', name='oldPassword', placeholder='pa$$word!')
|
||||
span.icon.is-small.is-left
|
||||
i.fas.fa-lock
|
||||
.field
|
||||
label.label New Password (Leave blank if not changing password)
|
||||
.control.has-icons-left
|
||||
input.input(type='password', name='newPassword', placeholder='pa$$word!')
|
||||
span.icon.is-small.is-left
|
||||
i.fas.fa-lock
|
||||
.field
|
||||
.control
|
||||
input.button.is-primary(type='submit' value='Save')
|
||||
|
||||
h2 Profile
|
||||
div(style='margin-top: 1em;')
|
||||
.columns(style='margin-top: 1em;')
|
||||
.column.is-narrow
|
||||
.box
|
||||
.columns
|
||||
.column
|
||||
figure.image.is-square(style='display: inline-block; width: 90%;')
|
||||
img.is-rounded(src=req.user.pfp, style='object-fit: cover;')
|
||||
.column.is-narrow
|
||||
.column
|
||||
span.is-size-3= req.user._id
|
||||
br
|
||||
br
|
||||
form(action=`${_CC.config.base}profile/pfp`, method='POST')
|
||||
label.label Image URL
|
||||
.field.has-addons
|
||||
.control
|
||||
input.input(name='image', value=req.user.pfp)
|
||||
.control
|
||||
button.button.is-primary(type='submit')
|
||||
span.icon
|
||||
i.fas.fa-save
|
||||
h2 Security
|
||||
a.button.is-primary(href=`${_CC.config.base}profile/password`)
|
||||
span.icon
|
||||
i.fas.fa-shield-alt
|
||||
span Change Password
|
||||
|
|
|
@ -6,14 +6,24 @@ block content
|
|||
li
|
||||
a(href=`${_CC.config.base}wishlist/${req.user._id}`)
|
||||
.box
|
||||
span=req.user._id
|
||||
span : ???/???
|
||||
progress.progress(value=1, max=1)
|
||||
.columns
|
||||
.column.is-1(style='overflow: hidden;')
|
||||
figure.image.is-square.is-fullwidth.is-marginless(style='display: inline-block;')
|
||||
img.is-rounded.is-fullwidth(src=req.user.pfp, style='object-fit: cover;')
|
||||
.column
|
||||
span=req.user._id
|
||||
span : ???/???
|
||||
progress.progress(value=1, max=1)
|
||||
each user in users
|
||||
if req.user._id !== user.id
|
||||
li
|
||||
a(href=`${_CC.config.base}wishlist/${user.id}`)
|
||||
.box
|
||||
span= user.id
|
||||
span : #{totals(user.doc.wishlist).pledged}/#{user.doc.wishlist.length}
|
||||
progress.progress.is-info(value=totals(user.doc.wishlist).pledged, max=user.doc.wishlist.length)
|
||||
.columns
|
||||
.column.is-1(style='overflow: hidden;')
|
||||
figure.image.is-square.is-fullwidth.is-marginless(style='display: inline-block;')
|
||||
img.is-rounded.is-fullwidth(src=user.doc.pfp, style='object-fit: cover;')
|
||||
.column
|
||||
span= user.id
|
||||
span : #{totals(user.doc.wishlist).pledged}/#{user.doc.wishlist.length}
|
||||
progress.progress.is-info(value=totals(user.doc.wishlist).pledged, max=user.doc.wishlist.length)
|
Loading…
Add table
Add a link
Reference in a new issue