34 lines
1,004 B
Text
34 lines
1,004 B
Text
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
|
|
h1= lang('CONFIRM_ACCOUNT_HEADER_VALID')
|
|
else
|
|
h1= lang('CONFIRM_ACCOUNT_HEADER_INVALID')
|
|
|
|
block content
|
|
if doc
|
|
if doc.expiry > new Date().getTime()
|
|
+icon('fas fa-smile-beam', lang('CONFIRM_ACCOUNT_SET_PW_TEXT', doc._id))
|
|
form(method='POST')
|
|
.field
|
|
label.label Password
|
|
.control.has-icons-left
|
|
input.input(type='password', name='password', placeholder=lang('CONFIRM_ACCOUNT_SET_PW_PLACEHOLDER'))
|
|
span.icon.is-small.is-left
|
|
i.fas.fa-lock
|
|
.field
|
|
.control
|
|
input.button.is-primary(type='submit' value=lang('CONFIRM_ACCOUNT_SET_PW_BUTTON'))
|
|
else
|
|
+icon('fas fa-frown-open', lang('CONFIRM_ACCOUNT_EXPIRED'))
|
|
else
|
|
+icon('fas fa-frown-open', lang('CONFIRM_ACCOUNT_INVALID'))
|
|
|