2020-10-29 20:50:36 -07:00
|
|
|
extends layout.pug
|
|
|
|
|
|
|
|
mixin icon(c, text)
|
|
|
|
.columns.is-vcentered.is-mobile
|
|
|
|
.column.is-narrow
|
|
|
|
span.icon.is-large
|
|
|
|
i.fa-3x(class=c)
|
|
|
|
.column #{text}
|
|
|
|
|
|
|
|
block title
|
|
|
|
if doc
|
2021-12-03 08:13:43 -08:00
|
|
|
h1= lang('CONFIRM_ACCOUNT_HEADER_VALID')
|
2020-10-29 20:50:36 -07:00
|
|
|
else
|
2021-12-03 08:13:43 -08:00
|
|
|
h1= lang('CONFIRM_ACCOUNT_HEADER_INVALID')
|
2020-10-29 20:50:36 -07:00
|
|
|
|
|
|
|
block content
|
|
|
|
if doc
|
|
|
|
if doc.expiry > new Date().getTime()
|
2021-12-03 08:13:43 -08:00
|
|
|
+icon('fas fa-smile-beam', lang('CONFIRM_ACCOUNT_SET_PW_TEXT', doc._id))
|
2020-10-29 20:50:36 -07:00
|
|
|
form(method='POST')
|
|
|
|
.field
|
|
|
|
label.label Password
|
|
|
|
.control.has-icons-left
|
2021-12-03 08:13:43 -08:00
|
|
|
input.input(type='password', name='password', placeholder=lang('CONFIRM_ACCOUNT_SET_PW_PLACEHOLDER'))
|
2020-10-29 20:50:36 -07:00
|
|
|
span.icon.is-small.is-left
|
|
|
|
i.fas.fa-lock
|
|
|
|
.field
|
|
|
|
.control
|
2021-12-03 08:13:43 -08:00
|
|
|
input.button.is-primary(type='submit' value=lang('CONFIRM_ACCOUNT_SET_PW_BUTTON'))
|
2020-10-29 20:50:36 -07:00
|
|
|
else
|
2021-12-03 08:13:43 -08:00
|
|
|
+icon('fas fa-frown-open', lang('CONFIRM_ACCOUNT_EXPIRED'))
|
2020-10-29 20:50:36 -07:00
|
|
|
else
|
2021-12-03 08:13:43 -08:00
|
|
|
+icon('fas fa-frown-open', lang('CONFIRM_ACCOUNT_INVALID'))
|
2020-10-29 20:50:36 -07:00
|
|
|
|